* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
    text-align: center;
}

.subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.prefs-section {
    margin: 30px 0;
}

.prefs-section p {
    color: #555;
    margin-bottom: 20px;
    font-weight: 500;
}

.time-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.time-btn {
    padding: 20px 10px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.time-btn small {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 5px;
    font-weight: normal;
}

.time-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.time-btn.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.time-btn.selected small {
    color: rgba(255, 255, 255, 0.9);
}

.generate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

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

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

.link-result {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.link-result p {
    color: #555;
    margin-bottom: 10px;
    font-size: 14px;
}

.link-container {
    display: flex;
    gap: 10px;
}

#shareLink {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

#copyLink {
    padding: 12px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease;
}

#copyLink:hover {
    background: #5a67d8;
}

.success-msg {
    color: #22c55e;
    font-size: 14px;
    margin-top: 10px;
    font-weight: 500;
}

.info-box {
    background: #f0f4ff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.info-box p {
    color: #555;
    margin-bottom: 8px;
}

.time-info {
    font-size: 14px;
    color: #666;
}

.time-info span {
    font-weight: 600;
    color: #333;
}

h2 {
    color: #333;
    font-size: 20px;
    margin-bottom: 20px;
}

h3 {
    color: #555;
    font-size: 16px;
    margin-bottom: 15px;
    margin-top: 30px;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.time-slot {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    transition: all 0.2s ease;
}

.time-slot:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.day-label {
    font-size: 12px;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.time-pair {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.time-pair span {
    font-size: 14px;
    color: #333;
}

.time-pair span:first-child {
    font-weight: 600;
}

.divider {
    height: 1px;
    background: #e5e7eb;
    margin: 30px 0;
}

.timezone-selector {
    margin: 20px 0;
}

.timezone-selector label {
    display: block;
    color: #555;
    font-weight: 500;
    margin-bottom: 8px;
}

.timezone-dropdown {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.timezone-dropdown:hover,
.timezone-dropdown:focus {
    border-color: #667eea;
    outline: none;
}

.timezone-selector-inline {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timezone-selector-inline label {
    color: #666;
    font-size: 14px;
    flex-shrink: 0;
}

.timezone-dropdown-inline {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.timezone-dropdown-inline:hover,
.timezone-dropdown-inline:focus {
    border-color: #667eea;
    outline: none;
}

.time-display {
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 15px 0 20px 0;
    text-align: center;
}

.time-display p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.time-display span {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

@media (max-width: 600px) {
    .container {
        padding: 25px;
    }
    
    .time-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .time-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 24px;
    }
}