:root {
    --primary-color: #7e6cff;
    --primary-light: #9d8eff;
    --primary-dark: #5e4fcc;
    --secondary-color: #ff9e6d;
    --accent-color: #ff6b8b;
    --light-bg: #f8faff;
    --light-card: #ffffff;
    --light-text: #4a5568;
    --light-border: #e2e8f0;
    --success-color: #4ade80;
    --warning-color: #f59e0b;
    --error-color: #ff6b8b;
    --timeline-color: #ff9e9e;
    --shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
    --shadow-hover: 0 8px 25px rgba(99, 102, 241, 0.12);
}

body {
    background-color: #f5f0ff;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(199, 182, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(199, 182, 255, 0.1) 0%, transparent 20%);
}

.leaderboard {
    list-style-type: none;
}

.leaderboard li {
    padding: 14px 18px;
    border-bottom: 1px solid var(--light-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 5px;
}

.leaderboard li:hover {
    background: linear-gradient(135deg, #f0f4ff 0%, #f8faff 100%);
    transform: translateX(5px);
}

.leaderboard li:nth-child(1) {
    background: linear-gradient(135deg, #fffaf0 0%, #fed7aa 100%);
    font-weight: 600;
    border-left: 4px solid #f59e0b;
}

.leaderboard li:nth-child(2), 
.leaderboard li:nth-child(3) {
    background: linear-gradient(135deg, #f8faff 0%, #e0e7ff 100%);
    border-left: 4px solid #8b5cf6;
}

.rank {
    font-weight: bold;
    color: var(--primary-color);
    width: 30px;
    display: inline-block;
}

.time {
    color: #6b7280;
    font-size: 0.9rem;
}

.recent-checkins {
    list-style-type: none;
    max-height: 600px;
    overflow-y: auto;
}

.recent-checkins li {
    padding: 12px 16px;
    border-bottom: 1px solid var(--light-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.recent-checkins li:hover {
    background: linear-gradient(135deg, #f0f4ff 0%, #f8faff 100%);
}

.late-list, .absent-list {
    margin-top: 20px;
    width: 100%;
    display: none;
}

.late-list ul, .absent-list ul {
    list-style-type: none;
    columns: 3;
    column-gap: 20px;
}

.late-list li, .absent-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--light-border);
    break-inside: avoid;
}

.info-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    background: var(--light-card);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.info-text {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.last-update {
    color: var(--light-text);
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

.love-header {
    position: relative;
}

.parent-tip {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #831843;
    border-left: 4px solid var(--accent-color);
}

.period-data {
    transition: all 0.3s ease;
}

.no-period-message {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 15px;
    display: none;
}

.recent-panel.full-width {
    width: 100%;
    max-width: 100%;
}

.recent-checkins.full-height {
    max-height: 600px;
}

@media (max-width: 768px) {
    .late-list ul, .absent-list ul {
        columns: 2;
    }
    
    .info-panel {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-text {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .love-header::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .late-list ul, .absent-list ul {
        columns: 1;
    }
    
    .recent-checkins {
        max-height: 500px;
    }
}