:root {
    --primary-color: #4361ee; --primary-light: #eef2ff; --primary-dark: #3a56d4;
    --secondary-color: #48bfe3; --accent-color: #9e0059; --success-color: #06d6a0;
    --warning-color: #ffbe0b; --danger-color: #ef476f; --dark-color: #232946;
    --light-color: #ffffff; --gray-100: #f8f9fa; --gray-200: #e9ecef;
    --gray-300: #dee2e6; --gray-400: #ced4da; --gray-500: #adb5bd;
    --gray-600: #6c757d; --gray-700: #495057; --gray-800: #343a40; --gray-900: #212529;
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05); --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.15); --shadow-xl: 0 15px 30px rgba(0, 0, 0, 0.2);
    --shadow-inset: inset 0 2px 10px rgba(0, 0, 0, 0.1);
    --font-primary: 'Poppins', sans-serif; --font-secondary: 'Montserrat', sans-serif;
    --header-height: 90px; --stats-height: 70px; --filters-height: 50px;
    --border-radius-sm: 6px; --border-radius-md: 10px; --border-radius-lg: 15px;
    --transition-speed: 0.3s; --card-height: 300px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
    font-family: var(--font-primary); color: var(--gray-800); background: var(--gray-100);
    min-height: 100vh; line-height: 1.6; position: relative; display: flex; flex-direction: column;
}
body::before {
    content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(67, 97, 238, 0.03) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(72, 191, 227, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(158, 0, 89, 0.02) 0%, transparent 60%);
    z-index: -1; animation: backgroundPulse 20s ease-in-out infinite alternate;
}
@keyframes backgroundPulse { 0% { transform: scale(1); opacity: 0.7; } 50% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); opacity: 0.8; } }
.particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; }
.particle { position: absolute; background-color: var(--primary-color); border-radius: 50%; opacity: 0.2; pointer-events: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-secondary); color: var(--dark-color); font-weight: 700; line-height: 1.3; }
.app-container { width: 100%; max-width: 1920px; margin: 0 auto; height: 100vh; display: flex; flex-direction: column; padding: 15px; }
.main-header {
    background: var(--light-color); border-radius: var(--border-radius-lg); padding: 15px 25px;
    display: flex; align-items: center; box-shadow: var(--shadow-md); position: relative;
    overflow: hidden; margin-bottom: 15px; height: var(--header-height);
}
.header-bg-shape {
    position: absolute; right: -50px; top: -50px; width: 200px; height: 200px;
    background: linear-gradient(45deg, var(--primary-light), var(--primary-color));
    opacity: 0.1; border-radius: 50%; animation: shapeFloat 15s ease-in-out infinite;
}
@keyframes shapeFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(5deg); } }
.header-left, .header-right { display: flex; align-items: center; justify-content: center; }
.header-left img { height: 60px; width: auto; object-fit: contain; }
.header-right img { height: 30px; width: auto; object-fit: contain; }
.header-center {
    z-index: 1; flex: 1; text-align: center; padding: 0 20px; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.page-title {
    font-size: 1.8rem; margin-bottom: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: titleFade 1s ease-out;
}
@keyframes titleFade { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: translateY(0); } }
.subtitle { color: var(--gray-600); font-size: 1rem; font-weight: 500; animation: subtitleFade 1s ease-out 0.2s both; }
@keyframes subtitleFade { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 15px; }
.stat-card {
    background: var(--light-color); border-radius: var(--border-radius-md); padding: 10px 15px;
    box-shadow: var(--shadow-sm); transition: all var(--transition-speed) ease; position: relative;
    overflow: hidden; animation: fadeSlideUp 0.6s ease-out both; height: var(--stats-height);
    display: flex; flex-direction: column; justify-content: center;
}
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color)); opacity: 0.8;
}
.stat-card-inner { display: flex; align-items: center; }
.stat-card-icon {
    width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 1rem; color: var(--light-color); background: var(--primary-color);
    box-shadow: var(--shadow-sm); margin-right: 12px; flex-shrink: 0;
}
.stat-card:nth-child(2) .stat-card-icon { background: var(--success-color); }
.stat-card:nth-child(3) .stat-card-icon { background: var(--warning-color); }
.stat-card:nth-child(4) .stat-card-icon { background: var(--danger-color); }
.stat-content { flex: 1; }
.stat-value { font-size: 1.4rem; font-weight: 700; color: var(--dark-color); line-height: 1.2; font-family: var(--font-secondary); }
.stat-label { color: var(--gray-600); font-size: 0.8rem; }
.filters-section {
    background: var(--light-color); border-radius: var(--border-radius-md); padding: 10px 15px;
    margin-bottom: 15px; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm); animation: fadeIn 1s ease-out 0.4s both; height: var(--filters-height);
}
.filter-buttons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.filter-button {
    padding: 6px 15px; border: none; border-radius: var(--border-radius-sm); background: var(--gray-200);
    color: var(--gray-700); font-family: var(--font-primary); font-size: 0.8rem; font-weight: 500;
    cursor: pointer; transition: all var(--transition-speed) ease; display: flex; align-items: center; gap: 6px;
}
.filter-button:hover, .filter-button.active { background: var(--primary-color); color: var(--light-color); }
.pages-container { flex: 1; position: relative; overflow: hidden; }
.todo-page {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column;
    opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s ease;
}
.todo-page.active { opacity: 1; visibility: visible; }
.page-header {
    color: var(--gray-600); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 10px; padding-bottom: 5px; border-bottom: 1px dashed var(--gray-300);
    display: flex; justify-content: space-between; align-items: center;
}
.todo-rows { display: flex; flex-direction: column; gap: 15px; flex: 1; }
.todo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.todo-card {
    background: var(--light-color); border-radius: var(--border-radius-md); padding: 0;
    box-shadow: var(--shadow-md); transition: all var(--transition-speed) ease; position: relative;
    overflow: hidden; animation: fadeIn 0.8s ease-out both; height: var(--card-height);
    display: flex; flex-direction: column;
}
.status-corner-badge {
    position: absolute; bottom: 20px; right: 10px; padding: 4px 10px; border-radius: 50px;
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; z-index: 10;
}
.status-corner-badge.status-selesai { background-color: rgba(6, 214, 160, 0.15); color: var(--success-color); }
.status-corner-badge.status-proses { background-color: rgba(67, 97, 238, 0.15); color: var(--primary-color); }
.status-corner-badge.status-batal { background-color: rgba(108, 117, 125, 0.15); color: var(--gray-600); }
.status-corner-badge.status-tertunda { background-color: rgba(239, 71, 111, 0.15); color: var(--danger-color); }
.todo-card-header { padding: 12px 15px 10px; position: relative; height: 60px; border-bottom: 1px solid var(--gray-200); }
.todo-card-header::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--primary-color);
}
.todo-card.status-selesai .todo-card-header::before { background: var(--success-color); }
.todo-card.status-proses .todo-card-header::before { background: var(--primary-color); }
.todo-card.status-batal .todo-card-header::before { background: var(--gray-500); }
.todo-card.status-tertunda .todo-card-header::before { background: var(--danger-color); }
.todo-title {
    font-size: 1rem; font-weight: 600; color: var(--dark-color); word-break: break-word;
    position: relative; padding-right: 25px; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; max-height: 2.6em;
}
.todo-status-icon { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.1rem; }
.status-selesai .todo-status-icon { color: var(--success-color); }
.status-proses .todo-status-icon { color: var(--primary-color); }
.status-batal .todo-status-icon { color: var(--gray-500); }
.status-tertunda .todo-status-icon { color: var(--danger-color); }
.todo-card-body { padding: 12px 15px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.todo-info { margin-bottom: 12px; }
.todo-info-item { display: flex; align-items: flex-start; margin-bottom: 10px; position: relative; padding-left: 25px; }
.todo-info-item:last-child { margin-bottom: 0; }
.todo-info-icon { position: absolute; left: 0; top: 3px; color: var(--primary-color); width: 18px; text-align: center; }
.todo-info-label { font-weight: 600; color: var(--gray-700); display: block; margin-bottom: 2px; font-size: 0.8rem; }
.todo-info-value { color: var(--gray-800); font-size: 0.85rem; word-break: break-word; }
.todo-deadline-value { font-weight: 600; color: var(--primary-color); }
.todo-update-value { font-size: 0.75rem; color: var(--gray-600); font-style: italic; }
.todo-status-bar { height: 5px; width: 100%; background: var(--gray-200); border-radius: 3px; overflow: hidden; margin-top: 10px; }
.todo-progress { height: 100%; border-radius: 3px; transition: width 1s ease; }
.status-selesai .todo-progress { background: var(--success-color); width: 100%; }
.status-proses .todo-progress { background: var(--primary-color); width: 50%; }
.status-batal .todo-progress { background: var(--gray-400); width: 0%; }
.status-tertunda .todo-progress { background: var(--danger-color); width: 25%; }
.page-dots { display: flex; justify-content: center; gap: 8px; padding: 12px 0; }
.page-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gray-400); transition: all 0.3s ease; }
.page-dot.active { background: var(--primary-color); transform: scale(1.2); }
.no-tasks { background: var(--light-color); border-radius: var(--border-radius-md); padding: 30px; text-align: center; box-shadow: var(--shadow-md); margin: 30px 0; }
.no-tasks-icon { font-size: 3rem; color: var(--gray-400); margin-bottom: 15px; }
.no-tasks-title { font-size: 1.5rem; margin-bottom: 10px; color: var(--gray-700); }
.no-tasks-message { color: var(--gray-600); max-width: 500px; margin: 0 auto; }
.error-message { background: rgba(239, 71, 111, 0.1); border-left: 5px solid var(--danger-color); border-radius: var(--border-radius-md); padding: 20px 25px; margin: 30px 0; color: var(--danger-color); font-size: 1rem; display: flex; align-items: center; gap: 15px; }
.loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(5px); z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: all 0.5s ease; }
.spinner-container { position: relative; width: 80px; height: 80px; }
.spinner { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; border: 4px solid transparent; border-top-color: var(--primary-color); animation: spin 1.2s linear infinite; }
.spinner:before, .spinner:after { content: ''; position: absolute; border-radius: 50%; border: 4px solid transparent; }
.spinner:before { top: 5px; left: 5px; right: 5px; bottom: 5px; border-top-color: var(--secondary-color); animation: spin 1.8s linear infinite reverse; }
.spinner:after { top: 15px; left: 15px; right: 15px; bottom: 15px; border-top-color: var(--accent-color); animation: spin 1.5s linear infinite; }
.loading-text { margin-top: 25px; font-size: 1.2rem; font-weight: 600; color: var(--primary-color); letter-spacing: 1px; animation: pulse 1.5s ease-in-out infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@media screen and (width: 1920px) and (height: 1080px) { .app-container { padding: 20px; } .todo-card { height: 300px; } }
/* --- Tambahan CSS untuk Music Player --- */
.music-player-bar {
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(5px);
    height: 50px;
    z-index: 100;
}

.music-player-bar button {
    color: var(--gray-300);
    transition: all 0.2s ease;
}

.music-player-bar button:hover {
    color: var(--light-color);
    transform: scale(1.1);
}

.marquee-container {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 20s linear infinite;
    color: var(--gray-200);
}

@keyframes marquee {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}
/* --- Tambahan CSS untuk Tombol Kategori Musik di Modal --- */
.category-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1rem;
}

.category-button {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-button:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
}

.category-button .size {
    font-size: 0.8rem;
    color: var(--gray-600);
    float: right;
    font-weight: 400;
}

.category-button .cached-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--success-color);
    margin-left: 8px;
}