:root {
    --bg: #f0f2f5;
    --card-bg: #ffffff;
    --text: #1a1a2e;
    --text-secondary: #64748b;
    --primary: #2563eb;
    --primary-light: #eff6ff;
    --primary-dark: #1d4ed8;
    --green: #16a34a;
    --amber: #d97706;
    --amber-light: #fffbeb;
    --purple: #7c3aed;
    --red: #dc2626;
    --border: #e2e8f0;
    --radius: 16px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.08);
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 24px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 680px;
}

header {
    text-align: center;
    padding: 32px 0 24px;
}

header h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

header p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

.status-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 28px 32px;
    margin-bottom: 24px;
    transition: all 0.3s;
}

.status-card.active {
    border-left: 4px solid var(--green);
}

.status-card.upcoming {
    border-left: 4px solid var(--primary);
}

.status-card.done,
.status-card.weekend {
    border-left: 4px solid var(--text-secondary);
}

.status-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.status-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.status-desc {
    color: var(--text-secondary);
    font-size: 14px;
}

.status-time {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.status-time strong {
    color: var(--text);
    font-weight: 600;
}

.join-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 20px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.join-btn:hover {
    background: var(--primary-dark);
}

.calendar-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 32px;
    margin-bottom: 24px;
}

.calendar-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.calendar-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.calendar-header .month-year {
    font-size: 17px;
    font-weight: 600;
}

.calendar-nav {
    display: flex;
    gap: 8px;
}

.calendar-nav button {
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 16px;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.calendar-nav button:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-grid .day-name {
    text-align: center;
    padding: 8px 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.calendar-grid .day-name.sat,
.calendar-grid .day-name.sun {
    color: var(--red);
}

.calendar-day {
    position: relative;
    text-align: center;
    padding: 10px 4px;
    font-size: 14px;
    border-radius: 8px;
    cursor: default;
    transition: background 0.2s;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.calendar-day.prev,
.calendar-day.next {
    color: #cbd5e1;
}

.calendar-day.today {
    background: var(--primary-light);
    font-weight: 700;
    color: var(--primary);
}

.calendar-day.has-meeting {
    font-weight: 600;
}

.calendar-day .meeting-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-top: 3px;
}

.calendar-day .meeting-dot.daily {
    background: var(--primary);
}

.calendar-day .meeting-dot.planning {
    background: var(--amber);
    width: 8px;
    height: 8px;
}

.calendar-day .meeting-dot.review {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--green);
}

.calendar-day .meeting-dot.retro {
    background: var(--purple);
    width: 8px;
    height: 8px;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.legend-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-item .dot.daily {
    background: var(--primary);
}

.legend-item .dot.planning {
    background: var(--amber);
    width: 10px;
    height: 10px;
}

.legend-item .dot.review {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--green);
}

.legend-item .dot.retro {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--purple);
}

.schedule-list {
    margin-top: 20px;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--bg);
    margin-bottom: 6px;
    font-size: 14px;
}

.schedule-item .sch-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.schedule-item .sch-label {
    flex: 1;
    min-width: 0;
}

.schedule-item .sch-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 13px;
    color: var(--primary);
    margin-left: 6px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.schedule-item .sch-link:hover {
    opacity: 1;
}

.schedule-item .sch-time {
    color: var(--text-secondary);
    font-size: 13px;
    flex-shrink: 0;
}

@media (max-width: 520px) {
    body {
        padding: 12px;
    }

    .status-card {
        padding: 20px;
    }

    .calendar-section {
        padding: 20px;
    }

    .calendar-day {
        padding: 8px 2px;
        font-size: 13px;
        min-height: 38px;
    }
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.status-card.active .status-icon {
    animation: pulse-dot 2s ease-in-out infinite;
}

.calendar-day.has-meeting {
    cursor: pointer;
}

.calendar-day.has-meeting:hover {
    background: #f8fafc;
}

.calendar-day.today.has-meeting:hover {
    background: var(--primary-light);
}
