* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --background: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border-color: #475569;
    --success: #10b981;
    --error: #ef4444;
    --shadow: rgba(0, 0, 0, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--background) 0%, #1a1f3a 100%);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* App layout: sidebars + main content */
.app-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.tools-sidebar {
    flex-shrink: 0;
    width: 200px;
    position: sticky;
    top: 20px;
}

.tools-sidebar .utility-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-wrap: nowrap;
    margin-bottom: 0;
}

.tools-sidebar .nav-btn {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
}

.tools-sidebar .nav-btn:hover {
    transform: translateX(4px);
}

.main-content {
    flex: 1;
    min-width: 0;
}

.utility-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-btn {
    padding: 12px 24px;
    background: var(--surface);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.nav-btn:hover {
    background: var(--surface-light);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.nav-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    color: white;
}

main {
    background: var(--surface);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px var(--shadow);
    border: 1px solid var(--border-color);
}

.utility-section {
    display: none;
}

.utility-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.utility-header {
    margin-bottom: 30px;
    text-align: center;
}

.utility-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.utility-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.utility-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group,
.output-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

textarea {
    width: 100%;
    padding: 16px;
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    resize: vertical;
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

textarea[readonly] {
    background: var(--surface-light);
    cursor: default;
}

.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.action-btn.secondary {
    background: linear-gradient(135deg, var(--secondary-color), #7c3aed);
    color: white;
}

.action-btn.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.action-btn.clear {
    background: var(--surface-light);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.action-btn.clear:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

.output-group {
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 32px;
    right: 12px;
    padding: 8px 16px;
    background: var(--surface);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    background: var(--success);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow);
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

footer .footer-link {
    color: var(--primary-color);
    text-decoration: none;
}
footer .footer-link:hover {
    text-decoration: underline;
}

/* JWT Utility Styles */
.jwt-section {
    margin-bottom: 40px;
}

.jwt-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.encode-instruction {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.divider {
    text-align: center;
    margin: 40px 0;
    position: relative;
    color: var(--text-secondary);
    font-weight: 600;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--border-color);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

/* JWT Encode Boxes */
.jwt-encode-box {
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.jwt-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.jwt-box-header h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.jwt-clear-box-btn {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.jwt-clear-box-btn:hover {
    background: var(--background);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.jwt-validation-bar {
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.jwt-validation-bar.valid {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.jwt-validation-bar.invalid {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.jwt-json-input {
    width: 100%;
    padding: 16px;
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Courier New', monospace;
    resize: vertical;
    transition: all 0.3s ease;
    line-height: 1.6;
}

.jwt-json-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.jwt-secret-input {
    width: 100%;
    padding: 16px;
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.jwt-secret-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.jwt-expiry-bar {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 600;
}
.jwt-expiry-bar.valid {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.4);
}
.jwt-expiry-bar.expired {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.jwt-verify-section {
    margin-bottom: 16px;
}
.jwt-verify-section label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.jwt-key-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: 'Consolas', 'Monaco', monospace;
    margin-bottom: 10px;
    resize: vertical;
}
.jwt-verify-section .action-btn {
    margin-right: 12px;
}
.jwt-verify-result {
    font-weight: 600;
    font-size: 0.95rem;
}
.jwt-verify-result.valid { color: var(--success); }
.jwt-verify-result.invalid { color: var(--error); }

.jwt-output-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.jwt-tab {
    padding: 8px 16px;
    background: var(--surface-light);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.jwt-tab:hover {
    background: var(--border-color);
    border-color: var(--primary-color);
}

.jwt-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Responsive: sidebars stack, single nav on top */
@media (max-width: 1024px) {
    .app-layout {
        flex-direction: column;
    }

    .tools-sidebar {
        width: 100%;
        position: static;
    }

    .tools-sidebar .utility-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .tools-sidebar .nav-btn {
        width: auto;
        text-align: center;
    }

    .tools-sidebar .nav-btn:hover {
        transform: translateY(-2px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    main,
    .main-content {
        padding: 24px;
    }

    .button-group {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }

    .copy-btn {
        position: static;
        width: 100%;
        margin-top: 8px;
    }

    .jwt-output-tabs {
        flex-direction: column;
    }

    .jwt-tab {
        width: 100%;
        text-align: center;
    }

    .jwt-encode-box {
        padding: 16px;
    }

    .jwt-box-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .jwt-clear-box-btn {
        align-self: flex-end;
    }
}

/* Cron Generator Styles */
.cron-section {
    margin-bottom: 30px;
}

.cron-section h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.preset-btn {
    padding: 12px 20px;
    background: var(--surface-light);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.preset-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.cron-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.cron-option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cron-option-group label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cron-option-group select,
.cron-option-group input {
    padding: 12px 16px;
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.cron-option-group select:focus,
.cron-option-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.cron-expression-display {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.cron-expression-display input {
    flex: 1;
    padding: 16px;
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 1px;
}

.cron-description {
    margin-bottom: 20px;
}

.description-box {
    padding: 16px;
    background: var(--surface-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 8px;
}

.cron-examples {
    margin-top: 20px;
}

.example-box {
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-top: 8px;
}

.example-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.example-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.example-item strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.example-item code {
    display: block;
    padding: 12px;
    background: var(--surface-light);
    border-radius: 6px;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin-top: 8px;
    word-break: break-all;
}

.example-item p {
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.example-item p code {
    display: inline;
    padding: 4px 8px;
    background: var(--surface-light);
    color: var(--success);
    border-radius: 4px;
}

/* Cron Timezone Info Styles */
.cron-timezone-info {
    margin-top: 30px;
    margin-bottom: 30px;
}

.timezone-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 16px;
    margin-bottom: 24px;
}

.timezone-box {
    background: var(--surface-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.timezone-box.utc-box {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.timezone-box.local-box {
    border-color: var(--secondary-color);
    background: rgba(139, 92, 246, 0.05);
}

.timezone-header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.timezone-header-box strong {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.timezone-badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.local-box .timezone-badge {
    background: var(--secondary-color);
}

.timezone-content {
    text-align: center;
}

.time-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    margin-bottom: 8px;
}

.utc-box .time-display {
    color: var(--primary-color);
}

.local-box .time-display {
    color: var(--secondary-color);
}

.time-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.next-executions {
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.next-executions strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 1rem;
}

.execution-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.execution-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 12px;
    background: var(--surface-light);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.exec-time {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.exec-time strong {
    color: var(--text-secondary);
    margin-right: 8px;
}

.utc-exec {
    color: var(--primary-color);
}

.local-exec {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .timezone-comparison {
        grid-template-columns: 1fr;
    }

    .execution-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .preset-buttons {
        grid-template-columns: 1fr;
    }

    .cron-options {
        grid-template-columns: 1fr;
    }

    .cron-expression-display {
        flex-direction: column;
    }

    .copy-btn {
        width: 100%;
    }
}

/* Timezone Converter Styles */
.timezone-input-section {
    margin-bottom: 30px;
}

.datetime-inputs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.datetime-inputs input[type="date"],
.datetime-inputs input[type="time"] {
    padding: 12px 16px;
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.datetime-inputs input[type="date"]:focus,
.datetime-inputs input[type="time"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.timestamp-inputs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.timestamp-inputs input[type="number"] {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Courier New', monospace;
}

.timestamp-inputs input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.timezone-display-section {
    margin-bottom: 30px;
}

.timezone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.timezone-header h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 0;
}

.timezone-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.timezone-controls input[type="text"] {
    padding: 10px 16px;
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    min-width: 200px;
}

.timezone-controls input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.timezone-controls select {
    padding: 10px 16px;
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
}

.timezone-controls select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.timezone-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
    max-height: 600px;
    overflow-y: auto;
    padding: 4px;
}

.timezone-item {
    background: var(--surface-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timezone-item:hover {
    background: var(--surface);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.timezone-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.timezone-name strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.timezone-abbr {
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.timezone-time {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    margin-bottom: 4px;
}

.timezone-offset {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

.utc-reference {
    background: var(--surface-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.utc-display {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.utc-display strong {
    color: var(--text-primary);
    font-size: 1rem;
}

#utc-display-text {
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .datetime-inputs {
        flex-direction: column;
    }

    .datetime-inputs input,
    .datetime-inputs button {
        width: 100%;
    }

    .timestamp-inputs {
        flex-direction: column;
    }

    .timestamp-inputs input,
    .timestamp-inputs button {
        width: 100%;
    }

    .timezone-header {
        flex-direction: column;
        align-items: stretch;
    }

    .timezone-controls {
        flex-direction: column;
    }

    .timezone-controls input,
    .timezone-controls select {
        width: 100%;
    }

    .timezone-list {
        grid-template-columns: 1fr;
    }

    .utc-reference {
        flex-direction: column;
        align-items: stretch;
    }

    .utc-display {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* JSON Formatter Styles */
.json-input-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.json-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
    border: 2px solid;
}

.json-status.success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.json-status.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error);
    color: var(--error);
}

.status-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.status-message {
    font-size: 1rem;
    font-weight: 500;
    word-break: break-word;
}

.json-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 12px;
}

.json-output-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.json-stats {
    display: flex;
    gap: 24px;
    padding: 16px;
    background: var(--surface-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.stat-item strong {
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-item span {
    color: var(--primary-color);
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

#json-output-text {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre;
    overflow-wrap: normal;
    overflow-x: auto;
}

@media (max-width: 768px) {
    .json-input-actions {
        flex-direction: column;
    }

    .json-input-actions button {
        width: 100%;
    }

    .json-output-header {
        flex-direction: column;
        align-items: stretch;
    }

    .json-output-actions {
        width: 100%;
    }

    .json-output-actions button {
        flex: 1;
    }

    .json-stats {
        flex-direction: column;
        gap: 12px;
    }

    .stat-item {
        width: 100%;
        justify-content: space-between;
    }
}

/* JSON Comparison Styles */
.json-compare-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.json-input-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.json-input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.json-input-header label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn.small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.compare-results {
    margin-top: 30px;
}

.compare-summary {
    background: var(--surface-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.compare-summary h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.summary-value {
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.summary-value.same {
    color: var(--success);
}

.summary-value.different {
    color: var(--error);
}

.summary-value.added {
    color: var(--success);
}

.summary-value.removed {
    color: var(--error);
}

.summary-value.modified {
    color: #f59e0b;
}

.compare-view-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.view-btn {
    padding: 10px 20px;
    background: var(--surface-light);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: var(--surface);
    border-color: var(--primary-color);
}

.view-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    color: white;
}

.compare-view {
    margin-bottom: 20px;
}

#side-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.compare-column {
    background: var(--surface-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.column-header {
    background: var(--background);
    padding: 12px 16px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.json-display {
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    max-height: 500px;
    overflow-y: auto;
    white-space: pre;
}

.json-line {
    padding: 2px 0;
}

.diff-added {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    padding: 2px 4px;
    border-radius: 3px;
}

.diff-removed {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
    padding: 2px 4px;
    border-radius: 3px;
}

.diff-modified {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    padding: 2px 4px;
    border-radius: 3px;
}

.diff-content {
    background: var(--surface-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
}

.diff-item {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid;
}

.diff-item.same {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: var(--success);
    text-align: center;
    font-weight: 600;
}

.diff-item.added {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
}

.diff-item.removed {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error);
}

.diff-item.modified {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
}

.diff-path {
    font-weight: 600;
    font-family: 'Courier New', monospace;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.diff-value {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    white-space: pre;
    color: var(--text-secondary);
}

.diff-old {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--error);
    margin-bottom: 4px;
}

.diff-new {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--success);
}

.unified-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.unified-section {
    background: var(--surface-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
}

.unified-section h4 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 1rem;
}

.json-code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
    white-space: pre;
    overflow-x: auto;
    margin: 0;
}

.compare-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .json-compare-inputs {
        grid-template-columns: 1fr;
    }

    .summary-stats {
        grid-template-columns: 1fr;
    }

    #side-view {
        grid-template-columns: 1fr;
    }

    .unified-content {
        grid-template-columns: 1fr;
    }

    .compare-actions {
        flex-direction: column;
    }

    .compare-actions button {
        width: 100%;
    }
}

/* SQL Formatter Styles */
.sql-display {
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    max-height: 600px;
    overflow-y: auto;
}

.sql-code {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin: 0;
    white-space: pre;
    overflow-x: auto;
}

.sql-keyword {
    color: var(--primary-color);
    font-weight: 600;
}

.sql-string {
    color: var(--success);
}

.sql-number {
    color: #f59e0b;
}

.sql-operator {
    color: var(--secondary-color);
    font-weight: 500;
}

/* XML/YAML Formatter Styles */
#xml-output-text,
#yaml-output-text {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre;
    overflow-wrap: normal;
    overflow-x: auto;
}

/* Unified Diff Tool Styles */
.format-selector {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--surface-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
}

.format-selector label {
    display: block;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.format-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.format-btn {
    padding: 10px 24px;
    background: var(--background);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.format-btn:hover {
    background: var(--surface);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.format-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* SQL Converter Styles */
.direction-selector {
    background: var(--surface-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.direction-selector label {
    display: block;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.direction-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.direction-btn {
    padding: 12px 28px;
    background: var(--background);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.direction-btn:hover {
    background: var(--surface);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.direction-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.converter-options {
    background: var(--surface-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.converter-options h3 {
    margin: 0 0 16px 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.option-item:hover {
    background: var(--surface);
}

.option-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.option-item span {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.converter-inputs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    margin-bottom: 24px;
    align-items: start;
}

.input-column,
.output-column {
    display: flex;
    flex-direction: column;
}

.input-header,
.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.input-header label,
.output-header label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.input-actions,
.output-actions {
    display: flex;
    gap: 8px;
}

.convert-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-top: 40px;
    text-align: center;
}

#oracle-input,
#postgres-output {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
    background: var(--background);
    color: var(--text-primary);
}

#oracle-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#postgres-output {
    background: var(--surface-light);
    cursor: text;
}

.input-stats,
.output-stats {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.conversion-info {
    background: var(--surface-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.conversion-info h3 {
    margin: 0 0 16px 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.conversion-info h4 {
    margin: 16px 0 8px 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.conversion-info ul {
    margin: 8px 0;
    padding-left: 24px;
}

.conversion-info li {
    margin: 4px 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.conversion-stats {
    background: var(--surface-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.conversion-stats h3 {
    margin: 0 0 16px 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: var(--background);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stat-value {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.quick-reference {
    background: var(--surface-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-top: 24px;
}

.quick-reference h3 {
    margin: 0 0 16px 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.reference-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ref-tab {
    padding: 10px 20px;
    background: var(--background);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.ref-tab:hover {
    background: var(--surface);
    border-color: var(--primary-color);
}

.ref-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    color: white;
}

.reference-content {
    position: relative;
}

.ref-panel {
    display: none;
}

.ref-panel.active {
    display: block;
}

.ref-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.ref-table thead {
    background: var(--background);
}

.ref-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.ref-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.ref-table tr:hover {
    background: var(--surface);
}

.example-box {
    margin: 16px 0;
    padding: 16px;
    background: var(--background);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.example-box h4 {
    margin: 0 0 12px 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.example-code {
    background: var(--surface);
    padding: 12px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: auto;
    white-space: pre;
    margin: 0;
}

/* Java Decompiler */
.java-decompiler-upload {
    margin-bottom: 24px;
}
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    background: var(--background);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.08);
}
.upload-text {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.upload-browse {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}
.upload-hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.java-decompiler-options {
    margin-top: 16px;
}
.java-decompiler-options .option-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
}
.java-decompiler-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
}
.java-decompiler-output .output-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.java-decompiler-output textarea {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}
.java-decompiler-status {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Hash Generator */
.hash-secret-group {
    margin-top: 16px;
}
.hash-secret-group .label-optional {
    font-weight: normal;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.hash-secret-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Consolas', monospace;
}
.hash-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.hash-results {
    margin-bottom: 12px;
    padding: 12px;
    background: var(--background);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
}
.hash-line {
    margin: 6px 0;
    word-break: break-all;
}
.hash-line-raw {
    color: var(--text-secondary);
}
.hash-label {
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 8px;
}
.hash-value {
    color: var(--text-primary);
    background: var(--surface-light);
    padding: 2px 6px;
    border-radius: 4px;
}

/* UUID Generator */
.uuid-options {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 20px;
}
.uuid-option-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.uuid-option-row label {
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 70px;
}
.uuid-type-btns {
    display: flex;
    gap: 10px;
}
.uuid-option-row select {
    padding: 10px 14px;
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    min-width: 100px;
}
.uuid-output-group textarea {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Regex Tester */
.regex-quick-examples {
    margin-bottom: 20px;
}
.regex-quick-examples label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.regex-example-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.regex-example-btns .action-btn {
    font-size: 0.9rem;
}
.regex-pattern-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.regex-delim {
    color: var(--text-secondary);
    font-family: 'Consolas', monospace;
    font-size: 1.1rem;
}
.regex-pattern-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Consolas', 'Monaco', monospace;
}
.regex-pattern-input:focus {
    outline: none;
    border-color: var(--primary-color);
}
.regex-flags {
    display: flex;
    gap: 12px;
}
.regex-flag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.95rem;
}
.regex-flag input {
    width: 18px;
    height: 18px;
}
.regex-output {
    margin-top: 20px;
}
.regex-status {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    background: var(--surface-light);
    color: var(--text-secondary);
}
.regex-status.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}
.regex-status.error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}
.regex-highlight-wrap,
.regex-matches-wrap {
    margin-bottom: 16px;
}
.regex-highlight-wrap label,
.regex-matches-wrap label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.regex-highlight {
    padding: 16px;
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 60px;
}
.regex-highlight mark.regex-match {
    background: rgba(99, 102, 241, 0.4);
    color: var(--text-primary);
    padding: 1px 4px;
    border-radius: 3px;
}
.regex-matches-list {
    padding: 12px;
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
}
.regex-match-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}
.regex-match-item:last-child {
    border-bottom: none;
}
.regex-match-num {
    display: inline-block;
    min-width: 24px;
    color: var(--primary-color);
    font-weight: 600;
}
.regex-match-item code {
    background: var(--surface-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Timestamp Converter */
.timestamp-current {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--surface-light);
    border-radius: 8px;
    font-size: 0.95rem;
}
.timestamp-now-sep { margin: 0 8px; color: var(--border-color); }
.timestamp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 16px; }
@media (max-width: 768px) { .timestamp-row { grid-template-columns: 1fr; } }
.timestamp-result { padding: 16px; background: var(--background); border-radius: 8px; margin-bottom: 8px; }
.timestamp-result p { margin: 8px 0; }
.error-msg { color: var(--error); }

/* Curl to Code / JSON to Code */
.curl-to-code-tabs, .json-to-code-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.curl-tab, .j2c-tab {
    padding: 10px 18px;
    background: var(--surface-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 500;
}
.curl-tab:hover, .j2c-tab:hover { border-color: var(--primary-color); }
.curl-tab.active, .j2c-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    color: white;
}

/* Docker Generator */
.docker-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.docker-tab {
    padding: 10px 18px;
    background: var(--surface-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 500;
}
.docker-tab:hover { border-color: var(--primary-color); }
.docker-tab.active { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); border-color: var(--primary-color); color: white; }
.docker-form .input-group { margin-bottom: 16px; }
.docker-form .option-check { display: inline-block; margin-right: 16px; margin-bottom: 8px; }

/* Log Formatter */
.log-formatter-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }

/* API Calculator */
.api-calc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.api-calc-result { padding: 16px; background: var(--background); border-radius: 8px; }
.api-calc-result p { margin: 10px 0; }

@media (max-width: 768px) {
    .converter-inputs {
        grid-template-columns: 1fr;
    }
    
    .convert-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

