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

body {
    font-family: 'Comic Sans MS', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 1.6em;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.current-date, .current-week {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 10px;
}

/* Mobile View (Portrait) - Default */
.mobile-view {
    display: block;
}

.desktop-view {
    display: none;
}

.swipe-container {
    padding: 12px;
    max-width: 600px;
    margin: 0 auto;
    touch-action: pan-y;
}

.day-view {
    background: white;
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.activities-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-item {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 5px solid #e17055;
}

.activity-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.activity-item.class {
    background: linear-gradient(135deg, #a8e6cf 0%, #56ab91 100%);
    border-left-color: #00b894;
}

.activity-item.extra-activity {
    background: linear-gradient(135deg, #ff9ff3 0%, #feca57 100%);
    border-left-color: #ee5a6f;
}

.activity-name {
    font-size: 1.1em;
    font-weight: bold;
    color: #2d3436;
    margin-bottom: 3px;
}

.activity-time {
    font-size: 0.9em;
    color: #636e72;
    display: flex;
    align-items: center;
    gap: 5px;
}

.activity-time::before {
    content: "🕐";
}

.swipe-hint {
    text-align: center;
    color: white;
    margin-top: 20px;
    font-size: 1.1em;
    opacity: 0.8;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

.no-activities {
    text-align: center;
    padding: 40px;
    color: #636e72;
    font-size: 1.2em;
}

.no-activities::before {
    content: "🎉";
    display: block;
    font-size: 3em;
    margin-bottom: 10px;
}

/* Week View (Desktop/Landscape) */
.week-view {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    padding: 20px;
    max-width: 1560px;
    margin: 0 auto;
}

.week-day {
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.week-day.today {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.week-day-header {
    font-size: 1.2em;
    font-weight: bold;
    color: #2d3436;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dfe6e9;
    text-align: center;
}

.week-day-date {
    font-size: 0.9em;
    color: #636e72;
    text-align: center;
    margin-bottom: 10px;
}

.week-activities {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.week-activity {
    background: linear-gradient(135deg, #a8e6cf 0%, #56ab91 100%);
    border-radius: 10px;
    padding: 10px;
    font-size: 0.9em;
}

.week-activity.extra-activity {
    background: linear-gradient(135deg, #ff9ff3 0%, #feca57 100%);
}

.week-activity-name {
    font-weight: bold;
    color: #2d3436;
}

.week-activity-time {
    font-size: 0.85em;
    color: #636e72;
    margin-top: 2px;
}

/* Landscape/Desktop Media Query */
@media (orientation: landscape) and (min-width: 768px), (min-width: 1024px) {
    .mobile-view {
        display: none;
    }

    .desktop-view {
        display: block;
    }
}

/* Responsive adjustments for smaller tablets */
@media (max-width: 768px) and (orientation: landscape) {
    .week-view {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .week-day {
        padding: 10px;
    }

    .week-activity {
        padding: 8px;
        font-size: 0.8em;
    }
}

/* Very small screens */
@media (max-width: 375px) {
    .header h1 {
        font-size: 1.5em;
    }

    .activity-name {
        font-size: 1.1em;
    }

    .activity-time {
        font-size: 0.9em;
    }
}
