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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.section.hidden {
    display: none;
}

.section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-range span {
    color: #666;
}

.time-slots {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    transition: all 0.3s;
}

.checkbox-label:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 15px;
}

.primary-btn, .secondary-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.secondary-btn {
    background: #e0e0e0;
    color: #666;
}

.secondary-btn:hover {
    background: #d0d0d0;
}

.calendar-container {
    margin: 20px 0;
}

#calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.calendar-header {
    font-weight: 600;
    text-align: center;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 5px;
}

.time-slot {
    padding: 15px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.time-slot:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.time-slot.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.time-slot.unavailable {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.share-container {
    background: #f8f9ff;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.share-link-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.share-link-box input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    background: white;
}

.copy-btn {
    padding: 12px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: #5a67d8;
}

.copy-btn.copied {
    background: #48bb78;
}

.share-instructions {
    text-align: center;
    color: #666;
    line-height: 1.8;
}

.meeting-info {
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

.results-container {
    display: grid;
    gap: 30px;
}

.participants-list h3,
.best-times h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #444;
}

.participants-list ul {
    list-style: none;
}

.participants-list li {
    padding: 8px 15px;
    background: #f5f5f5;
    margin-bottom: 8px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.participants-list li::before {
    content: "";
    color: #48bb78;
    font-weight: bold;
    margin-right: 10px;
}

.best-time-item {
    padding: 15px;
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    border-radius: 8px;
    margin-bottom: 10px;
    color: #2d3748;
    font-weight: 500;
}

.best-time-item .availability-count {
    font-size: 0.9em;
    color: #4a5568;
    margin-top: 5px;
}

.heatmap-container {
    margin-top: 30px;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.heatmap-cell {
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    position: relative;
}

.heatmap-cell .time {
    font-weight: 600;
    margin-bottom: 5px;
}

.heatmap-cell .count {
    font-size: 12px;
    color: #666;
}

.heat-level-0 { background: #f0f0f0; }
.heat-level-1 { background: #ffeaa7; }
.heat-level-2 { background: #fdcb6e; }
.heat-level-3 { background: #fd79a8; }
.heat-level-4 { background: #a29bfe; }
.heat-level-5 { background: #74b9ff; }

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .section {
        padding: 20px;
    }
    
    .time-slots {
        flex-direction: column;
    }
    
    .date-range {
        flex-direction: column;
        gap: 10px;
    }
    
    .date-range span {
        display: none;
    }
    
    #calendar-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}