/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    color: #0f172a;
}

/* Header Styles */
header {
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    padding: 0.75rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
}

header::before {
    display: none;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1.5rem;
}

.header-main {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.timestamp-sidebar {
    flex-shrink: 0;
    min-width: 260px;
}

header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
}

header h1 .logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    border-radius: 12px;
    font-size: 1.125rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4), 0 3px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { 
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4), 0 3px 10px rgba(0, 0, 0, 0.2);
    }
    50% { 
        box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6), 0 5px 15px rgba(0, 0, 0, 0.3);
    }
}

header h1 .logo-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

header h1 .logo-icon::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 10px;
    pointer-events: none;
}

header h1 .logo-icon:hover::before {
    left: 100%;
}

header h1 .logo-icon:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5), 0 5px 15px rgba(0, 0, 0, 0.3);
}

header h1 .logo-icon i {
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
    animation: clockRotate 12s ease-in-out infinite;
    transform-origin: center;
}

@keyframes clockRotate {
    0% { 
        transform: rotate(0deg);
    }
    8.33% { 
        transform: rotate(30deg);
    }
    16.66% { 
        transform: rotate(60deg);
    }
    25% { 
        transform: rotate(90deg);
    }
    33.33% { 
        transform: rotate(120deg);
    }
    41.66% { 
        transform: rotate(150deg);
    }
    50% { 
        transform: rotate(180deg);
    }
    58.33% { 
        transform: rotate(210deg);
    }
    66.66% { 
        transform: rotate(240deg);
    }
    75% { 
        transform: rotate(270deg);
    }
    83.33% { 
        transform: rotate(300deg);
    }
    91.66% { 
        transform: rotate(330deg);
    }
    100% { 
        transform: rotate(360deg);
    }
}



.epoch-clock {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: visible;
}

.epoch-clock::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 3px;
    background: linear-gradient(90deg, #87CEEB, #3b82f6, #8b5cf6);
    background-size: 200% 100%;
    animation: shimmer 4s ease-in-out infinite;
    border-radius: 12px 12px 0 0;
}

.epoch-clock .label {
    font-size: 0.65rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.epoch-clock .label i {
    font-size: 0.75rem;
}

.timestamp-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.timestamp-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.current-timestamp {
    font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    transition: transform 0.2s ease;
    position: relative;
    overflow: visible;
    flex-grow: 1;
}

.current-timestamp::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.current-timestamp:hover::before {
    left: 100%;
}

.copy-timestamp-btn {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.copy-timestamp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.copy-timestamp-btn:hover::before {
    left: 100%;
}

.copy-timestamp-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px -8px rgba(59, 130, 246, 0.6);
}

.current-times {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.current-date {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.current-date .time-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    flex-shrink: 0;
}

.current-date .time-icon .fas {
    color: #6c757d;
}

.current-date .time-text {
    font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    font-size: 0.8rem;
}

.flag-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 14px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.fi {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    object-fit: cover;
}

.flag-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 14px;
    border-radius: 2px;
    background-color: #4a5568;
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.converter-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.1), 0 8px 32px -8px rgba(59, 130, 246, 0.1);
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.converter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4, #3b82f6);
    background-size: 300% 100%;
    animation: shimmer 3s ease-in-out infinite;
    border-radius: 16px 16px 0 0;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.converter-container {
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

.converter-section-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.converter-section-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.converter-section-item::before {
    display: none;
}

.converter-section-item h3 {
    color: #212529;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.converter-section-item h3 i {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Enhanced Input Groups */
.input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: flex-end;
}

.input-with-icon {
    position: relative;
    flex: 1;
    min-width: 0;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1rem;
    z-index: 2;
    pointer-events: none;
}

.timestamp-field, .unit-selector, .duration-field, .date-field, .time-field, .timezone-field {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    background: #ffffff;
    color: #495057;
    transition: all 0.2s ease;
    font-weight: 500;
}

.timestamp-field, .duration-field {
    font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    padding-left: 3rem;
}

.timestamp-field::placeholder, .duration-field::placeholder, .date-field::placeholder, .time-field::placeholder {
    color: #adb5bd;
}

.timestamp-field:focus, .duration-field:focus, .date-field:focus, .time-field:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.unit-selector:focus, .timezone-field:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.unit-selector:focus {
    background: #ffffff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%233b82f6' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") no-repeat right 0.75rem center/1.5em 1.5em;
}

.unit-selector:hover {
    border-color: #94a3b8;
    background: #ffffff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%233b82f6' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") no-repeat right 0.75rem center/1.5em 1.5em;
}

select.timezone-field:focus {
    background: #ffffff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%233b82f6' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") no-repeat right 0.5rem center/1.2em 1.2em;
}

select.timezone-field:hover {
    border-color: #94a3b8;
    background: #ffffff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%233b82f6' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") no-repeat right 0.5rem center/1.2em 1.2em;
}

select.date-field:focus {
    background: #ffffff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%233b82f6' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") no-repeat right 0.5rem center/1.2em 1.2em;
}

select.date-field:hover {
    border-color: #94a3b8;
    background: #ffffff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%233b82f6' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") no-repeat right 0.5rem center/1.2em 1.2em;
}

.unit-selector {
    min-width: 160px;
    padding: 0.875rem 1.25rem;
    padding-right: 2.5rem;
    background: #ffffff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") no-repeat right 0.75rem center/1.5em 1.5em;
    color: #495057;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.unit-selector::-ms-expand {
    display: none;
}

.unit-selector option {
    background: #ffffff;
    color: #0f172a;
    padding: 0.5rem;
}

/* Enhanced Action Buttons */
.action-btn {
    border: 1px solid transparent;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    justify-content: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-2px);
}

.action-btn:active {
    transform: translateY(1px);
}

.action-btn.primary {
    background: #007bff;
    color: #ffffff;
}

.action-btn.primary:hover {
    background: #0069d9;
    box-shadow: 0 4px 12px rgba(0,123,255,.25);
}

.action-btn.secondary {
    background: #f8f9fa;
    color: #343a40;
    border-color: #ced4da;
}

.action-btn.secondary:hover {
    background: #e2e6ea;
    border-color: #dae0e5;
    box-shadow: none;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.quick-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.quick-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.batch-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.batch-link:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Enhanced Date Input Section */
.date-input-section {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 1rem;
}

.input-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

/* Add spacing between Date, Time, and Timezone groups */
.field-group:has(label:contains("Time"))::before,
.field-group:has(label:contains("Timezone"))::before {
    content: '';
    width: 1.5rem;
    display: block;
}

/* Alternative approach using nth-child for better browser support */
.input-row .field-group:nth-child(4) {
    margin-left: 1.5rem;
}

.input-row .field-group:nth-child(9) {
    margin-left: 1.5rem;
}

.field-group label {
    color: #495057;
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0;
    white-space: nowrap;
    min-height: 1.2rem;
    justify-content: flex-start;
    width: 100%;
}

.field-group label i {
    color: #3b82f6;
}

.date-field, .time-field, .timezone-field {
    padding: 0.75rem 0.875rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #ffffff;
    color: #495057;
    transition: all 0.2s ease;
    font-weight: 500;
    text-align: center;
    align-self: center;
}

/* Special styling for select dropdowns */
select.date-field, select.timezone-field {
    padding-right: 2rem;
    background: #ffffff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") no-repeat right 0.5rem center/1.2em 1.2em;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    text-align: left;
}

select.date-field::-ms-expand, select.timezone-field::-ms-expand {
    display: none;
}

.date-field {
    width: 80px;
}

.time-field {
    width: 65px;
}

.timezone-field {
    width: 160px;
    text-align: left;
}

/* Ensure proper spacing for timezone select */
select.timezone-field {
    padding-right: 2.5rem;
}

#month {
    width: 85px;
}

#year {
    width: 90px;
}

.date-field:focus, .time-field:focus, .timezone-field:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.separator {
    font-size: 1.2rem;
    font-weight: 600;
    color: #adb5bd;
    margin: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    padding: 0 0.25rem;
}

/* Enhanced Results Section */
.result-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
}

.result-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 8px 8px 0 0;
}

.result-group {
    display: grid;
    gap: 1rem;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.result-item:hover {
    background: #f8fafc;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px rgba(59, 130, 246, 0.3);
}

.result-item.highlighted {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
}

.result-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.875rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.result-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.result-item:hover .result-icon::before {
    left: 100%;
}

.result-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.result-content label {
    font-weight: 600;
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-value {
    font-size: 1rem;
    color: #0f172a;
    word-break: break-all;
    font-weight: 500;
    line-height: 1.5;
}

.result-value.monospace {
    font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    background: #f1f5f9;
    padding: 0.5rem;
    border-radius: 6px;
    color: #3b82f6;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

.copy-result-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 0.625rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.copy-result-btn:hover {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Share Section */
.share-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.share-link-btn {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    border: none;
    padding: 0.625rem 1rem 0.625rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px -1px rgba(99, 102, 241, 0.2), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.share-link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.share-link-btn:hover::before {
    left: 100%;
}

.share-link-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px -2px rgba(99, 102, 241, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.share-link-btn:hover i:last-child {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.share-link-btn:active {
    transform: translateY(0);
}

.share-link-btn i:first-child {
    font-size: 0.875rem;
    opacity: 0.9;
    color: #ffffff;
}

.share-link-btn i:last-child {
    font-size: 0.75rem;
    opacity: 0.6;
    color: #e0e7ff;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem;
    border-radius: 4px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    margin-left: 0.25rem;
    transition: all 0.2s ease;
}

.share-link-btn span {
    position: relative;
    z-index: 1;
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* Advanced Batch Converter */
.batch-converter-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    grid-column: 1 / -1;
}

.batch-converter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #059669, #047857, #059669);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.batch-converter-section h3 {
    color: #0f172a;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.batch-converter-section h3 i {
    color: #3b82f6;
}

.batch-method-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    gap: 0;
    background: #f1f5f9;
    padding: 0.25rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.batch-tab {
    background: transparent;
    border: none;
    color: #64748b;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.batch-tab:hover {
    color: #0f172a;
    background: rgba(59, 130, 246, 0.1);
}

.batch-tab.active {
    background: #ffffff;
    color: #3b82f6;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.batch-method {
    display: none;
}

.batch-method.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.text-input-area {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
}

.text-input-area label {
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.text-input-area label i {
    color: #3b82f6;
}

#batch-text-input {
    width: 100%;
    height: 200px;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    font-size: 0.875rem;
    resize: vertical;
    background: #ffffff;
    color: #0f172a;
    transition: all 0.2s ease;
    line-height: 1.5;
}

#batch-text-input::placeholder {
    color: #94a3b8;
}

#batch-text-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.batch-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
}

/* File Upload Area */
.file-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: #f8fafc;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-upload-area:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.file-upload-area.dragover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border-style: solid;
}

.upload-content i {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: 1rem;
    display: block;
}

.upload-content h4 {
    color: #0f172a;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.upload-content p {
    color: #64748b;
    margin-bottom: 0.5rem;
}

.file-types {
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Batch Results */
.batch-results-section {
    margin-top: 1.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-header h4 {
    color: #0f172a;
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.export-actions {
    display: flex;
    gap: 0.5rem;
}

.export-btn {
    background: #059669;
    color: #ffffff;
    border: none;
    padding: 0.625rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.export-btn:hover {
    background: #047857;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.results-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

#batch-results-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

#batch-results-table th {
    background: #f8fafc;
    color: #374151;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    border-bottom: 1px solid #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#batch-results-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #0f172a;
    font-weight: 500;
    font-size: 0.875rem;
}

#batch-results-table tr:nth-child(even) td {
    background: #f8fafc;
}

#batch-results-table tr:hover td {
    background: #f1f5f9;
}

#batch-results-table tr.success td {
    background: rgba(5, 150, 105, 0.05);
}

#batch-results-table tr.error td {
    background: rgba(239, 68, 68, 0.05);
}

.text-success {
    color: #059669;
}

.text-error {
    color: #ef4444;
}

/* Duration Section */
.duration-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    grid-column: 1 / -1;
}

.duration-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #5b21b6, #7c3aed);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.duration-section h3 {
    color: #0f172a;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    text-align: left;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
}

.duration-section h3 i {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.duration-input {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.duration-result {
    text-align: left;
    font-size: 1rem;
    color: #0f172a;
    font-weight: 600;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    line-height: 1.5;
}

.duration-result i {
    color: #3b82f6;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Enhanced Batch Modal */
.batch-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.batch-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.batch-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 90%;
    max-height: 90%;
    width: 900px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    animation: scaleIn 0.2s ease;
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.batch-header {
    background: #3b82f6;
    color: #ffffff;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.batch-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.batch-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
    color: #0f172a;
}

.batch-input-section {
    margin-bottom: 1.5rem;
}

.batch-input-section label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

#batch-input {
    width: 100%;
    height: 150px;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    font-size: 0.875rem;
    resize: vertical;
    background: #ffffff;
    color: #0f172a;
    transition: all 0.2s ease;
    line-height: 1.5;
}

#batch-input::placeholder {
    color: #94a3b8;
}

#batch-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#batch-results {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

#batch-results th {
    background: #f8fafc;
    color: #374151;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    border-bottom: 1px solid #e2e8f0;
}

#batch-results td {
    padding: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    color: #0f172a;
    font-size: 0.875rem;
}

#batch-results tr:nth-child(even) td {
    background: #f8fafc;
}

#batch-results tr:hover td {
    background: #f1f5f9;
}

/* Footer */
footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    margin-top: 3rem;
    padding: 3rem 2rem;
    box-shadow: 0 -1px 3px 0 rgba(0, 0, 0, 0.1), 0 -1px 2px 0 rgba(0, 0, 0, 0.06);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.what-is-epoch h3 {
    color: #0f172a;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.what-is-epoch h3 i {
    color: #3b82f6;
}

.what-is-epoch p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.time-reference table {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 2rem;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.time-reference td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #0f172a;
    font-weight: 500;
}

.time-reference tr:nth-child(even) td {
    background: #f8fafc;
}

.time-reference td:first-child {
    font-weight: 600;
    color: #374151;
}

.time-reference td:first-child i {
    color: #3b82f6;
    margin-right: 0.5rem;
}

.time-reference td:last-child {
    font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    color: #3b82f6;
    font-weight: 600;
}

/* Programming Sections */
.programming-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.programming-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.programming-section h3 {
    color: #0f172a;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    justify-content: center;
}

.programming-section h3 i {
    color: #3b82f6;
}

.code-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.code-example {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.code-example:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.language-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.language-header i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.code-block {
    padding: 1rem;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.code-block code {
    font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    font-size: 0.875rem;
    color: #1e293b;
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: block;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

/* Epoch Facts Section */
.epoch-facts {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.epoch-facts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #d97706, #f59e0b);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.epoch-facts h3 {
    color: #0f172a;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    justify-content: center;
}

.epoch-facts h3 i {
    color: #f59e0b;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.fact-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.fact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
    background: #ffffff;
}

.fact-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.fact-content h4 {
    color: #0f172a;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.fact-content p {
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.875rem;
}

.fact-content strong {
    color: #1e293b;
    font-weight: 600;
}

.footer-note {
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-note i {
    color: #3b82f6;
}

.footer-note kbd {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    font-size: 0.75rem;
    color: #3b82f6;
    font-weight: 600;
}

/* Uploaded Files Styling */
.uploaded-file {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0f172a;
}

.file-status {
    color: #059669;
    font-weight: 500;
    font-size: 0.875rem;
}

.file-name {
    font-weight: 600;
}

.file-size {
    color: #64748b;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .header-main {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .timestamp-sidebar {
        min-width: unset;
        width: 100%;
    }
    
    header h1 {
        font-size: 1.5rem;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .current-timestamp {
        font-size: 1.125rem;
        padding: 0.5rem 0.75rem;
    }
    
    .current-times {
        text-align: center;
    }
    
    .current-date {
        justify-content: center;
    }
    
    .converter-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .input-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .field-group {
        align-items: stretch;
        width: 100%;
    }
    
    .field-group label {
        justify-content: flex-start;
        margin-bottom: 0.5rem;
    }
    
    .date-field, .time-field, .timezone-field {
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
    
    /* Mobile dropdown adjustments */
    select.date-field, select.timezone-field {
        padding-right: 2.5rem;
        background-size: 1.5em 1.5em;
        background-position: right 0.75rem center;
    }
    
    .separator {
        display: none;
    }
    
    .quick-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .batch-content {
        width: 95%;
        max-height: 85%;
    }
    
    .batch-body {
        padding: 1.5rem;
    }
    
    main {
        padding: 0 1rem;
    }
    
    .converter-section,
    .batch-converter-section,
    .duration-section {
        padding: 1rem;
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .export-actions {
        justify-content: center;
    }
    
    .duration-input {
        flex-direction: column;
        align-items: stretch;
    }
    
    .duration-section h3 {
        text-align: left;
        justify-content: flex-start;
    }
    
    /* Programming sections responsive */
    .programming-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .programming-section h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .code-examples {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .code-example {
        margin-bottom: 0.5rem;
    }
    
    .language-header {
        padding: 0.625rem 0.875rem;
        font-size: 0.8rem;
    }
    
    .code-block {
        padding: 0.875rem;
    }
    
    .code-block code {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    /* Epoch facts responsive */
    .epoch-facts {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .epoch-facts h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .facts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .fact-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .fact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .fact-content h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .fact-content p {
        font-size: 0.875rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1.5rem 0;
    }
    
    header h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .current-timestamp {
        font-size: 1.25rem;
        padding: 0.5rem 0.75rem;
    }
    
    .converter-section,
    .batch-converter-section,
    .duration-section {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .mode-section h2 {
        font-size: 1.5rem;
    }
    
    .converter-tab {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    
    .batch-content {
        width: 98%;
        max-height: 90%;
    }
    
    .batch-header {
        padding: 1rem 1.5rem;
    }
    
    .batch-body {
        padding: 1rem;
    }
    
    #batch-results-table th,
    #batch-results-table td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    footer {
        padding: 2rem 1rem;
    }
    
    .timestamp-display {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .result-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .result-content {
        text-align: center;
    }
    
    /* Programming sections mobile */
    .programming-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .programming-section h3 {
        font-size: 1.125rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .language-header {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .code-block {
        padding: 0.75rem;
    }
    
    .code-block code {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    /* Duration section mobile */
    .duration-section h3 {
        font-size: 1rem;
        text-align: left;
        justify-content: flex-start;
        gap: 0.5rem;
    }
    
    .duration-result {
        font-size: 0.9rem;
        padding: 0.875rem;
        gap: 0.5rem;
    }
    
    .duration-result i {
        font-size: 1rem;
    }
    
    /* Epoch facts mobile */
    .epoch-facts {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .epoch-facts h3 {
        font-size: 1.125rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .fact-card {
        padding: 0.875rem;
    }
    
    .fact-icon {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    .fact-content h4 {
        font-size: 0.9rem;
    }
    
    .fact-content p {
        font-size: 0.8rem;
    }
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .batch-modal {
        display: none !important;
    }
    
    .converter-section,
    .batch-converter-section,
    .duration-section {
        background: white !important;
        box-shadow: none !important;
        color: black !important;
    }
} 