* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 50%, #0f1419 100%);
    padding: 40px 20px;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

/* Tools Navigation */
.tools-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
}

.tool-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.tool-link.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* Header */
.main-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.tab-btn {
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.tab-btn.active[data-tab="converter"] {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.tab-btn.active[data-tab="scheduler"] {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.15);
}

/* Info Box */
.info-box {
    background: rgba(139, 92, 246, 0.15);
    border-left: 4px solid #8b5cf6;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 25px;
}

.info-box h3 {
    color: #ffffff;
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-box ul {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    padding-left: 20px;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Selector Box */
.selector-box {
    background: rgba(30, 35, 50, 0.8);
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.selector-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.selector-icon {
    font-size: 1.5rem;
}

.selector-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
}

select, input[type="text"], input[type="date"], input[type="time"] {
    width: 100%;
    padding: 14px 18px;
    border-radius: 8px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    background: rgba(15, 20, 30, 0.9);
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

select:focus, input:focus {
    border-color: rgba(139, 92, 246, 0.6);
}

select option {
    background: #1a1f2e;
    color: #ffffff;
}

/* Live Time Display */
.live-time-display {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
}

.live-time-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.live-time-location {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.live-time-clock {
    font-size: 4rem;
    font-weight: 700;
    color: #22c55e;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    text-shadow: 0 0 30px rgba(34, 197, 94, 0.5);
    letter-spacing: 2px;
}

.live-time-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Placeholder */
.placeholder {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.placeholder-text {
    font-size: 1.2rem;
}

/* Section Title */
.section-title {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Timezones Grid */
.timezones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.timezone-card {
    background: rgba(30, 35, 50, 0.8);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.timezone-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.timezone-card.copied {
    border: 2px solid #22c55e;
}

.status-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.timezone-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.timezone-icon {
    font-size: 1.3rem;
}

.timezone-city {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
}

.timezone-name {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.timezone-time {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.timezone-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: 5px;
}

.copied-badge {
    position: absolute;
    bottom: 10px;
    right: 15px;
    color: #22c55e;
    font-size: 0.85rem;
    font-weight: 600;
    display: none;
}

.timezone-card.copied .copied-badge {
    display: block;
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Form Styles */
.form-box {
    background: rgba(30, 35, 50, 0.8);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-title {
    color: #ffffff;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.participant-count {
    background: rgba(139, 92, 246, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: normal;
}

/* Participants Grid */
.participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.participant-item {
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.participant-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.participant-item.selected {
    background: rgba(236, 72, 153, 0.3);
    border-color: #ec4899;
}

.participant-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.participant-item.selected .participant-checkbox {
    background: #ec4899;
    border-color: #ec4899;
}

.participant-checkbox span {
    color: #fff;
    font-size: 12px;
    display: none;
}

.participant-item.selected .participant-checkbox span {
    display: block;
}

.participant-name {
    color: #ffffff;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Generate Button */
.generate-btn-container {
    text-align: center;
    margin-bottom: 25px;
}

.generate-btn {
    padding: 16px 40px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.2s ease;
}

.generate-btn:not(:disabled) {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
    cursor: pointer;
}

.generate-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.generate-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(34, 197, 94, 0.5);
}

/* Meeting Results */
.meeting-results {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.results-title {
    color: #ffffff;
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.results-subtitle {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 25px 0;
}

.results-section-title {
    color: #ffffff;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
}

.participant-times {
    display: grid;
    gap: 12px;
}

.participant-time-card {
    background: rgba(15, 20, 30, 0.6);
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 4px solid;
}

.participant-time-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.participant-time-icon {
    font-size: 1.5rem;
}

.participant-time-city {
    color: #ffffff;
    font-weight: 600;
}

.participant-time-name {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.participant-time-right {
    text-align: right;
}

.participant-time-value {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.participant-time-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Results Actions */
.results-actions {
    margin-top: 25px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-green {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    transition: all 0.2s ease;
}

.btn-green:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #22c55e;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 1.8rem;
    }
    
    .live-time-clock {
        font-size: 2.5rem;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
    }
    
    .timezones-grid {
        grid-template-columns: 1fr;
    }
    
    .participants-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tools-nav {
        gap: 10px;
    }

    .tool-link {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .participants-grid {
        grid-template-columns: 1fr;
    }
}