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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

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

header .school-logo {
    max-width: 80px;
    height: auto;
    margin-bottom: 15px;
    display: block;
}

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

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

section {
    padding: 30px;
    border-bottom: 1px solid #eee;
}

section:last-child {
    border-bottom: none;
}

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

.status-box {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.status-box p {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #666;
}

.status-box.connected {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.status-box.connected p {
    color: #065f46;
    font-weight: 600;
}

.status-box.disconnected {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.status-box.disconnected p {
    color: #7f1d1d;
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

.button-secondary {
    background: #ef4444;
}

.button-secondary:hover {
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.4);
}

.button-success {
    background: #10b981;
}

.button-success:hover {
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.4);
}

.info-section p {
    font-size: 1.05em;
    color: #555;
    margin: 10px 0;
}

code {
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: "Monaco", "Menlo", monospace;
    color: #d946ef;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.slot-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.slot-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.slot-card h3 {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #333;
}

.slot-time {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 12px;
}

.slot-duration {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.meeting-details {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
}

.meeting-id {
    font-size: 0.9em;
    color: #065f46;
    margin-bottom: 8px;
    word-break: break-all;
}

.join-link {
    font-size: 0.9em;
}

.join-link a {
    color: #667eea;
    text-decoration: none;
    word-break: break-all;
}

.join-link a:hover {
    text-decoration: underline;
}

.slot-actions {
    display: flex;
    gap: 10px;
}

.slot-actions button {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.9em;
}

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-message {
    color: #dc2626;
    font-size: 0.9em;
    margin-top: 8px;
}

.success-message {
    color: #10b981;
    font-size: 0.9em;
    margin-top: 8px;
}

@media (max-width: 600px) {
    header {
        padding: 30px 20px;
    }

    header h1 {
        font-size: 1.5em;
    }

    section {
        padding: 20px;
    }

    .slots-grid {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 1.2em;
    }
}
