/* USER CSS */
/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, sans-serif;
    background: #060b1a;
    color: white;
    overflow-x: hidden;
}

/* ================= BACKGROUND ================= */

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

.bg-shapes::before,
.bg-shapes::after {
    content: "";
    position: fixed;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(120,120,255,0.15);
    transform: rotate(25deg);
    z-index: 0;
}

.bg-shapes::before {
    top: 10%;
    left: 5%;
}

.bg-shapes::after {
    bottom: 15%;
    right: 5%;
}

/* TASKS */

.bg-grid-tasks {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(168,85,247,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168,85,247,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

.bg-shapes-tasks::before,
.bg-shapes-tasks::after {
    content: "";
    position: fixed;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(168,85,247,0.15);
    transform: rotate(25deg);
    z-index: 0;
}

.bg-shapes-tasks::before {
    top: 10%;
    left: 5%;
}

.bg-shapes-tasks::after {
    bottom: 15%;
    right: 5%;
}
/* MONEY – CLEAN DARK */

.bg-grid-money {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

.bg-shapes-money::before,
.bg-shapes-money::after {
    content: "";
    position: fixed;
    width: 400px;
    height: 400px;

    /* 🔥 labai subtilu */
    border: 1px solid rgba(255,255,255,0.04);

    transform: rotate(25deg);
    z-index: 0;
}

.bg-shapes-money::before {
    top: 10%;
    left: 5%;
}

.bg-shapes-money::after {
    bottom: 15%;
    right: 5%;
}
/* ================= MAIN CONTAINER ================= */

.app {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px;
    background: rgba(15,20,40,0.7);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.06);
}

/* ================= TOPBAR ================= */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.logo {
    font-size: 18px;
    letter-spacing: 3px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.typing {
    color: #8b7cff;
    white-space: nowrap;
    position: relative;
}

.typing::after {
    content: "|";
    margin-left: 4px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

.main-nav {
    display: flex;
    gap: 28px;
    margin-top: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid #1c2540;
}

.main-nav button {
    position: relative;
    background: none;
    border: none;
    color: #7f8aad;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 0;
    transition: 0.2s ease;
}

/* hover */
.main-nav button:hover {
    color: #ffffff;
}

/* active */
.main-nav button.active {
    color: #ffffff;
}

/* underline indicator */
.main-nav button.active::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #4f8cff;
    border-radius: 2px;
}

/* ================= HERO ================= */

.hero {
    text-align: center;
    margin-bottom: 60px;
}

.hero h1 {
    font-size: 48px;
    letter-spacing: 2px;
    background: linear-gradient(90deg,#b7b7ff,#ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    margin-top: 15px;
    color: #8f95b5;
}

.dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr 320px;
    grid-template-rows: auto auto;
    gap: 20px;
}

.stat-card {
    min-height: 120px;
}

.streak-card {
    grid-column: 3;
    grid-row: 1 / span 2;
}

.streak-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    min-height: 280px;
}

.streak-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.streak-left {
    display: flex;
    flex-direction: column;
}

.streak-label {
    font-size: 13px;
    opacity: 0.6;
    letter-spacing: 1px;
}

.streak-value {
    font-size: 22px;
    font-weight: 600;
    margin-top: 6px;
}

.badge {
    background: rgba(255,255,255,0.08);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.badge.locked {
    opacity: 0.7;
}

.streak-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 90px;
    line-height: 1;
    margin-top: 10px;
}
/* ==== CARD ==== */

.stat-card {
    position: relative;
    padding: 20px 22px;
    border-radius: 12px;
    background: #0f1628;
    border: 1px solid #1c2540;
    transition: 0.25s ease;
}

/* spalvinė kairė linija */

.stat-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 12px 0 0 12px;
}

/* spalvų tipai */

.volume::before { background: #4f8cff; }
.last::before   { background: #ef4444; }

/* 🔥 BALANCE LEFT BAR*/


    .stat-card.week{
        position: relative;
        overflow: hidden;
    }

    .stat-card.week::before{
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;

        width: 4px;
        border-radius: 10px 0 0 10px;

        background: linear-gradient(180deg, #f97316, #fb923c);

        /* subtilus glow */
        box-shadow: 0 0 10px rgba(34,197,94,0.4);
    }

    .stat-card.points{
        position: relative;
        overflow: hidden;
    }

    .stat-card.points::before{
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;

        width: 4px;
        border-radius: 10px 0 0 10px;

        background: linear-gradient(180deg, #6366f1, #8b5cf6);

        /* subtilus glow */
        box-shadow: 0 0 10px rgba(34,197,94,0.4);
    }



/* hover subtilus */
.stat-card.points::before {
  background: linear-gradient(180deg, #7c3aed, #6366f1);
  box-shadow: 0 0 12px rgba(124,58,237,0.6);
}
.stat-card:hover {
    background: #141c32;
    border-color: #26304a;
}

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

.stat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.emoji {
    font-size: 16px;
}

.stat-label {
    font-size: 12px;
    letter-spacing: 1px;
    color: #8c93b8;
}

/* ==== VALUE ==== */

.stat-value {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.stat-value.small {
    font-size: 18px;
}

/* ==== PROGRESS ==== */

.progress {
    height: 6px;
    background: #1a2135;
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    transition: width 0.6s ease;
}

/* spalvos progressui */

.volume .progress-bar { background: #4f8cff; }
.points .progress-bar { background: #22c55e; }
.week   .progress-bar { background: #f59e0b; }
.last   .progress-bar { background: #ef4444; }

/* ==== Responsive ==== */

@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
}

/* ================= LOWER PANEL ================= */

.panel {
    padding: 30px;
    border-radius: 25px;
    background: rgba(20,25,50,0.8);
    border: 1px solid rgba(255,255,255,0.06);
}

.panel-header {
    margin-bottom: 20px;
    font-weight: 600;
    color: #c7ccff;
}

.panel-tabs button.active {
    background: linear-gradient(90deg,#6f86ff,#9a74ff);
    color: white;
    border: none;
}.page-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

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

.page-header h2 {
    font-size: 26px;
    color: #d7dcff;
}

.workouts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.workout-card {
    background: #0f1628;
    border: 1px solid #1c2540;
    border-radius: 14px;
    padding: 20px;
    transition: 0.2s ease;
}

.workout-card:hover {
    border-color: #2a3555;
    transform: translateY(-3px);
}

.workout-date {
    font-size: 15px;
    color: #8ea2ff;
    margin-bottom: 16px;
}

.workout-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.label {
    display: block;
    font-size: 12px;
    color: #7e8aa8;
}

.value {
    font-size: 20px;
    color: #ffffff;
    font-weight: 600;
}

.workout-actions {
    display: flex;
    gap: 10px;
}

.btn-primary {
    background: #4f8cff;
    padding: 8px 14px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.btn-secondary {
    background: #1f2a4a;
    padding: 8px 12px;
    border-radius: 8px;
    color: #cfd6ff;
    text-decoration: none;
    font-size: 13px;
}

.btn-danger {
    background: #2a1f2a;
    padding: 8px 12px;
    border-radius: 8px;
    color: #ff6b6b;
    text-decoration: none;
    font-size: 13px;
}

.auth-wrapper {
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:100vh;
}

.auth-card {
    width:400px;
    padding:40px;
    border-radius:20px;
    background:rgba(15,20,40,0.85);
    backdrop-filter:blur(20px);
    border:1px solid rgba(255,255,255,0.05);
}

.auth-card h2 {
    text-align:center;
    margin-bottom:25px;
}

.auth-card form {
    display:flex;
    flex-direction:column;
}

.auth-card input {
    padding:12px;
    margin-bottom:15px;
    border-radius:8px;
    border:none;
    background:#10172e;
    color:white;
}

.auth-card button {
    padding:12px;
    border:none;
    border-radius:8px;
    background:#4f6cff;
    color:white;
    cursor:pointer;
}

.auth-divider {
    text-align:center;
    margin:20px 0;
    opacity:0.5;
}

.google-btn,
.apple-btn {
    display:block;
    text-align:center;
    padding:12px;
    margin-bottom:10px;
    border-radius:8px;
    text-decoration:none;
    color:white;
}

.google-btn {
    background:#db4437;
}

.apple-btn {
    background:#000;
}

.auth-error {
    background:#ff4d4d33;
    padding:10px;
    margin-bottom:15px;
    border-radius:8px;
}

.auth-link {
    text-align:center;
    margin-top:15px;
}

.hero-logo {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 4px;
    text-decoration: none;
    color: #ffffff;
    display: inline-block;
    transition: 0.3s ease;
}

.hero-logo:hover {
    opacity: 0.8;
}

.spin-x {
    display: inline-block;
    color: #604adec8;
    animation: rotateX 6s linear infinite;
}

@keyframes rotateX {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hero-small {
    padding: 60px 0 40px;
}

.page-actions {
    text-align: right;
    margin-bottom: 30px;
}

.main-nav a {
    color: #9ca3af;
    text-decoration: none;
    margin-left: 25px;
    font-size: 14px;
}

.main-nav a.active {
    color: #ffffff;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 6px;
}

.workout-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 25px;
    transition: 0.3s ease;
}

.workout-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.15);
}

.workout-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.workout-date {
    font-size: 16px;
    font-weight: 600;
}

.workout-id {
    font-size: 12px;
    opacity: 0.5;
    margin-top: 4px;
}

.workout-volume {
    font-size: 22px;
    font-weight: 700;
}

.workout-actions {
    margin-top: 15px;
}

.workout-form {
    max-width: 800px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.exercise-block {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 10px;
}

.exercise-block input {
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.bottom-nav {
    display: none;
}

.chart-card {
    padding: 24px;
}

.range-switch {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.range-switch a {
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 13px;
    text-decoration: none;
    color: #aaa;
    background: rgba(255,255,255,0.05);
}

.range-switch a.active {
    background: #8b7cff;
    color: white;
}

svg {
    width: 100%;
    height: 200px;
}

.small-chart {
    padding: 15px;
}

.chart-wrapper {
    height: 120px;   /* buvo 180 – dabar mažesnis */
    position: relative;
}

#xpChart {
    width: 100% !important;
    height: 100% !important;
}
/* ============================= */
/* ========= TASK PAGE ========= */
/* ============================= */

.tasks-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

.tasks-title {
    font-size: 36px;
    margin-bottom: 30px;
    font-weight: 600;
}


/* ===== INPUT ===== */

.task-input-wrapper {
    margin-bottom: 35px;
}

.task-input-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border-radius: 40px;
    padding: 6px;
    border: 1px solid rgba(255,255,255,0.08);
}

.task-input-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 18px 24px;
    font-size: 18px;
    color: white;
}

.task-input-box input::placeholder {
    color: rgba(255,255,255,0.35);
}

.task-add-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;

    background: #6a5cff;
    color: white;
    font-size: 22px;
    font-weight: 600;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.15s ease;
}

.task-add-btn:hover {
    background: #7b6cff;
}

.task-add-btn:active {
    transform: scale(0.95);
}





/* CHECK CIRCLE */

.task-check {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #6a5cff;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    color: white;
    font-size: 14px;
    flex-shrink: 0;

    transition: 0.2s ease;
}

.task-check:hover {
    background: #6a5cff;
}


/* TEXT */

.task-text {
    flex: 1;
    color: white;
}


/* DELETE */

.delete-task {
    font-size: 22px;
    text-decoration: none;
    color: #ff5c5c;
    transition: 0.15s ease;
}

.delete-task:hover {
    transform: scale(1.15);
}


/* COMPLETED STATE */

.task-item.completed {
    opacity: 0.5;
}

.task-item.completed .task-text {
    text-decoration: line-through;
}

/* ========================= */
/* TASK DESKTOP – 2 COLUMNS */
/* ========================= */

@media (min-width: 769px) {

    .task-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 0px;
    }

    .task-item {
        display: flex;
        align-items: center;
        gap: 18px;

        padding: 22px 26px;
        border-radius: 26px;

        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.05);

        font-size: 17px;
        transition: 0.15s ease;
    }

    .task-item:hover {
        background: rgba(255,255,255,0.07);
        transform: translateY(-2px);
    }

    .task-check {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        border: 2px solid #6a5cff;

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 13px;
        flex-shrink: 0;
    }

    .task-text {
        flex: 1;
    }

    .delete-task {
        font-size: 20px;
        color: #ff5c5c;
    }

}
/* WEEK NAV */

.week-nav{
    display:flex;
    gap:10px;
    margin:20px 0;
}

.week-nav a{
    padding:8px 14px;
    border-radius:20px;
    background:rgba(255,255,255,0.05);
    text-decoration:none;
    color:#aaa;
    font-size:14px;
}

.week-nav a.active{
    background:#6b7cff;
    color:white;
}

/* ADD BUTTON */

.add-btn{
    display:inline-block;
    padding:10px 18px;
    border-radius:20px;
    background:#6b7cff;
    color:white;
    text-decoration:none;
    margin-bottom:30px;
}

/* GRID */

.workout-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
    gap:20px;
}

/* CARD */

.workout-card{
    background:linear-gradient(145deg,rgba(255,255,255,0.05),rgba(255,255,255,0.02));
    border-radius:20px;
    padding:20px;
    cursor:pointer;
    transition:0.25s ease;
}

.workout-card:hover{
    transform:translateY(-4px);
}

/* IMAGE */

.card-top{
    position:relative;
    display:flex;
    justify-content:center;
    align-items:center;
}

.card-image{
    width:100px;
    height:100px;
    border-radius:20px;
    overflow:hidden;
}

.card-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* DONE */

.done-btn{
    position:absolute;
    left:0;
    top:0;
    width:30px;
    height:30px;
    border-radius:50%;
    border:2px solid #6b7cff;
    background:transparent;
    color:white;
    cursor:pointer;
}

.done-btn.completed{
    background:#6b7cff;
}

/* DELETE */

.delete-btn{
    position:absolute;
    right:0;
    top:0;
    width:28px;
    height:28px;
    border:none;
    background:rgba(255,0,0,0.2);
    border-radius:50%;
    color:white;
    cursor:pointer;
}

/* TITLE */

.card-title{
    text-align:center;
    margin-top:15px;
    font-size:16px;
    font-weight:600;
}

/* EXPAND */

.card-expand{
    max-height:0;
    overflow:hidden;
    transition:max-height 0.3s ease;
    margin-top:15px;
    font-size:14px;
    opacity:0.8;
}

.workout-card.open .card-expand{
    max-height:300px;
}

/* XP POPUP */

#xp-popup{
    position:fixed;
    bottom:40px;
    right:40px;
    background:#6b7cff;
    padding:10px 18px;
    border-radius:12px;
    font-weight:600;
    opacity:0;
    transform:translateY(20px);
    transition:0.3s ease;
}

#xp-popup.show{
    opacity:1;
    transform:translateY(0);
}

/* MOBILE */

@media(max-width:768px){
    .workout-grid{
        grid-template-columns:1fr;
    }
}

/* ================= MOBILE FIX (FINAL) ================= */

@media (max-width:768px){

/* APP RESET */
.app{
    max-width: 100% !important;
    margin: 0 !important;
    padding: 20px 16px 120px !important;
    border-radius: 30 !important;
}

/* REMOVE DESKTOP GRID */
.dashboard{
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

/* CARDS */
.stat-card{
    border-radius: 18px !important;
    padding: 20px !important;
}

/* STREAK CARD FULL WIDTH */
.streak-card{
    grid-column: auto !important;
    grid-row: auto !important;
}

/* HERO */
.hero h1{
    font-size: 32px !important;
}

.hero{
    margin-bottom: 40px !important;
}

/* TOPBAR */
.topbar{
    margin-bottom: 30px !important;
}

/* HIDE DESKTOP NAV */
.main-nav{
    display: none !important;
}

/* CHART */
.chart-wrapper{
    height: 140px !important;
}

/* TASKS */
.tasks-wrapper{
    padding: 20px 0 120px !important;
}

/* FIX SPACING */
.page-container{
    margin: 0 !important;
    padding: 0 16px !important;
}

/* 🔥 BOTTOM NAV ENABLE */
.bottom-nav{
    display: flex !important;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);

    width: 90%;
    max-width: 420px;

    justify-content: space-around;
    align-items: center;

    padding: 14px 20px;
    border-radius: 26px;

    background: rgba(10,15,30,0.95);
    border: 1px solid rgba(255,255,255,0.05);

    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    z-index: 999;
}

/* NAV ICON */
.bottom-nav a{
    font-size: 22px;
    opacity: 0.5;
    transition: 0.2s;
}

/* ACTIVE */
.bottom-nav a.active{
    opacity: 1;
    color: #8b7cff;
    transform: scale(1.1);
}

/* BACKGROUND LESS NOISE */
.bg-grid{
    opacity: 0.2 !important;
}

}



.task-item{
    padding:18px 20px;
    border-radius:20px;
    background: rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.06);
}

/* CHECK */
.task-check{
    width:28px;
    height:28px;
    border-radius:50%;
    border:2px solid #8b7cff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
}

/* DONE STYLE */
.task-item.completed{
    opacity:0.6;
}

.task-item.completed .task-check{
    background:#8b7cff;
}

html, body {
    height: 100%;
    overscroll-behavior: none;
}

body {
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}
@media (max-width: 768px){

    .app{
        margin: 0;
        border-radius: 28px; /* 🔥 buvo per mažas */
        overflow: hidden; /* 🔥 labai svarbu */
    }

}
@media (max-width: 768px){

    .bottom-nav{
        border-radius: 40px; /* 🔥 svarbiausia */
    }

}

/* 🐱 CAT CENTER */
.nav-cat {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    pointer-events: none; /* kad netrukdytų spausti */

    opacity: 0.4; /* permatomas */
}

/* 🐱 CAT IMAGE */
.nav-cat img {
    width: 50px;  /* reguliuok jei reikia */
    height: auto;

    opacity: 0.35; /* labiau “blend” */

    transition: 0.3s ease;
}

/* 🔥 TASK PANEL (NEW UI) */
.tasks-panel {
    margin-top: 30px;
    padding: 12px 14px;

    border-radius: 26px;

    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.04),
        rgba(255,255,255,0.02)
    );

    border: 1px solid rgba(255,255,255,0.06);

}

/* kad taskai gražiai “plauktų” viduje */
.tasks-panel .task-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.04);
}

/* hover efektas */
.tasks-panel .task-item:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
}

/* smooth spacing */
.tasks-panel .task-list {
    gap: 14px;
}
.tasks-panel {
    backdrop-filter: blur(12px);
}

.money-input {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  overflow: hidden;
}
.money-input input {
    font-size: 16px !important;
}

.money-input input {
  min-width: 0; /* CRITICAL */
  flex: 1;
}

.money-input select {
  flex: 0 0 auto;
}

/* ITEM */
.money-item {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 16px;
  margin-bottom: 10px;

  border-radius: 18px;
  background: rgba(255,255,255,0.03);
}

/* PARTS */
.money-item .type {
  width: 20px;
  font-weight: bold;
}

.money-item .amount {
  min-width: 60px;
}

.money-item .text {
  flex: 1;
  opacity: 0.8;
}

@media (max-width: 769px) {

.task-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

}

/* DELETE */
.money-item button {
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
}
@media (max-width: 769px) {

  .money-input {
    gap: 6px;
  }

  .money-input input {
    font-size: 16px;
  }

  .money-item {
    font-size: 16px;
  }

}

.type-toggle {
  width: 36px;
  height: 36px;

  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: bold;
  cursor: pointer;

  transition: 0.2s;
}

/* PLUS */
.type-toggle.plus {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
}

/* MINUS */
.type-toggle.minus {
  background: rgba(255, 77, 77, 0.15);
  color: #ff4d4d;
}
.combined .top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.level-box {
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  opacity: 0.9;
}

.progress-bar {
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: "";
  position: absolute;
  width: 40%;
  height: 100%;
  background: rgba(255,255,255,0.2);
  transform: skewX(-20deg);
  animation: shine 2s infinite;
}

@keyframes shine {
  0% { left: -50%; }
  100% { left: 120%; }
}

.empty-state {
  text-align: center;
  opacity: 0.5;
  padding: 20px;
  font-size: 14px;
}

/* TASK → IDENTICAL TO MONEY */

.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 12px 16px;
  border-radius: 18px;

  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);

  font-size: 14px;
}

/* LEFT SIDE (be tarpo bugo) */
.task-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* CHECK – mažas kaip money */
.task-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;

  border: 2px solid #8b5cf6;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 12px;
  cursor: pointer;
}

/* DONE */
.task-item.completed .task-check {
  background: #22c55e;
  border: none;
  color: #000;
}

/* TEXT */
.task-text {
  opacity: 0.9;
}

.task-item.completed .task-text {
  opacity: 0.5;
  text-decoration: line-through;
}

/* DELETE */
.delete-task {
  opacity: 0.5;
  cursor: pointer;
}

.delete-task:hover {
  opacity: 1;
  color: #ff4d4d;
}

.money-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* emoji bubble */
.money-emoji {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    font-size: 20px;

    border-radius: 12px;

    /* 🔥 clean dark bubble */
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);

    /* subtilus depth */
    backdrop-filter: blur(6px);

    /* optional hover */
    transition: 0.2s;
}

.money-emoji:hover {
    transform: scale(1.05);
}
/* 🔥 DEFAULT – HIDDEN */
.bottom-nav-ios {
    display: none;
}

/* 📱 SHOW ONLY MOBILE */
@media (max-width: 768px) {

    .bottom-nav-ios {
        display: flex;

        position: fixed;
        bottom: 18px;
        left: 50%;
        transform: translateX(-50%);

        align-items: center;

        width: 92%;
        max-width: 420px;

        padding: 8px;
        border-radius: 30px;

        background: rgba(12,18,35,0.75);
        backdrop-filter: blur(18px);
        border: 1px solid rgba(255,255,255,0.06);

        z-index: 999;
    }

    /* ITEMS */
    .bottom-nav-ios .nav-item {
        flex: 1;
        height: 46px;

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 20px;
        text-decoration: none;

        color: rgba(255,255,255,0.4);

        z-index: 2;
    }

    .bottom-nav-ios .nav-item.active {
        color: #8b7cff;
    }

    /* INDICATOR */
    .bottom-nav-ios .nav-indicator {
        position: absolute;
        top: 8px;
        left: 8px;

        width: calc((100% - 16px) / 3);
        height: 46px;

        border-radius: 22px;
        background: rgba(255,255,255,0.06);

        transition: transform 0.3s ease;
    }

    /* POSITIONS */
    .bottom-nav-ios .nav-item:nth-child(1).active ~ .nav-indicator {
        transform: translateX(0%);
    }

    .bottom-nav-ios .nav-item:nth-child(2).active ~ .nav-indicator {
        transform: translateX(100%);
    }

    .bottom-nav-ios .nav-item:nth-child(3).active ~ .nav-indicator {
        transform: translateX(200%);
    }
}
.balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.balance-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.eye-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);

    width: 32px;
    height: 32px;
    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    cursor: pointer;

    color: rgba(255,255,255,0.6);
}

/* 🔥 BALANCE LEFT BAR – MOBILE ONLY */
@media (max-width: 768px){

    .stat-card.money{
        position: relative;
        overflow: hidden;
    }

    .stat-card.money::before{
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;

        width: 4px;
        border-radius: 10px 0 0 10px;

        background: linear-gradient(180deg, #22c55e, #16a34a);

        /* subtilus glow */
        box-shadow: 0 0 10px rgba(34,197,94,0.4);
    }

}

/* 🔥 HIDE SCROLLBAR – MOBILE CLEAN */
html, body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}