* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --background: #121212;
    --surface: #1e1e1e;
    --text-primary: #f5f5f5;
    --text-secondary: #b0b0b0;
    --americas: #ff6b6b;
    --europe: #4ecdc4;
    --asia: #ffd166;
    --oceania: #6a0572;
    --other: #1a936f;
    --highlight: #3a86ff;
}

body {
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(58, 134, 255, 0.05) 0%, rgba(58, 134, 255, 0) 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 107, 107, 0.05) 0%, rgba(255, 107, 107, 0) 20%);
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
    max-width: 800px;
    margin: 0 auto 30px;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 25px;
    line-height: 1.7;
}

.timestamp-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
    padding: 20px;
    background: rgba(30, 30, 30, 0.7);
    border-radius: 12px;
    max-width: 700px;
    margin: 30px auto;
    border: 1px solid #2a2a2a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.timestamp-container label {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--highlight);
}

.timestamp-container input {
    background: rgba(40, 40, 40, 0.7);
    border: 1px solid #444;
    color: var(--text-primary);
    padding: 12px 20px;
    font-size: 1.1rem;
    border-radius: 8px;
    width: 220px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s;
}

.timestamp-container input:focus {
    outline: none;
    border-color: var(--highlight);
    background: rgba(50, 50, 50, 0.9);
    box-shadow: 0 0 0 2px rgba(58, 134, 255, 0.3);
}

.controls {
    display: flex;
    gap: 15px;
}

.share-button,
.reset-button {
    background: rgba(40, 40, 40, 0.7);
    color: var(--text-primary);
    border: 1px solid #444;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-button:hover,
.reset-button:hover {
    background: rgba(60, 60, 60, 0.9);
    border-color: #555;
}

.share-button:active,
.reset-button:active {
    transform: translateY(1px);
}

.regions-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    max-width: 1600px;
    margin: 0 auto;
}

.region {
    background: rgba(30, 30, 30, 0.7);
    border-radius: 12px;
    padding: 25px;
    flex: 1;
    min-width: 320px;
    max-width: 640px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #2a2a2a;
    transition: transform 0.3s;
}

.region:hover {
    transform: translateY(-5px);
}

.region-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.region-icon {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 12px;
}

.region-title {
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.timezone-table {
    width: 100%;
    border-collapse: collapse;
}

.timezone-table th {
    text-align: left;
    padding: 14px 10px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 1px solid #333;
}

.timezone-table td {
    padding: 12px 6px;
    border-bottom: 1px solid #2a2a2a;
}

.abbr-cell {
    font-weight: bold;
    width: 70px;
    font-size: 0.95rem;
}

#asia-timezones tr .abbr-cell {
    color: var(--asia);
}

#europe-timezones tr .abbr-cell {
    color: var(--europe);
}

#americas-timezones tr .abbr-cell {
    color: var(--americas);
}

.name-cell {
    color: var(--text-secondary);
    font-size: 0.7rem;
    padding-right: 15px;
}

.offset-cell {
    color: var(--text-secondary);
    width: 90px;
    font-size: 0.7em;
}

.time-input {
    background: rgba(40, 40, 40, 0.5);
    border: 1px solid transparent;
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: 6px;
    width: 100%;
    transition: all 0.3s;
    font-size: 0.75rem;
}

.time-input:focus {
    outline: none;
    border-color: var(--highlight);
    background: rgba(50, 50, 50, 0.8);
    box-shadow: 0 0 0 2px rgba(58, 134, 255, 0.2);
}

footer {
    text-align: center;
    margin-top: 50px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid #333;
    max-width: 800px;
    margin: 50px auto 0;
}

.footer-note {
    margin-top: 15px;
    font-size: 0.85rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .regions-container {
        flex-direction: column;
    }

    .region {
        min-width: 100%;
    }

    .timestamp-container {
        flex-direction: column;
    }

    h1 {
        font-size: 2.2rem;
    }
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0.7;
    }
}

.instructions {
    background: rgba(40, 40, 40, 0.7);
    border-radius: 10px;
    padding: 20px;
    margin: 30px auto;
    max-width: 800px;
    border: 1px solid #2a2a2a;
}

.instructions h3 {
    margin-bottom: 15px;
    color: var(--highlight);
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructions ul {
    padding-left: 25px;
}

.instructions li {
    margin-bottom: 10px;
    line-height: 1.6;
}