/* ============================================
   SPORTHRONE - Neo-Athletic Brutalism Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@400;600;700&display=swap');

/* ============================================
   CSS VARIABLES - THEME SYSTEM
   ============================================ */

:root {
    /* Dark Theme (Default) */
    --bg-primary: #0a0a0a;
    --bg-secondary: #151515;
    --bg-card: rgba(25, 25, 35, 0.7);
    --bg-card-hover: rgba(35, 35, 45, 0.9);
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #606060;
    
    --accent-primary: #00ff88;
    --accent-secondary: #ff0088;
    --accent-warning: #ffaa00;
    --accent-blue: #00ccff;
    
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.5);
    
    --body-inactive: rgba(100, 100, 120, 0.3);
    --body-active-core: #ff0088;
    --body-active-arms: #00ff88;
    --body-active-legs: #ffaa00;
    --body-active-chest: #00ccff;
    --body-active-back: #9d4edd;
    
    /* Glassmorphism */
    --glass-bg: rgba(25, 25, 35, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 20px;
}

[data-theme="light"] {
    --bg-primary: #f5f5f5;
    --bg-secondary: #e8e8e8;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(245, 245, 255, 0.95);
    
    --text-primary: #0a0a0a;
    --text-secondary: #505050;
    --text-muted: #909090;
    
    --accent-primary: #00cc66;
    --accent-secondary: #dd0066;
    --accent-warning: #ff9900;
    --accent-blue: #0099cc;
    
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.15);
    
    --body-inactive: rgba(200, 200, 220, 0.4);
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

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

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    transition: background 0.4s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 0, 136, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    border-color: var(--accent-primary);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
    transition: all 0.3s ease;
}

.theme-toggle .moon-icon {
    display: none;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: block;
}

/* ============================================
   CONFETTI SYSTEM
   ============================================ */

#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================
   MAIN CONTAINER
   ============================================ */

.dashboard-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* ============================================
   HEADER
   ============================================ */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 48px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.logo-section h1 {
    font-family: 'Bebas Neue', cursive;
    font-size: 48px;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.streak-badge,
.level-badge {
    padding: 12px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 2px solid var(--border-color);
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
}

.streak-badge:hover,
.level-badge:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.flame {
    font-size: 24px;
    animation: flicker 1.5s ease-in-out infinite;
}

@keyframes flicker {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
}

.streak-count {
    color: var(--accent-warning);
    font-size: 24px;
}

.level-text strong {
    color: var(--accent-primary);
    font-size: 24px;
}

/* ============================================
   BENTO GRID LAYOUT
   ============================================ */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Card Sizes */
.card-large {
    grid-column: span 4;
    grid-row: span 2;
}

.card-medium {
    grid-column: span 4;
}

.card-small {
    grid-column: span 4;
}

.card-wide {
    grid-column: span 8;
}

/* ============================================
   BENTO CARDS
   ============================================ */

.bento-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: cardAppear 0.6s ease-out backwards;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bento-card:nth-child(1) { animation-delay: 0.1s; }
.bento-card:nth-child(2) { animation-delay: 0.2s; }
.bento-card:nth-child(3) { animation-delay: 0.3s; }
.bento-card:nth-child(4) { animation-delay: 0.4s; }
.bento-card:nth-child(5) { animation-delay: 0.5s; }
.bento-card:nth-child(6) { animation-delay: 0.6s; }
.bento-card:nth-child(7) { animation-delay: 0.7s; }
.bento-card:nth-child(8) { animation-delay: 0.8s; }

.bento-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.bento-card:hover::before {
    opacity: 0.2;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px var(--shadow-color);
    border-color: var(--accent-primary);
}

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

.card-header h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 24px;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    transform: scale(1.1) rotate(15deg);
    border-color: var(--accent-primary);
    background: var(--accent-primary);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
}

.btn-icon:hover svg {
    color: var(--bg-primary);
}

/* ============================================
   DATE SELECTOR
   ============================================ */

.date-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.btn-date,
.btn-today {
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-date:hover,
.btn-today:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
    transform: scale(1.05);
}

.date-input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.date-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.2);
}

/* ============================================
   EXERCISE LIST
   ============================================ */

.exercise-list {
    max-height: 550px;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 20px;
}

.exercise-list::-webkit-scrollbar {
    width: 8px;
}

.exercise-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

.exercise-list::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 10px;
}

.exercise-item {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    animation: slideIn 0.4s ease-out backwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.exercise-item:hover {
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.exercise-item.focus-active {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 30px rgba(255, 0, 136, 0.4);
    transform: scale(1.02);
}

.exercise-info {
    flex: 1;
}

.exercise-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

.exercise-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.exercise-input {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 10px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.exercise-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.2);
}

.input-unit {
    font-size: 14px;
    color: var(--text-secondary);
    min-width: 40px;
}

.btn-remove {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--accent-secondary);
    background: transparent;
    color: var(--accent-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: var(--accent-secondary);
    color: var(--bg-primary);
    transform: scale(1.1) rotate(90deg);
}

/* ============================================
   PRIMARY BUTTON
   ============================================ */

.btn-primary {
    width: 100%;
    padding: 16px;
    border: none;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-blue));
    color: var(--bg-primary);
    border-radius: 16px;
    font-family: 'Bebas Neue', cursive;
    font-size: 20px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.4);
}

.btn-primary:active {
    transform: scale(0.98);
}

/* ============================================
   BODY MAP
   ============================================ */

.body-map-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.body-svg {
    width: 100%;
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 20px var(--shadow-color));
}

.body-part {
    transition: all 0.4s ease;
    cursor: pointer;
}

.body-part:hover {
    opacity: 0.8;
    filter: drop-shadow(0 0 10px var(--accent-primary));
}

.body-part.active-core {
    fill: var(--body-active-core) !important;
    filter: drop-shadow(0 0 15px var(--body-active-core));
    animation: glow 1.5s ease-in-out infinite;
}

.body-part.active-arms {
    fill: var(--body-active-arms) !important;
    filter: drop-shadow(0 0 15px var(--body-active-arms));
    animation: glow 1.5s ease-in-out infinite;
}

.body-part.active-legs {
    fill: var(--body-active-legs) !important;
    filter: drop-shadow(0 0 15px var(--body-active-legs));
    animation: glow 1.5s ease-in-out infinite;
}

.body-part.active-chest {
    fill: var(--body-active-chest) !important;
    filter: drop-shadow(0 0 15px var(--body-active-chest));
    animation: glow 1.5s ease-in-out infinite;
}

.body-part.active-back {
    fill: var(--body-active-back) !important;
    filter: drop-shadow(0 0 15px var(--body-active-back));
    animation: glow 1.5s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.muscle-focus {
    text-align: center;
    padding: 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
}

.muscle-focus p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.muscle-focus h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 24px;
    letter-spacing: 2px;
    color: var(--accent-primary);
    margin-bottom: 4px;
}

.muscle-focus span {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ============================================
   RUNNING TRACKER
   ============================================ */

.running-tracker {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.running-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.km-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
}

.km-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 204, 255, 0.2);
}

.km-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-secondary);
}

.btn-add-km {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--accent-blue);
    color: var(--bg-primary);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-km:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 5px 20px rgba(0, 204, 255, 0.4);
}

.running-progress {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.running-track {
    position: relative;
    height: 60px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 30px;
    overflow: hidden;
}

.running-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-primary));
    border-radius: 30px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.runner-icon {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

.running-stats {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    font-size: 16px;
    color: var(--text-secondary);
}

.running-stats strong {
    color: var(--accent-blue);
    font-size: 20px;
}

/* ============================================
   STATS CARD
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

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

.stat-value {
    font-family: 'Bebas Neue', cursive;
    font-size: 32px;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.xp-value {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.full-width {
    grid-column: span 2;
}

.achievement-badge {
    text-align: center;
}

.achievement-text {
    color: var(--accent-warning);
    font-size: 24px;
}

.xp-bar-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.xp-bar {
    height: 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.xp-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-blue));
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.xp-label {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.xp-label span {
    font-weight: 700;
    color: var(--accent-primary);
}

/* ============================================
   HYDRATION TRACKER
   ============================================ */

.hydration-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.water-glass {
    position: relative;
    width: 120px;
    height: 180px;
    background: var(--bg-secondary);
    border: 4px solid var(--border-color);
    border-radius: 10px 10px 20px 20px;
    overflow: hidden;
    box-shadow: inset 0 0 20px var(--shadow-color);
}

.water-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, rgba(0, 204, 255, 0.6), rgba(0, 255, 136, 0.8));
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    pointer-events: none;
}

.water-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Bebas Neue', cursive;
    font-size: 24px;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.hydration-controls {
    display: flex;
    gap: 10px;
}

.btn-water,
.btn-water-reset {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    border-radius: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-water:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: var(--bg-primary);
    transform: scale(1.05);
}

.btn-water-reset:hover {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    color: var(--bg-primary);
    transform: scale(1.05);
}

/* ============================================
   EXERCISE POOL
   ============================================ */

.exercise-pool-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tab {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 20px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tab:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.category-tab.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

.exercise-pool-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.exercise-pool-list::-webkit-scrollbar {
    width: 6px;
}

.exercise-pool-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

.exercise-pool-list::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 10px;
}

.pool-item {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pool-item:hover {
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.pool-item-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-add-pool {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    background: transparent;
    color: var(--accent-primary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-add-pool:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: scale(1.1) rotate(90deg);
}

/* ============================================
   WEEKLY CHART
   ============================================ */

.weekly-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 200px;
    gap: 10px;
    padding: 20px 10px 10px 10px;
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.bar-container {
    width: 100%;
    height: 150px;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.bar-fill {
    width: 100%;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-blue));
    border-radius: 10px 10px 0 0;
    height: 0%;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.bar-value {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-primary);
    white-space: nowrap;
}

.bar-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.bar-label.today {
    color: var(--accent-primary);
    font-weight: 700;
}

/* ============================================
   TOOLS CARD
   ============================================ */

.tools-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-tool {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    border-radius: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-tool:hover {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateX(5px);
}

.btn-tool svg {
    width: 20px;
    height: 20px;
}

.btn-tool:last-child:hover {
    border-color: var(--accent-secondary);
    background: var(--accent-secondary);
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 2px solid var(--accent-primary);
    border-radius: 16px;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 10px 40px var(--shadow-color);
    transform: translateY(150px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: var(--accent-primary);
}

.toast.error {
    border-color: var(--accent-secondary);
}

.toast.warning {
    border-color: var(--accent-warning);
}

/* ============================================
   FOCUS MODE
   ============================================ */

.focus-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.focus-overlay.active {
    opacity: 1;
    pointer-events: all;
}

body.focus-mode .bento-card:not(.focus-active) {
    opacity: 0.3;
    pointer-events: none;
}

body.focus-mode .bento-card.focus-active {
    position: relative;
    z-index: 600;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .card-large,
    .card-medium,
    .card-small,
    .card-wide {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .header-info {
        flex-direction: column;
        width: 100%;
    }

    .logo-section h1 {
        font-size: 36px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card-large,
    .card-medium,
    .card-small,
    .card-wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .exercise-list {
        max-height: 400px;
    }

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

    .weekly-chart {
        height: 150px;
    }

    .bar-container {
        height: 100px;
    }

    .theme-toggle {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .dashboard-container {
        padding: 10px;
    }

    .logo-section h1 {
        font-size: 28px;
    }

    .logo-icon {
        font-size: 36px;
    }

    .bento-card {
        padding: 16px;
    }

    .card-header h2 {
        font-size: 20px;
    }

    .exercise-input {
        width: 60px;
        font-size: 14px;
    }

    .date-selector {
        flex-wrap: wrap;
    }

    .date-input {
        width: 100%;
    }
}

/* ============================================
   ANIMATIONS & MICRO-INTERACTIONS
   ============================================ */

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 16px;
    line-height: 1.5;
}
