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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Login Screen Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 60px 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.login-card h1 {
    color: #667eea;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.login-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

#google-signin-button {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.error-message {
    color: #d32f2f;
    font-size: 0.9rem;
    margin-top: 15px;
    display: none;
}

/* Header Styles */
header {
    color: white;
    padding: 40px 20px;
    margin-bottom: 40px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-content > div:first-child {
    text-align: left;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
}

.user-info span {
    color: white;
    font-weight: 500;
}

.logout-button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.logout-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.card h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

#status {
    font-weight: bold;
    color: #764ba2;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

footer {
    text-align: center;
    color: white;
    padding: 20px;
    opacity: 0.8;
}

/* Calendar Styles */
.calendar-card {
    grid-column: 1 / -1;
}

#calendar {
    margin-top: 20px;
}

/* FullCalendar Theme Customization */
.fc {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

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

.fc .fc-button-primary:disabled {
    opacity: 0.5;
}

.fc-theme-standard .fc-scrollgrid {
    border-color: #e0e0e0;
}

.fc-theme-standard td, .fc-theme-standard th {
    border-color: #e0e0e0;
}

.fc-daygrid-day-number {
    color: #333;
    font-weight: 600;
}

.fc-daygrid-day.fc-day-today {
    background-color: rgba(102, 126, 234, 0.1) !important;
}

.fc-event {
    cursor: pointer;
    border-radius: 4px;
}

.fc-event:hover {
    filter: brightness(1.1);
}

/* Session Details */
.session-details {
    margin-top: 20px;
}

.session-details .placeholder {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.session-details h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.session-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-left: 4px solid #667eea;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.session-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
}

.session-time,
.session-location {
    color: #555;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.session-notes {
    color: #666;
    font-size: 0.9rem;
    margin-top: 10px;
    padding: 10px;
    background: white;
    border-radius: 5px;
    font-style: italic;
}

.ical-badge {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-top: 10px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .login-card {
        padding: 40px 30px;
    }

    .login-card h1 {
        font-size: 2rem;
    }

    header h1 {
        font-size: 2rem;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-info {
        width: 100%;
        justify-content: space-between;
    }

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

    main {
        grid-template-columns: 1fr;
    }

    #calendar {
        font-size: 0.85rem;
    }

    .fc .fc-toolbar {
        flex-direction: column;
        gap: 10px;
    }

    .fc .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
    }
}
