/* --- style.css (FUTURE NEON / BENTO UI) --- */

/* 1. CORE VARIABLES & FONT */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    /* FUTURE PALETTE */
    --bg-main: #121212;
    /* Deep Charcoal */
    --bg-card: #1e1e1e;
    /* Matte Black Card */
    --primary-color: #CCFF00;
    /* Neon Lime */
    --accent-color: #00E0FF;
    /* Electric Blue */
    --text-main: #ffffff;
    --text-muted: #888888;

    /* STYLING TOKENS */
    --radius-l: 24px;
    --radius-m: 16px;
    --radius-s: 12px;

    /* SHADOWS & GLOWS */
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --glow-primary: 0 0 20px rgba(204, 255, 0, 0.2);
    --glow-accent: 0 0 20px rgba(0, 224, 255, 0.2);

    /* GLASSMORPHISM nav */
    --nav-bg: rgba(18, 18, 18, 0.85);
    --nav-blur: 20px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    padding-bottom: 100px;
    /* Space for floating nav */
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* 2. BENTO GRID LAYOUT UTILITIES */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.bento-card {
    background: var(--bg-card);
    border-radius: var(--radius-l);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bento-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}

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

/* 3. FUTURE CARDS (General overrides) */
.card,
.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-l);
    border: none;
    box-shadow: var(--shadow-soft);
}

.card-header,
.modal-header,
.modal-footer {
    border-color: rgba(255, 255, 255, 0.05);
    background: transparent;
}

/* 4. TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.text-lime {
    color: var(--primary-color) !important;
}

.text-blue {
    color: var(--accent-color) !important;
}

/* 5. BUTTONS (PILL & NEON) */
.btn {
    border-radius: 100px;
    /* Pill shape */
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 24px;
    letter-spacing: 0.02em;
    border: none;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary,
.btn-success {
    background: var(--primary-color);
    color: #000;
    box-shadow: var(--glow-primary);
}

.btn-primary:hover,
.btn-success:hover {
    background: #d4ff33;
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(204, 255, 0, 0.4);
    color: #000;
}

.btn-warning,
.btn-danger {
    background: #FF3B30;
    /* Modern Red */
    color: #fff;
}

.btn-warning:hover {
    background: #ff5e55;
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.3);
    color: #fff;
}

/* 6. INPUTS */
.form-control,
.form-select,
input {
    background: #252525;
    border: 1px solid #333;
    border-radius: var(--radius-m);
    color: #fff !important;
    padding: 14px;
    font-weight: 500;
}

.form-control:focus {
    background: #2a2a2a;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(204, 255, 0, 0.1);
}

/* 7. BOTTOM NAV (FLOATING GLASS) */
.fixed-bottom {
    background: var(--nav-bg);
    backdrop-filter: blur(var(--nav-blur));
    -webkit-backdrop-filter: blur(var(--nav-blur));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 20px;
    /* Floating look */
    border-radius: var(--radius-l);
    padding: 10px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    width: auto;
    /* Not full width */
    left: 0;
    right: 0;
}

/* 8. GAMIFICATION & HEADER */
.header-card {
    background: linear-gradient(145deg, #1e1e1e, #181818);
    border-radius: var(--radius-l);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* XP Bar styled as a clean modern line */
.xp-bar-container {
    width: 100px;
    height: 6px;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
    margin: 6px 0;
}

.xp-bar-fill {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    box-shadow: 0 0 10px var(--accent-color);
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

#streakDisplay {
    font-weight: 800;
    font-size: 1.1rem;
    color: #FF9500;
}

#userRankDisplay {
    background: rgba(0, 224, 255, 0.1);
    color: var(--accent-color);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border: none;
}

/* 9. ALERTS (SWAL MODERN) */
div:where(.swal2-container) div:where(.swal2-popup) {
    background: #181818 !important;
    border-radius: 30px !important;
    border: 1px solid #333;
}

div:where(.swal2-container) .swal2-title {
    color: #fff !important;
    font-weight: 800;
}

div:where(.swal2-icon).swal2-success {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

div:where(.swal2-confirm) {
    background: var(--primary-color) !important;
    color: #000 !important;
    border-radius: 100px !important;
    font-weight: 700;
}

/* 10. CALENDAR MODERN */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 15px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #252525;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.calendar-day:hover {
    background: #333;
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.3);
}

.status-green {
    background: var(--primary-color);
    color: #000;
    font-weight: 700;
    box-shadow: var(--glow-primary);
    border: none;
}

.status-gray {
    background: #00BFFF;
    color: #000;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.4);
}

.status-yellow {
    background: #FFB800;
    color: #000;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(255, 184, 0, 0.4);
}

.status-red {
    background: #FF3B30;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.4);
}

.selected-day {
    border: 2px solid #fff;
    transform: scale(1.1);
    z-index: 2;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.today-border {
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 224, 255, 0.3);
}

/* 11. DASHBOARD ACTION BUTTONS */
.bento-card.btn-action {
    background: linear-gradient(145deg, #2a2a2a, #202020);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.bento-card.btn-action:hover {
    background: linear-gradient(145deg, #333, #252525);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0, 224, 255, 0.15);
}

/* =========================================
   GLOBAL OVERRIDES (PREMIUM FOUNDATION)
   ========================================= */

/* A. LIST GROUPS (Sleek Dark Mode) */
.list-group-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    margin-bottom: 8px;
    border-radius: 12px !important;
    transition: all 0.2s;
}

.list-group-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* B. MODALS (Glass & Neon) */
.modal-content {
    background: rgba(20, 20, 20, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8) !important;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* C. GLOBAL SCROLLBAR */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* D. TEXT SELECTION */
::selection {
    background: var(--primary-color);
    color: #000;
}

/* 11. DASHBOARD STATS */
.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: #fff;
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 5px;
    display: block;
}

/* Language Floater */
.language-floater {
    position: absolute;
    top: 24px;
    right: 24px;
}

.language-floater select {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* Chart Container */
.chart-container {
    background: var(--bg-card);
    border-radius: var(--radius-l);
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

/* Avatar */
#headerUserAvatar {
    border: 3px solid var(--primary-color);
    box-shadow: var(--glow-primary);
}

/* =========================================
   PREMIUM DASHBOARD ADDITIONS (NEON HERO)
   ========================================= */

.btn-premium-start {
    background: linear-gradient(135deg, #00f2ff 0%, #00c3ff 100%);
    color: #000 !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-premium-start::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-premium-start:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.6);
}

.btn-premium-start:hover::before {
    left: 100%;
}

/* Specific Bento Variants with Neon Borders */
.bento-calendar {
    border-bottom: 3px solid #dc3545;
}

.bento-calc {
    border-bottom: 3px solid #20c997;
}

.bento-templates {
    border-bottom: 3px solid #0d6efd;
}

.bento-history {
    border-bottom: 3px solid #ffc107;
}

/* Text Gradients */
.text-purple {
    color: #a06ee1 !important;
}

/* =========================================
   FORCE OVERRIDES (NUCLEAR OPTION)
   ========================================= */
/* 1. Global Glass Containers */
.card,
.card.bg-dark,
.list-group-item,
.list-group-item.bg-dark,
.modal-content {
    background: rgba(20, 20, 20, 0.85) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    color: #fff !important;
}

.list-group-flush>.list-group-item {
    border-width: 0 0 1px 0 !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* 2. Global Glass Inputs (Profile, etc) */
input.form-control,
select.form-select,
.form-control,
input.bg-dark,
select.bg-dark {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    backdrop-filter: blur(5px);
    border-radius: 12px !important;
}

/* 3. Input Focus State (Neon) */
input.form-control:focus,
select.form-select:focus,
.form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.2) !important;
    background: rgba(0, 0, 0, 0.6) !important;
    color: #fff !important;
}

/* 4. Glass Selects options */
select.form-select option {
    background-color: #000;
    color: #fff;
}

/* =========================================
   PREMIUM GENDER SWITCH
   ========================================= */
.gender-switch-input {
    display: none;
}

.gender-switch-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    font-size: 0.9rem;
}

.gender-switch-label:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.gender-switch-input:checked+.gender-switch-label {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--glow-primary);
    transform: scale(1.02);
}

/* =========================================
   SPECIFIC VIEW FIXED HEIGHTS
   ========================================= */

/* 1. PROFILE & INVENTORY */
.add-btn-neon {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    transition: 0.2s;
}

.add-btn-neon:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px var(--glow-primary);
}

/* =========================================
   PREMIUM NEON TABS (Profile)
   ========================================= */
.nav-pills-neon {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-pills-neon .nav-link {
    color: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    font-weight: 600;
}

.nav-pills-neon .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-pills-neon .nav-link.active {
    background: var(--primary-color);
    color: #000;
    font-weight: 800;
    box-shadow: 0 0 15px var(--glow-primary);
}

.delete-btn-outline {
    border: 1px solid #FF3B30;
    color: #FF3B30;
    background: transparent;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    transition: 0.2s;
}

.delete-btn-outline:hover {
    background: #FF3B30;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.4);
}

/* Radio Buttons (Profile) */
.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--glow-accent);
}

/* 2. WORKOUT SESSION CARDS */
.card.bg-dark {
    background: rgba(30, 30, 30, 0.6) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px;
}

#activeSessionContainer .card {
    border-left: 3px solid var(--primary-color) !important;
}

/* Input Fields inside Workout Card */
#activeSessionContainer input.form-control {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid #444;
    color: #fff;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
}

#activeSessionContainer input.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.2);
}

/* "Add Exercise" Area */
#newExerciseName {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

#addExerciseToSessionBtn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background: var(--primary-color);
    color: #000;
    font-weight: 800;
    border: none;
}

/* 3. PROGRESS / LISTS (Glassmorphism) */
#exercisesListContainer .card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    margin-bottom: 10px;
    transition: transform 0.2s;
}

#exercisesListContainer .card:hover {
    transform: translateX(5px);
    border-color: var(--accent-color) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

/* 4. SESSION DETAIL ROWS */
.log-row {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 5px;
    border-left: 2px solid #555;
    transition: all 0.2s;
}

.log-row:hover {
    border-left-color: var(--primary-color);
    background: rgba(204, 255, 0, 0.05);
}

.rir-tag {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
}
/* DEVELOPER PROFILE */
.dev-avatar {
    box-shadow: 0 0 15px var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dev-avatar:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 0 25px var(--primary-color), 0 0 50px rgba(0, 242, 255, 0.4);
}
