.world-clock-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

/* Header with settings button */
.world-clock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.world-clock-title {
    font-size: 2.5rem;
    color: #333;
    margin: 0;
}

.settings-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.settings-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #444;
    font-weight: 600;
}

/* Live Clocks Section */
.clock-section {
    margin-bottom: 60px;
}

.clock-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    min-height: 200px;
}

/* Dynamic clock container adjustments */
.clock-container:empty::before {
    content: "No clocks selected. Click Settings to add clocks.";
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #ddd;
}

/* Responsive grid adjustments for different numbers of clocks */
.clock-container[data-clock-count="1"] {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
}

.clock-container[data-clock-count="2"] {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
}

.clock-container[data-clock-count="3"] {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 1000px;
    margin: 0 auto;
}

.clock-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clock-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* UTC Clock Specific Styling */
.clock-card.utc-clock {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: 2px solid #f39c12;
}

.clock-card.utc-clock .timezone-label {
    color: #f39c12;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 3px;
}

.clock-card.utc-clock .location {
    color: rgba(243, 156, 18, 0.8);
    font-weight: 500;
}

.clock-card.utc-clock .time {
    color: #ecf0f1;
    font-family: 'Courier New', monospace;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

.clock-card.utc-clock .date {
    color: rgba(236, 240, 241, 0.9);
}

.timezone-label {
    font-size: 1.2rem;
    color: #fff;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.location {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.time {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.date {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Converter Section */
.converter-section {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.converter-description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.converter-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    align-items: end;
}

.converter-input-group {
    display: flex;
    flex-direction: column;
}

.converter-input-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
    font-size: 0.95rem;
}

.converter-select,
.converter-input {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.converter-select:focus,
.converter-input:focus {
    outline: none;
    border-color: #667eea;
}

/* Time Presets */
.time-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.preset-button {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.preset-button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.preset-button:active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: scale(0.95);
}

.preset-button.now-button {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-color: #28a745;
}

.preset-button.now-button:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
}

.preset-button.morning {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    color: #2d3436;
    border-color: #fdcb6e;
}

.preset-button.afternoon {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    border-color: #0984e3;
}

.preset-button.evening {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
    color: white;
    border-color: #e84393;
}

.preset-button.custom {
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
    color: white;
    border-color: #6c5ce7;
    position: relative;
}

.preset-button.custom::after {
    content: '×';
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e17055;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.preset-button.custom:hover::after {
    opacity: 1;
}

.convert-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.convert-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.convert-button:active {
    transform: translateY(0);
}

/* Conversion Results */
.conversion-results {
    margin-top: 40px;
    animation: fadeIn 0.5s ease;
}

.conversion-loading {
    text-align: center;
    padding: 30px;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.results-title {
    font-size: 1.5rem;
    margin: 0;
    color: #333;
}

.copy-all-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.copy-all-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.5);
}

.copy-all-button:active {
    transform: translateY(0);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.result-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 2px solid #667eea;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.copy-button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    opacity: 0.7;
}

.copy-button:hover {
    background: rgba(102, 126, 234, 0.1);
    opacity: 1;
}

.copy-button:active {
    transform: scale(0.95);
}

.result-card:hover {
    transform: translateY(-3px);
}

.result-timezone {
    font-size: 1.1rem;
    color: #667eea;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-location {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
}

.result-time {
    font-size: 2.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

.result-date {
    font-size: 0.9rem;
    color: #666;
}

.result-difference {
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 600;
    margin-top: 8px;
    padding: 4px 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
    text-align: center;
}

.time-period-indicator {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 5px;
    padding: 3px 8px;
    border-radius: 4px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-period-indicator.business-hours {
    color: #28a745;
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.time-period-indicator.weekend {
    color: #6f42c1;
    background: rgba(111, 66, 193, 0.15);
    border: 1px solid rgba(111, 66, 193, 0.3);
}

.time-period-indicator.early-morning {
    color: #fd7e14;
    background: rgba(253, 126, 20, 0.15);
    border: 1px solid rgba(253, 126, 20, 0.3);
}

.time-period-indicator.evening {
    color: #e83e8c;
    background: rgba(232, 62, 140, 0.15);
    border: 1px solid rgba(232, 62, 140, 0.3);
}

.time-period-indicator.night {
    color: #6c757d;
    background: rgba(108, 117, 125, 0.15);
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.result-time.business-hours {
    color: #28a745;
    font-weight: 700;
}

/* UTC Result Card Styling */
.result-card.utc-result {
    border: 2px solid #f39c12;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.result-card.utc-result .result-timezone {
    color: #f39c12;
    font-weight: 900;
    letter-spacing: 2px;
}

.result-card.utc-result .result-location {
    color: rgba(243, 156, 18, 0.8);
}

.result-card.utc-result .result-time {
    color: #ecf0f1;
    font-family: 'Courier New', monospace;
}

.result-card.utc-result .result-date {
    color: rgba(236, 240, 241, 0.9);
}

/* Accessibility Enhancements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* Enhanced Focus Indicators */
button:focus,
input:focus,
select:focus,
[tabindex]:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .clock-card {
        border: 3px solid;
        background: white;
        color: black;
    }
    
    .result-card {
        border: 3px solid;
        background: white;
        color: black;
    }
    
    button {
        border: 2px solid;
        background: white;
        color: black;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .loading-spinner {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .world-clock-wrapper {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .clock-card {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
        color: #e0e0e0;
        border-color: #4a5568;
    }
    
    .converter-section {
        background: #2d3748;
        color: #e0e0e0;
    }
    
    .converter-input,
    .converter-select {
        background: #4a5568;
        color: #e0e0e0;
        border-color: #718096;
    }
    
    .result-card {
        background: #2d3748;
        color: #e0e0e0;
        border-color: #4a5568;
    }
    
    .settings-modal-content {
        background: #2d3748;
        color: #e0e0e0;
    }
    
    .timezone-selector {
        background: #4a5568;
        border-color: #718096;
    }
}

/* Keyboard Navigation Enhancements */
.keyboard-nav button:focus,
.keyboard-nav input:focus,
.keyboard-nav select:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.5);
}

/* ARIA Live Region Styling */
[aria-live] {
    position: relative;
}

[aria-live="polite"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

/* Fieldset and Legend Styling */
fieldset {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin: 10px 0;
}

legend {
    font-weight: 600;
    padding: 0 10px;
    color: #333;
}

/* Touch Device Enhancements */
.touch-device button,
.touch-device .clock-card,
.touch-device .result-card {
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.touch-active {
    transform: scale(0.98);
    opacity: 0.8;
    transition: transform 0.1s ease, opacity 0.1s ease;
}

/* iOS Specific Optimizations */
.ios-device {
    -webkit-overflow-scrolling: touch;
}

.ios-device input,
.ios-device select,
.ios-device textarea {
    -webkit-appearance: none;
    border-radius: 8px;
}

/* Android Specific Optimizations */
.android-device button {
    -webkit-tap-highlight-color: transparent;
}

/* Reduced Motion for Performance */
.reduced-motion * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

/* Touch-Friendly Scrollbars */
.touch-device ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.touch-device ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.touch-device ::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.touch-device ::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Improved Focus States for Touch */
.touch-device button:focus,
.touch-device input:focus,
.touch-device select:focus {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* Settings Modal */
.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.settings-modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.settings-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.settings-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.close-button {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-button:hover {
    color: #333;
}

.settings-modal-body {
    padding: 25px;
}

.settings-section {
    margin-bottom: 30px;
}

.settings-section h4 {
    margin: 0 0 15px 0;
    color: #444;
    font-size: 1.2rem;
}

.settings-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Timezone Selector */
.timezone-selector {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: #f9f9f9;
}

.timezone-group {
    margin-bottom: 20px;
}

.timezone-group-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    font-size: 1rem;
}

.timezone-option {
    margin: 5px 0;
    display: flex;
    align-items: center;
}

.timezone-option label {
    margin-left: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.timezone-option input[type="checkbox"] {
    margin: 0;
}

/* Preference Groups */
.preference-group {
    margin-bottom: 15px;
}

.preference-group label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 0.95rem;
}

.preference-group input[type="radio"],
.preference-group input[type="checkbox"] {
    margin-right: 8px;
}

/* Clock Order List */
.clock-order-list {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: #f9f9f9;
    min-height: 100px;
}

.clock-order-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 15px;
    margin-bottom: 8px;
    cursor: move;
    display: flex;
    align-items: center;
    transition: box-shadow 0.2s ease;
}

.clock-order-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.clock-order-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.drag-handle {
    margin-right: 10px;
    color: #999;
    font-size: 1.2rem;
}

.clock-order-item-info {
    flex: 1;
}

.clock-order-item-name {
    font-weight: 600;
    color: #333;
}

.clock-order-item-location {
    font-size: 0.85rem;
    color: #666;
}

/* Modal Footer */
.settings-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reset-button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.reset-button:hover {
    background: #c82333;
}

.save-button {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}

.save-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* Mobile and Touch Optimizations */
@media (max-width: 768px) {
    .world-clock-wrapper {
        padding: 15px;
    }

    .world-clock-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        margin-bottom: 30px;
    }

    .world-clock-title {
        font-size: 2rem;
        margin: 0;
    }

    .settings-button {
        padding: 14px 24px; /* Increased for better touch target */
        font-size: 1.1rem;
        min-height: 44px; /* Minimum touch target size */
        min-width: 120px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    /* Enhanced Clock Cards for Mobile */
    .clock-container {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: none;
    }

    .clock-card {
        padding: 25px 20px;
        margin: 0 auto;
        max-width: 400px;
        width: 100%;
    }

    .time {
        font-size: 2.2rem;
    }

    .timezone-label {
        font-size: 1.1rem;
    }

    /* Mobile Converter */
    .converter-section {
        padding: 20px;
        margin-top: 30px;
    }

    .converter-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .converter-input,
    .converter-select {
        padding: 14px 16px; /* Larger touch targets */
        font-size: 1rem;
        min-height: 44px;
    }

    .convert-button {
        padding: 16px 30px;
        font-size: 1.1rem;
        min-height: 48px;
        width: 100%;
        margin-top: 10px;
    }

    /* Mobile Time Presets */
    .time-presets {
        justify-content: center;
        margin-top: 15px;
    }

    .preset-button {
        padding: 10px 16px;
        font-size: 0.9rem;
        min-height: 44px;
        min-width: 60px;
    }

    /* Mobile Conversion Results */
    .results-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .results-title {
        font-size: 1.3rem;
    }

    .copy-all-button {
        padding: 12px 20px;
        min-height: 44px;
        width: 100%;
        max-width: 200px;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .result-card {
        padding: 20px 15px;
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }

    .result-time {
        font-size: 1.6rem;
    }

    .copy-button {
        padding: 8px 12px;
        font-size: 1.3rem;
        min-height: 44px;
        min-width: 44px;
    }

    /* Mobile Settings Modal */
    .settings-modal {
        padding: 10px;
    }

    .settings-modal-content {
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 10px;
        max-height: 90vh;
    }

    .settings-modal-header {
        padding: 15px 20px;
    }

    .close-button {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    .settings-modal-body {
        padding: 20px;
    }

    .timezone-selector {
        max-height: 150px;
        padding: 10px;
    }

    .timezone-option input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-right: 12px;
    }

    .timezone-option label {
        font-size: 0.95rem;
        line-height: 1.4;
        padding: 8px 0;
    }

    .preference-group input[type="radio"],
    .preference-group input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin-right: 12px;
    }

    .preference-group label {
        font-size: 1rem;
        padding: 10px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .clock-order-item {
        padding: 15px;
        margin-bottom: 10px;
        min-height: 60px;
    }

    .drag-handle {
        font-size: 1.5rem;
        margin-right: 15px;
    }

    .settings-modal-footer {
        padding: 15px 20px;
        flex-direction: column;
        gap: 12px;
    }

    .reset-button,
    .save-button {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
        min-height: 48px;
    }
}

/* Tablet Optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .clock-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .converter-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .convert-button {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 300px;
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Mobile Devices */
@media (max-width: 480px) {
    .world-clock-wrapper {
        padding: 10px;
    }

    .world-clock-title {
        font-size: 1.8rem;
    }

    .time {
        font-size: 2rem;
    }

    .clock-card {
        padding: 20px 15px;
    }

    .converter-section {
        padding: 15px;
    }

    .time-presets {
        gap: 6px;
    }

    .preset-button {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 50px;
    }

    .result-time {
        font-size: 1.4rem;
    }

    .settings-modal {
        padding: 5px;
    }

    .settings-modal-content {
        border-radius: 8px;
    }
}