@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #09090b;
    --bg-gradient: radial-gradient(circle at top right, #1e1b4b, #09090b 60%);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --primary-color: #3b82f6; 
    --accent-color: #8b5cf6; 
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --danger-color: #f43f5e;
    --success-color: #10b981;
    --warning-color: #f59e0b;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-dark);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

h1, h2, h3 { margin-top: 0; font-weight: 600; letter-spacing: -0.5px; }
p { color: var(--text-secondary); line-height: 1.6; }
.subtitle { margin-bottom: 2.5rem; font-size: 0.95rem; }

.input-group { margin-bottom: 1.5rem; text-align: left; }
label { display: block; margin-bottom: 0.5rem; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1.5px; }

input {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    box-sizing: border-box;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

#loginForm button {
    width: 100%;
}

button:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6); }
button:active { transform: translateY(0); }

/* LOGIN */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}
.login-card {
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.login-card::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
    z-index: -1;
}
.logo-icon {
    width: 72px; height: 72px; background: var(--gradient-primary); border-radius: 20px;
    display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: bold;
    margin: 0 auto 1.5rem auto; box-shadow: 0 10px 25px rgba(59, 130, 246, 0.5);
}

/* APP LAYOUT */
.app-layout { display: flex; min-height: 100vh; }

/* DRAWER SIDEBAR */
.sidebar {
    position: fixed;
    top: 0; left: 0;
    width: 280px;
    height: 100vh;
    background: rgba(15, 15, 25, 0.65);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-right: 1px solid rgba(255,255,255,0.05);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2000;
    box-sizing: border-box;
}
.sidebar.open { transform: translateX(0); }

.sidebar-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
    z-index: 1999;
}
.sidebar-overlay.show { opacity: 1; pointer-events: auto; }

.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; }
.nav-brand { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 12px; }
.logo-icon-small {
    width: 32px;
    height: 32px;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}
.logo-icon-small span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.close-btn {
    background: none; border: none; color: var(--text-secondary); font-size: 1.5rem;
    padding: 5px; cursor: pointer; box-shadow: none; width: auto;
}
.close-btn:hover { color: white; transform: scale(1.1); box-shadow: none; background: transparent; }

/* Menus */
.nav-links { list-style: none; padding: 0; margin: 0; }
.nav-links li { margin-bottom: 0.8rem; }
.nav-links a {
    display: flex; align-items: center; gap: 15px; padding: 14px 18px;
    text-decoration: none; color: var(--text-secondary); border-radius: 12px;
    font-weight: 500; background: rgba(255,255,255,0.02); transition: all 0.3s ease;
    border: 1px solid transparent;
}
.nav-links a .icon { font-size: 1.2rem; }
.nav-links a:hover {
    background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); transform: translateX(5px); color: white;
}
.nav-links a.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15) 0%, transparent 100%);
    border-left: 4px solid var(--primary-color); color: var(--text-primary); box-shadow: none;
}
.sidebar-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); }
.text-danger { color: var(--danger-color) !important; }

/* Main Sadržaj */
.main-content {
    flex: 1; padding: 24px; padding-bottom: 120px; 
    max-width: 1000px; margin: 0 auto; width: 100%; box-sizing: border-box;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar.open ~ .main-content,
.sidebar.open ~ .menu-toggle {
    transform: translateX(280px);
}

/* Header */
.top-header { display: flex; flex-direction: row; align-items: center; gap: 16px; margin-bottom: 2.5rem; margin-top: 50px; }

/* Fiksirano Hamburger Dugme */
.menu-toggle {
    position: fixed;
    top: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}
.menu-toggle:hover { background: rgba(255,255,255,0.15); box-shadow: none; }
.header-titles h1 { font-size: 2.2rem; margin-bottom: 2px; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.date-text { text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; color: var(--primary-color); font-weight: 600; margin: 0; }

/* NOVI WIDGETI ZA DASHBOARD */
.dashboard-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.card-header h2 { margin: 0; font-size: 1.3rem; }

/* Streak Badge */
.streak-badge { background: rgba(245, 158, 11, 0.15); color: #fbbf24; padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; border: 1px solid rgba(245, 158, 11, 0.3); }

/* To-Do List */
.todo-list { list-style: none; padding: 0; margin: 0 0 1rem 0; }
.todo-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; margin-bottom: 10px; transition: all 0.2s ease; }
.todo-item:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.todo-item.done span { text-decoration: line-through; color: var(--text-secondary); }
.todo-item input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--primary-color); cursor: pointer; }

/* Quick Add Form */
.quick-add { display: flex; flex-direction: row; gap: 12px; margin-top: 1.5rem; }
.quick-add input { flex: 1; margin-bottom: 0; background: rgba(0,0,0,0.4); }
.btn-icon { flex: 0 0 60px; padding: 0; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; border-radius: 12px; }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 15px; }
.timeline-item { display: flex; gap: 15px; }
.timeline-item .time { width: 45px; font-weight: 600; color: var(--text-secondary); font-size: 0.9rem; padding-top: 12px; text-align: right; }
.timeline-item .event { flex: 1; padding: 12px 15px; border-radius: 10px; font-size: 0.95rem; font-weight: 500; }
.event.work { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border-left: 3px solid #3b82f6; }
.event.personal { background: rgba(139, 92, 246, 0.15); color: #c4b5fd; border-left: 3px solid #8b5cf6; }
.event.gym { background: rgba(244, 63, 94, 0.15); color: #fda4af; border-left: 3px solid #f43f5e; }

/* Budget */
.budget-stats { display: flex; justify-content: space-between; margin-bottom: 1rem; }
.stat { display: flex; flex-direction: column; }
.stat .label { font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; margin-bottom: 4px; }
.stat .value { font-size: 1.5rem; font-weight: 700; }
.text-success { color: #34d399; }
.text-danger { color: #fb7185; }
.progress-bar { width: 100%; height: 10px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; }
.progress-bar .progress { height: 100%; background: var(--danger-color); border-radius: 10px; }

/* Dump Input */
.dump-input { width: 100%; height: 120px; background: rgba(0,0,0,0.3); border: 1px solid var(--card-border); border-radius: 12px; padding: 16px; color: var(--text-primary); font-family: inherit; resize: none; box-sizing: border-box; }
.dump-input:focus { outline: none; border-color: var(--primary-color); }
.link-small { color: var(--primary-color); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.link-small:hover { text-decoration: underline; }

/* Bottom Nav */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(9, 9, 11, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--card-border); display: flex; justify-content: space-around;
    padding: 16px 0; padding-bottom: env(safe-area-inset-bottom, 16px); z-index: 1000;
}
.bottom-nav a { text-decoration: none; font-size: 1.5rem; padding: 10px 30px; border-radius: 16px; transition: all 0.3s ease; opacity: 0.6; }
.bottom-nav a.active { background: rgba(255,255,255,0.1); opacity: 1; }

@media screen and (min-width: 768px) {
    .bottom-nav { display: none !important; }
    .main-content { padding: 40px; }
    .top-header { margin-bottom: 3.5rem; margin-top: 0; }
    .menu-toggle { top: 40px; left: 40px; }
    .header-titles h1 { font-size: 3rem; }
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
    .focus-card { grid-column: span 2; } /* Siri widget na vrhu */
}
/* ====== DIZAJN ZA TASKS EKRAN ====== */
.tasks-header { justify-content: space-between; flex-wrap: wrap; }
.date-navigator { display: flex; align-items: center; gap: 15px; background: rgba(255,255,255,0.03); padding: 10px 15px; border-radius: 16px; border: 1px solid var(--card-border); }
.date-nav-btn { background: transparent; padding: 5px 10px; border: none; font-size: 1.2rem; box-shadow: none; color: var(--text-secondary); cursor: pointer; }
.date-nav-btn:hover { color: var(--primary-color); transform: scale(1.1); box-shadow: none; background: transparent; }
.current-selected-date { text-align: center; min-width: 150px; }
.current-selected-date h1 { margin: 0; font-size: 1.5rem; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.current-selected-date p { margin: 0; font-size: 0.8rem; }

.streak-container { text-align: right; background: rgba(245, 158, 11, 0.1); padding: 10px 20px; border-radius: 16px; border: 1px solid rgba(245, 158, 11, 0.2); }
.streak-flame { font-size: 1.8rem; font-weight: 700; color: #fbbf24; line-height: 1; }
.streak-label { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; margin-top: 5px; }

.tasks-layout-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 992px) {
    .tasks-layout-grid { grid-template-columns: 60% 40%; }
}

/* Category Chips */
.task-categories { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.cat-chip { padding: 6px 14px; background: rgba(255,255,255,0.05); border: 1px solid var(--card-border); border-radius: 20px; font-size: 0.85rem; cursor: pointer; transition: all 0.2s; }
.cat-chip:hover { background: rgba(255,255,255,0.1); }
.cat-chip.active { background: var(--primary-color); color: white; border-color: var(--primary-color); }

/* Task Items Extended */
.todo-item { display: flex; align-items: flex-start; gap: 15px; padding: 16px; }
.todo-item input[type="checkbox"] { margin-top: 2px; transform: scale(1.2); }
.task-info { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.task-title { font-size: 1.05rem; font-weight: 500; }
.task-tag { font-size: 0.7rem; text-transform: uppercase; font-weight: 600; padding: 3px 8px; border-radius: 8px; width: fit-content; }
.tag-work { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
.tag-personal { background: rgba(139, 92, 246, 0.15); color: #c4b5fd; }
.tag-gym { background: rgba(244, 63, 94, 0.15); color: #fda4af; }

/* GitHub Style Heatmap */
.heatmap-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.heat-box { width: 100%; aspect-ratio: 1; border-radius: 4px; background: rgba(255,255,255,0.05); }
.heat-box.level-0 { background: rgba(255,255,255,0.05); }
.heat-box.level-1 { background: rgba(16, 185, 129, 0.2); }
.heat-box.level-2 { background: rgba(16, 185, 129, 0.4); }
.heat-box.level-3 { background: rgba(16, 185, 129, 0.7); }
.heat-box.level-4 { background: rgba(16, 185, 129, 1); box-shadow: 0 0 10px rgba(16, 185, 129, 0.3); }

/* Accordion Archive */
.month-details { background: rgba(255,255,255,0.02); border: 1px solid var(--card-border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.month-details summary { padding: 15px; font-weight: 600; cursor: pointer; background: rgba(255,255,255,0.03); outline: none; }
.history-days { list-style: none; padding: 0; margin: 0; }
.history-day { display: flex; justify-content: space-between; padding: 12px 15px; border-top: 1px solid var(--card-border); font-size: 0.9rem; }
.history-day.success .score { color: #10b981; font-weight: bold; }
.history-day.partial .score { color: #f59e0b; }
.history-day.failed .score { color: #f43f5e; }

/* ====== ULTRA CLEAN TASKS DIZAJN ====== */
.clean-main { max-width: 900px; margin: 0 auto; padding: 40px 24px; padding-top: 80px; }

/* Header */
.clean-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 20px; }
.clean-date-nav { display: flex; align-items: center; gap: 15px; }
.clean-date-nav h1 { margin: 0; font-size: 1.8rem; font-weight: 500; letter-spacing: -0.5px; color: #fff; }
.clean-icon-btn { background: none; border: none; color: var(--text-secondary); font-size: 1.5rem; cursor: pointer; padding: 0 10px; transition: color 0.2s; }
.clean-icon-btn:hover { color: #fff; }
.clean-streak { font-size: 0.9rem; color: #f59e0b; font-weight: 500; background: rgba(245, 158, 11, 0.1); padding: 6px 12px; border-radius: 20px; }

/* Grid */
.clean-grid { display: grid; grid-template-columns: 1fr; gap: 50px; }
@media (min-width: 900px) { .clean-grid { grid-template-columns: 1fr 280px; } }

/* Input */

.plus-icon { color: var(--text-secondary); font-size: 1.5rem; font-weight: 300; }




/* Filters */
.clean-filters { display: flex; gap: 20px; margin-bottom: 20px; font-size: 0.9rem; }
.clean-filters span { color: var(--text-secondary); cursor: pointer; transition: color 0.2s; }
.clean-filters span:hover { color: #fff; }
.clean-filters span.active { color: #fff; font-weight: 500; border-bottom: 1px solid #fff; padding-bottom: 2px; }

/* Tasks List */
.clean-task-list { list-style: none; padding: 0; margin: 0; }
.clean-task { display: flex; align-items: center; gap: 15px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.03); transition: opacity 0.2s; }
.clean-task:last-child { border-bottom: none; }
.clean-task.completed { opacity: 0.4; }
.clean-task.completed .task-name { text-decoration: line-through; }
.task-name { flex: 1; font-size: 1rem; color: #e2e8f0; font-weight: 400; }
.task-dot { width: 8px; height: 8px; border-radius: 50%; opacity: 0.8; }
.dot-work { background: #3b82f6; }
.dot-gym { background: #f43f5e; }

/* Minimalist Checkbox */
.custom-checkbox { position: relative; width: 22px; height: 22px; cursor: pointer; display: block; }
.custom-checkbox input { opacity: 0; position: absolute; cursor: pointer; height: 0; width: 0; }
.checkmark { position: absolute; top: 0; left: 0; height: 22px; width: 22px; border: 1px solid rgba(255,255,255,0.3); border-radius: 50%; transition: all 0.2s; }
.custom-checkbox:hover input ~ .checkmark { border-color: rgba(255,255,255,0.6); }
.custom-checkbox input:checked ~ .checkmark { background-color: transparent; border-color: var(--text-secondary); }
.checkmark:after { content: ""; position: absolute; display: none; left: 7px; top: 3px; width: 5px; height: 10px; border: solid var(--text-secondary); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.custom-checkbox input:checked ~ .checkmark:after { display: block; }

/* Archive Right Column */
.side-title { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); margin-bottom: 20px; font-weight: 600; }
.clean-archive-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.archive-item { display: flex; justify-content: space-between; font-size: 0.95rem; color: #cbd5e1; }
.archive-score { font-weight: 500; }
.archive-score.success { color: #10b981; }
.archive-score.failed { color: #f43f5e; }
.view-more-link { font-size: 0.85rem; color: var(--text-secondary); text-decoration: none; border-bottom: 1px dashed var(--text-secondary); padding-bottom: 2px; }
.view-more-link:hover { color: #fff; border-bottom-color: #fff; }

/* Additional CSS for Weekly View */
.archive-item.pending { opacity: 0.3; }
.archive-item.current { color: #fff; font-weight: 500; border-left: 2px solid var(--primary-color); padding-left: 10px; margin-left: -12px; }
.archive-score.partial { color: #f59e0b; }

/* ====== Calendar Modal ====== */
.side-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.side-title { margin-bottom: 0 !important; }
.calendar-icon-btn { background: none; border: none; color: var(--text-secondary); cursor: pointer; padding: 5px; transition: color 0.2s; display: flex; align-items: center; justify-content: center; }
.calendar-icon-btn:hover { color: #fff; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); z-index: 3000; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.modal-overlay.show { display: flex; opacity: 1; }
.modal-content { background: var(--bg-dark); border: 1px solid var(--card-border); border-radius: 24px; padding: 30px; width: 90%; max-width: 380px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); transform: translateY(20px); transition: transform 0.3s; }
.modal-overlay.show .modal-content { transform: translateY(0); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.modal-header h2 { font-size: 1.2rem; margin: 0; color: #fff; font-weight: 500; }
.close-modal-btn { background: none; border: none; color: var(--text-secondary); font-size: 1.5rem; cursor: pointer; padding: 0; line-height: 1; }
.close-modal-btn:hover { color: #f43f5e; }

.calendar-grid-ui { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; text-align: center; }
.cal-day-label { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; margin-bottom: 10px; font-weight: 600; }
.cal-date { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 0.95rem; cursor: pointer; border: 2px solid transparent; transition: transform 0.2s; font-weight: 500; }
.cal-date:not(.empty):not(.future):hover { transform: scale(1.1); }
.cal-date.success { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.cal-date.partial { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.cal-date.failed { background: rgba(244, 63, 94, 0.15); color: #f43f5e; }
.cal-date.future { color: var(--text-secondary); opacity: 0.3; cursor: default; }
.cal-date.today { border-color: var(--primary-color); color: #fff; }

/* Tasks Interactions & Empty State */
.delete-task-btn { background: none; border: none; color: var(--danger-color); cursor: pointer; opacity: 0; transition: opacity 0.2s, transform 0.2s; padding: 5px; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }
.clean-task:hover .delete-task-btn { opacity: 0.4; }
.delete-task-btn:hover { opacity: 1 !important; transform: scale(1.1); }

.empty-state-tasks { display: none; flex-direction: column; align-items: center; justify-content: center; padding: 50px 20px; text-align: center; color: var(--text-secondary); }
.empty-state-tasks.show { display: flex; }
.empty-state-icon { font-size: 4rem; margin-bottom: 15px; opacity: 0.8; }
.empty-state-tasks h3 { margin: 0 0 10px 0; color: #fff; font-size: 1.3rem; }
.empty-state-tasks p { margin: 0; font-size: 0.95rem; }
.archive-item { color: #ffffff !important; }

/* FULL CALENDAR VIEW */
.full-calendar-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}
.full-cal-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.fcal-day-label {
    padding: 10px 0;
}
.full-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 1fr;
    gap: 8px;
    flex: 1;
}
.fcal-date {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 80px;
}
.fcal-date:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}
.fcal-date.empty-cell {
    background: transparent;
    border: none;
    cursor: default;
}
.fcal-date .day-num {
    font-weight: 600;
    margin-bottom: 5px;
    align-self: flex-end;
}
.fcal-date.today {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
}
.fcal-date.today .day-num {
    color: var(--primary-color);
}
.event-dot-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: auto;
}
.event-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.event-text {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 4px;
    border-radius: 4px;
    margin-top: 2px;
}

/* DAY DETAIL MODAL */
.day-events-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
}
.event-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}
.event-color-bar {
    width: 4px;
    height: 30px;
    border-radius: 2px;
}
.event-info {
    flex: 1;
}
.event-time {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}
.event-title-text {
    font-size: 15px;
    font-weight: 500;
    margin-top: 2px;
}
.delete-event-btn {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 16px;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.delete-event-btn:hover {
    opacity: 1;
}

/* NOVI IOS CALENDAR STIL */
.calendar-page-wrapper {
    box-sizing: border-box;
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.cal-left-panel {
    box-sizing: border-box;
    flex: 1;
    max-width: 450px;
}
.cal-right-panel {
    box-sizing: border-box;
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    min-height: 400px;
}
@media (max-width: 768px) {
    .calendar-page-wrapper {
    box-sizing: border-box;
        flex-direction: column;
        gap: 20px;
    }
    .cal-left-panel {
    box-sizing: border-box;
        max-width: 100%;
        width: 100%;
    }
    .cal-right-panel {
    box-sizing: border-box;
        width: 100%;
    }
}

.ios-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.ios-cal-header h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}
.ios-cal-actions {
    display: flex;
    gap: 8px;
}
.ios-cal-actions button {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 600;
}
.ios-cal-actions button:hover {
    background: rgba(255,255,255,0.1);
}
.ios-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px 5px;
    text-align: center;
    margin-bottom: 30px;
}
.day-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 10px;
}
.ios-day-cell {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 17px;
    transition: all 0.2s;
    position: relative;
}
.ios-day-cell:hover {
    background: rgba(255, 255, 255, 0.05);
}
.ios-day-cell.today {
    color: var(--primary-color);
    font-weight: 700;
}
.ios-day-cell.selected {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}
.ios-day-cell.empty-cell {
    visibility: hidden;
}
.event-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-secondary);
    position: absolute;
    bottom: 4px;
}
.ios-day-cell.selected .event-dot {
    background: rgba(255,255,255,0.6);
}

.ios-agenda-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.ios-agenda-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}
.ios-add-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 6px 15px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.ios-agenda-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding-bottom: 50px;
}
.ios-event-item {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--card-border);
    transition: transform 0.2s;
}
.ios-event-item:hover {
    background: rgba(255, 255, 255, 0.04);
}
.ios-event-color {
    width: 4px;
    height: 35px;
    border-radius: 2px;
}
.ios-event-time {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    min-width: 45px;
}
.ios-event-title {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
}

/* BUDGET VAULT STYLES */
.vault-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.vault-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}
.vault-content {
    background: rgba(20, 20, 25, 0.9);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 350px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.vault-overlay:not(.hidden) .vault-content {
    transform: scale(1);
}
.vault-icon {
    font-size: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
}
.budget-content-blur {
    filter: blur(10px);
    pointer-events: none;
    transition: filter 0.5s ease;
}
.budget-content-blur.unlocked {
    filter: blur(0);
    pointer-events: auto;
}

/* Fix for Mobile Sidebar Fullscreen */
@media screen and (max-width: 768px) {
    .sidebar {
        width: 100vw !important;
        height: 100dvh !important; /* iOS safe height */
        border-right: none !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain; /* Sprječava scrollanje pozadine */
        padding-bottom: 80px !important; /* Prostor na dnu menija */
    }
    .sidebar.open ~ .main-content,
    .sidebar.open ~ .menu-toggle {
        transform: none !important;
    }
    .close-btn {
        display: flex !important;
        background: rgba(255,255,255,0.1);
        border: none;
        color: white;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
    }
    .nav-links a {
        padding: 20px 24px !important;
        font-size: 1.2rem !important;
    }
}

/* Fix for Mobile Top Bar (UI/UX) */
@media screen and (max-width: 768px) {
    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: rgba(15, 15, 25, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 1500;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .menu-toggle {
        top: 11px !important;
        left: 15px !important;
        z-index: 1501 !important;
        background: transparent !important;
        border: none !important;
        font-size: 24px !important;
    }
    .main-content {
        padding-top: 80px !important;
    }
    .top-header {
        margin-top: 0 !important;
    }
}


/* =========================================
   VISION UI / CHAKRA MASTER OVERHAUL
   ========================================= */

/* All Cards Global Override */
.card, .gl-card, .b-card, .gym-card, .clean-col-main, .clean-col-side, .modal-content, .gl-modal-box {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2) !important;
    border-radius: 20px !important;
}

/* Sidebar Overhaul */
.sidebar {
    background: var(--card-bg) !important;
    border-right: 1px solid var(--card-border) !important;
    box-shadow: 10px 0 30px rgba(0,0,0,0.3) !important;
    backdrop-filter: blur(20px) !important;
}
.nav-link.active {
    background: var(--gradient-primary) !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3) !important;
    border: none !important;
}
.nav-link:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Buttons Glow */
.btn-primary, .gl-btn-primary, .b-btn-primary, .gym-fab, .gym-btn-start {
    background: var(--gradient-primary) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}
.btn-primary:hover, .gl-btn-primary:hover, .gym-fab:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6) !important;
}

/* Inputs & Form Elements */
input, textarea, select, .gym-input {
    background: rgba(0,0,0,0.3) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: white !important;
    border-radius: 12px !important;
}
input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3) !important;
}

/* List Items / Sub-cards */
.clean-task, .b-item, .gym-exercise-card, .archive-item {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
    border-radius: 16px !important;
    margin-bottom: 8px !important;
    transition: transform 0.2s !important;
}
.clean-task:hover, .b-item:hover, .gym-exercise-card:hover {
    background: rgba(255,255,255,0.06) !important;
    transform: translateX(4px) !important;
}

/* Badges / Small Stats */
.archive-score.success, .b-badge, .b-amt.income {
    color: var(--success-color) !important;
    text-shadow: 0 0 10px rgba(1, 181, 116, 0.4) !important;
}
.b-amt.expense {
    color: var(--danger-color) !important;
    text-shadow: 0 0 10px rgba(225, 29, 72, 0.4) !important;
}

/* Checkboxes & Check buttons */
.check-btn.done, .gl-check-btn.done {
    background: var(--success-color) !important;
    border-color: var(--success-color) !important;
    box-shadow: 0 0 15px rgba(1, 181, 116, 0.4) !important;
}

/* =========================================
   GLOBAL V-CARD LAYOUT CLASSES
   ========================================= */
.v-card {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    border-radius: 20px !important;
    padding: 22px !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2) !important;
    position: relative;
    overflow: hidden;
}
.v-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}
.v-card-sub { font-size: 13px; color: var(--text-secondary); margin: 0 0 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; }
.v-card-title { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.v-grid-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; }
.v-grid-bot { display: grid; gap: 24px; }
.v-stat-card { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px !important; }
.v-stat-title { font-size: 13px; color: var(--text-secondary); margin: 0 0 6px; font-weight: 600; }
.v-stat-val-row { display: flex; align-items: baseline; gap: 8px; }
.v-stat-val-row h3 { font-size: 20px; margin: 0; font-weight: 700; }
.v-stat-icon-box { 
    width: 45px; height: 45px; border-radius: 14px; 
    background: var(--gradient-primary); display: flex; align-items: center; justify-content: center;
    font-size: 20px; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); color: white;
}
@media (max-width: 1100px) {
    .v-grid-top { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .v-grid-bot { grid-template-columns: 1fr !important; }
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 18px;
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: #f43f5e;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.btn-logout:hover {
    background: rgba(244, 63, 94, 0.15);
    border-color: rgba(244, 63, 94, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.2);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); filter: drop-shadow(0 0 30px rgba(244,63,94,0.8)); }
    100% { transform: translateY(0px); }
}
