:root {
    --bg-dark: #0b1220;
    --bg-light: #f4f7fb;
    --glass: rgba(255,255,255,0.06);
    --glass-border: rgba(255,255,255,0.12);
    --accent: #6366f1;
    --accent-light: #818cf8;
    --text: #ffffff;
    --text-dark: #0f172a;
    --muted: #94a3b8;
    --card-dark: rgba(30, 41, 59, 0.5);
    --card-light: rgba(255, 255, 255, 0.9);
    --radius: 20px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    padding-bottom: 80px;
    transition: background 0.3s, color 0.3s;
}

body:not(.dark) {
    background: var(--bg-light);
    color: var(--text-dark);
}

/* ================= HEADER ================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 18, 32, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body:not(.dark) header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-inner {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text);
    letter-spacing: -0.5px;
}

body:not(.dark) .logo {
    color: var(--text-dark);
}

.logo span {
    color: var(--accent);
}

/* ================= THEME SWITCH ================= */
.switch {
    width: 60px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

body:not(.dark) .switch {
    background: rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.switch-handle {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.switch.dark .switch-handle {
    transform: translateX(28px);
    background: #fbbf24;
}

.switch:not(.dark) .switch-handle {
    background: #f59e0b;
}

.switch-handle::before {
    content: "☀️";
    font-size: 12px;
}

.switch.dark .switch-handle::before {
    content: "🌙";
}

/* ================= DASHBOARD CONTAINER ================= */
.dashboard-container {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 0 20px;
}

/* ================= WELCOME SECTION ================= */
.welcome-section {
    margin-bottom: 30px;
    padding: 0 10px;
}

.welcome-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
}

body:not(.dark) .welcome-title {
    color: var(--text-dark);
}

.welcome-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    margin-top: 5px;
    font-weight: 500;
}

/* ================= QUICK ACTIONS ================= */
.quick-actions {
    margin-bottom: 30px;
}

.action-card {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: var(--radius);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.action-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.action-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.action-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ================= STATS GRID ================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-dark);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s, background 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.dark) .stat-card {
    background: var(--card-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-3px);
    background: rgba(99, 102, 241, 0.1);
}

body:not(.dark) .stat-card:hover {
    background: rgba(99, 102, 241, 0.05);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.3rem;
    color: var(--accent);
}

.stat-content h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
}

body:not(.dark) .stat-number {
    color: var(--text-dark);
}

/* ================= AI CARD ================= */
.ai-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body:not(.dark) .ai-card {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.ai-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-icon i {
    font-size: 1.5rem;
    color: white;
}

.ai-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

body:not(.dark) .ai-title h2 {
    color: var(--text-dark);
}

.ai-message {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

body:not(.dark) .ai-message {
    color: #475569;
}

/* ================= WORKOUT SECTION ================= */
.workout-section {
    margin-bottom: 40px;
}

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

.section-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}

body:not(.dark) .section-header h2 {
    color: var(--text-dark);
}

.view-all {
    font-size: 0.95rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.view-all:hover {
    opacity: 0.8;
}

.workout-card {
    background: var(--card-dark);
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, background 0.3s;
}

body:not(.dark) .workout-card {
    background: var(--card-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.workout-card:hover {
    transform: translateY(-3px);
    background: rgba(99, 102, 241, 0.1);
}

body:not(.dark) .workout-card:hover {
    background: rgba(99, 102, 241, 0.05);
}

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

.workout-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    flex: 1;
    line-height: 1.4;
}

body:not(.dark) .workout-header h3 {
    color: var(--text-dark);
}

.workout-status {
    background: rgba(34, 197, 94, 0.2);
    color: #10b981;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 15px;
}

body:not(.dark) .workout-status {
    background: rgba(16, 185, 129, 0.1);
}

.workout-date {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.95rem;
}

.workout-date i {
    font-size: 1rem;
}

/* ================= BOTTOM NAV ================= */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(11, 18, 32, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
    padding: 0 10px;
}

body:not(.dark) .bottom-nav {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.bn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 10px;
    border-radius: 15px;
    transition: all 0.3s;
    flex: 1;
    max-width: 80px;
}

.bn-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
    transition: all 0.3s;
}

.bn-item span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    transition: color 0.3s;
}

.bn-item.active {
    background: rgba(99, 102, 241, 0.1);
}

.bn-item.active span {
    color: var(--accent);
}

.bn-item.active svg {
    color: var(--accent);
}

.bn-item.center {
    background: var(--accent);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    transform: translateY(-20px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.bn-item.center svg {
    width: 28px;
    height: 28px;
    color: white;
    margin-bottom: 2px;
}

.bn-item.center span {
    color: white;
    font-weight: 700;
}

.bn-item:hover:not(.center) {
    background: rgba(99, 102, 241, 0.05);
}

body:not(.dark) .bn-item:hover:not(.center) {
    background: rgba(99, 102, 241, 0.08);
}

/* ================= RESPONSIVE ================= */
@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .welcome-title {
        font-size: 2.8rem;
    }
    
    .action-text h3 {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .ai-title h2 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .workout-header h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .dashboard-container {
        padding: 0 15px;
    }
    
    .welcome-title {
        font-size: 1.8rem;
    }
    
    .action-card {
        padding: 20px;
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .bn-item span {
        font-size: 0.7rem;
    }
    
    .bn-item.center {
        width: 50px;
        height: 50px;
        transform: translateY(-15px);
    }
    
    .bn-item.center svg {
        width: 24px;
        height: 24px;
    }
}

/* ================= OLD STYLES (za ne-prijavljene uporabnike) ================= */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: var(--radius);
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.1);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: var(--card-dark);
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

body:not(.dark) .card {
    background: var(--card-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

body:not(.dark) .card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

body:not(.dark) .card h3 {
    color: var(--text-dark);
}

.card p {
    color: var(--muted);
    line-height: 1.6;
}

.section {
    margin-bottom: 60px;
}

.section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text);
}

body:not(.dark) .section h2 {
    color: var(--text-dark);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 30px;
}

.premium {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: var(--radius);
    margin: 60px 0;
}

.premium h2 {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 10px;
}

.premium p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}

.premium ul {
    list-style: none;
    margin: 0 auto 30px;
    padding: 0;
    max-width: 300px;
    text-align: left;
}

.premium li {
    color: white;
    margin-bottom: 12px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.premium li:before {
    content: "✓";
    font-weight: bold;
}
/* ================= MY TRAININGS PAGE ================= */
.my-trainings-container {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 0 20px 100px;
}

.my-trainings-header {
    margin-bottom: 30px;
    padding: 0 10px;
}

.my-trainings-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
}

body:not(.dark) .my-trainings-header h1 {
    color: var(--text-dark);
}

.my-trainings-header p {
    font-size: 1.1rem;
    color: var(--muted);
    margin-top: 5px;
}

.my-trainings-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .my-trainings-grid {
        grid-template-columns: 1fr;
    }
}

/* SIDEBAR */
.my-trainings-sidebar {
    background: var(--card-dark);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    height: fit-content;
}

body:not(.dark) .my-trainings-sidebar {
    background: var(--card-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.my-trainings-list-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

body:not(.dark) .my-trainings-list-header h3 {
    color: var(--text-dark);
}

.count-badge {
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* TRAINING ITEMS */
.my-trainings-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.my-training-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body:not(.dark) .my-training-item {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.my-training-item:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
    border-color: var(--accent);
}

.my-training-item-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.my-training-item-icon {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.my-training-item-icon i {
    color: var(--accent);
    font-size: 1.1rem;
}

.my-training-item-info {
    display: flex;
    flex-direction: column;
}

.my-training-item-info strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

body:not(.dark) .my-training-item-info strong {
    color: var(--text-dark);
}

.my-training-item-info small {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 2px;
}

.my-training-item-actions {
    display: flex;
    gap: 8px;
}

.my-training-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

body:not(.dark) .my-training-action-btn {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-dark);
}

.my-training-action-btn:hover {
    background: var(--accent);
    color: white;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1rem;
}

/* CREATE BUTTON */
.create-training-quick {
    margin-top: 25px;
}

.btn-create-training {
    width: 100%;
    padding: 15px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-create-training:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

/* CONTENT AREA */
.my-trainings-content {
    background: var(--card-dark);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    min-height: 500px;
}

body:not(.dark) .my-trainings-content {
    background: var(--card-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.training-detail-empty {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-content {
    text-align: center;
    color: var(--muted);
}

.empty-content i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-content h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text);
}

body:not(.dark) .empty-content h2 {
    color: var(--text-dark);
}

/* CREATE TRAINING BLOCK */
.create-training-block {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.create-training-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.dark) .create-training-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.create-training-header h2 {
    font-size: 1.8rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

body:not(.dark) .create-training-header h2 {
    color: var(--text-dark);
}

.close-create-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-create-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

body:not(.dark) .close-create-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* CREATE OPTIONS */
.create-training-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.create-option-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 20px;
}

body:not(.dark) .create-option-card {
    background: rgba(0, 0, 0, 0.03);
}

.create-option-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    background: rgba(99, 102, 241, 0.05);
}

.option-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.ai-icon {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: white;
}

.manual-icon {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
}

.option-content {
    flex: 1;
}

.option-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

body:not(.dark) .option-content h3 {
    color: var(--text-dark);
}

.option-content p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.5;
}

.option-arrow {
    color: var(--accent);
    font-size: 1.2rem;
}

/* MANUAL TRAINING FORM */
.manual-training-form {
    animation: slideIn 0.3s ease;
}

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

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

.form-header h3 {
    font-size: 1.5rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

body:not(.dark) .form-header h3 {
    color: var(--text-dark);
}

.back-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

body:not(.dark) .back-btn {
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

body:not(.dark) .form-group label {
    color: var(--text-dark);
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.2s;
}

body:not(.dark) .form-input, 
body:not(.dark) .form-textarea {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* DAYS AND EXERCISES */
.days-container {
    margin-top: 15px;
}

.day-block {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.dark) .day-block {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

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

.day-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

body:not(.dark) .day-header h4 {
    color: var(--text-dark);
}

.remove-day-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 1rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.remove-day-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

.day-exercises {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.exercise-input-row input {
    flex: 1;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.95rem;
}

body:not(.dark) .exercise-input-row input {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

.set-input {
    width: 80px;
}

.rep-input {
    width: 120px;
}

.remove-exercise-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.remove-exercise-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

.add-day-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: var(--muted);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

body:not(.dark) .add-day-btn {
    border: 2px dashed rgba(0, 0, 0, 0.3);
}

.add-day-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(99, 102, 241, 0.05);
}

.add-exercise-btn {
    padding: 15px;
    background: transparent;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--muted);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

body:not(.dark) .add-exercise-btn {
    border: 2px dashed rgba(0, 0, 0, 0.2);
}

.add-exercise-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(99, 102, 241, 0.05);
}

/* FORM ACTIONS */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.dark) .form-actions {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-cancel, .btn-save {
    flex: 1;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

body:not(.dark) .btn-cancel {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-dark);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-save {
    background: var(--accent);
    color: white;
}

.btn-save:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* DELETE BUTTON */
.delete-training-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px auto 0;
}

.delete-training-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .my-trainings-container {
        padding: 0 15px 80px;
    }
    
    .my-trainings-header h1 {
        font-size: 1.8rem;
    }
    
    .my-trainings-content {
        padding: 20px;
    }
    
    .exercise-input-row {
        flex-wrap: wrap;
    }
    
    .exercise-input-row input {
        flex: 1 1 calc(50% - 5px);
    }
    
    .set-input, .rep-input {
        flex: 1;
    }
    
    .form-actions {
        flex-direction: column;
    }
}
/* ================= WORKOUT EXECUTION ================= */
.workout-start-container {
    text-align: center;
    padding: 40px 20px;
}

.workout-start-container h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.workout-start-container p {
    color: var(--muted);
    margin-bottom: 30px;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.day-select-btn {
    padding: 20px 10px;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 15px;
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.day-select-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-3px);
}

.workout-exercise-container {
    max-width: 800px;
    margin: 0 auto;
}

/* WORKOUT HEADER */
.workout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.dark) .workout-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.workout-progress {
    flex: 1;
}

.progress-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.progress-bar {
    width: 200px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

body:not(.dark) .progress-bar {
    background: rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.rest-time-control {
    text-align: right;
}

.rest-time-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.rest-time-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rest-time-input input {
    width: 70px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    text-align: center;
}

body:not(.dark) .rest-time-input input {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
}

.btn-small {
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--accent);
    border-radius: 6px;
    color: var(--accent);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-small:hover {
    background: var(--accent);
    color: white;
}

/* CURRENT EXERCISE */
.current-exercise {
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
    border: 2px solid var(--accent);
}

.exercise-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
}

body:not(.dark) .exercise-name {
    color: var(--text-dark);
}

.exercise-details {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--muted);
    font-size: 1.1rem;
}

.muscle-group, .reps-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* SETS TABLE */
.previous-sets-section, .add-sets-section, .next-exercises {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
}

body:not(.dark) .previous-sets-section,
body:not(.dark) .add-sets-section,
body:not(.dark) .next-exercises {
    background: rgba(0, 0, 0, 0.03);
}

.previous-sets-section h3, .add-sets-section h3, .next-exercises h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text);
}

.sets-table {
    width: 100%;
}

.sets-header, .set-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 12px 15px;
    border-radius: 10px;
}

.sets-header {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: var(--text);
}

body:not(.dark) .sets-header {
    background: rgba(0, 0, 0, 0.08);
}

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

body:not(.dark) .set-row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.set-col {
    text-align: center;
}

.no-sets {
    text-align: center;
    padding: 20px;
    color: var(--muted);
    font-style: italic;
}

/* ADD SETS */
.sets-selection {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.sets-selection label {
    font-weight: 600;
    color: var(--text);
}

.set-select {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
}

body:not(.dark) .set-select {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
}

.sets-input-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.set-input-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.dark) .set-input-row {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.set-number {
    font-weight: 600;
    color: var(--text);
    min-width: 70px;
}

.set-inputs {
    flex: 1;
    display: flex;
    gap: 15px;
}

.weight-input, .reps-input {
    flex: 1;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    text-align: center;
}

body:not(.dark) .weight-input,
body:not(.dark) .reps-input {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
}

.set-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}

.btn-complete-set {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.2);
    border: 2px solid #22c55e;
    color: #22c55e;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-complete-set:hover {
    background: #22c55e;
    color: white;
}

.rest-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid #3b82f6;
    border-radius: 20px;
    color: #3b82f6;
    font-weight: 600;
}

.btn-skip-rest {
    background: transparent;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-skip-rest:hover {
    color: white;
}

.sets-actions {
    text-align: center;
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.dark) .sets-actions {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-save-sets {
    padding: 16px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 1 !important;
    pointer-events: auto !important;
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.3);
}

.btn-save-sets:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
}

.btn-save-sets i {
    font-size: 1.2rem;
}

.sets-actions .btn-secondary {
    padding: 16px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

body:not(.dark) .sets-actions .btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.sets-actions .btn-secondary:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

.sets-actions .btn-secondary i {
    font-size: 1.2rem;
}

/* Dodaj ikone pred gumbi */
.btn-save-sets::before {
    content: "💾";
    font-size: 1.1rem;
}

.sets-actions .btn-secondary::before {
    content: "➡️";
    font-size: 1.1rem;
}


/* NEXT EXERCISES */
.next-exercises-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.next-exercise-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body:not(.dark) .next-exercise-item {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.next-exercise-index {
    width: 30px;
    height: 30px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--accent);
}

.next-exercise-info {
    flex: 1;
}

.next-exercise-name {
    font-weight: 600;
    color: var(--text);
}

body:not(.dark) .next-exercise-name {
    color: var(--text-dark);
}

.next-exercise-reps {
    font-size: 0.9rem;
    color: var(--muted);
}

.next-exercise-status {
    font-size: 0.9rem;
    color: #f59e0b;
    font-weight: 600;
}

/* FINISH BUTTON */
.finish-workout-btn {
    text-align: center;
    margin-top: 30px;
}

.workout-complete {
    text-align: center;
    padding: 60px 20px;
}

.workout-complete h2 {
    font-size: 2.5rem;
    color: #22c55e;
    margin-bottom: 20px;
}

.workout-complete p {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 30px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .workout-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .workout-header-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 15px;
    }

    .workout-nav {
        order: 1;
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .rest-time-control-compact {
        order: 2;
        width: 100%;
        min-width: unset;
        justify-content: center;
    }

    .progress-bar {
        width: 100%;
    }
    
    .rest-time-control {
        text-align: center;
    }
    
    .exercise-name {
        font-size: 1.6rem;
    }
    
    .set-input-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .set-number {
        align-self: flex-start;
    }
    
    .set-inputs {
        width: 100%;
    }
    
    .set-actions {
        width: 100%;
        justify-content: center;
    }
    .btn-save-sets,
    .sets-actions .btn-secondary {
        padding: 14px 20px;
        font-size: 1rem;
    }
}
/* ================= PROFILE PAGE ================= */
.profile-container {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 0 20px 100px;
}

/* PROFILE HEADER */
.profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.dark) .profile-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: white;
}

.profile-info h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 5px;
}

body:not(.dark) .profile-info h1 {
    color: var(--text-dark);
}

.profile-email {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.profile-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge-premium, .badge-basic, .badge-verified {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-premium {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #7c2d12;
}

.badge-basic {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

body:not(.dark) .badge-basic {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

.badge-verified {
    background: rgba(34, 197, 94, 0.2);
    color: #16a34a;
}

/* PROFILE GRID */
.profile-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .profile-badges {
        justify-content: center;
    }
}

/* PROFILE CARD */
.profile-card {
    background: var(--card-dark);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    margin-bottom: 25px;
}

body:not(.dark) .profile-card {
    background: var(--card-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.profile-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

body:not(.dark) .profile-card h3 {
    color: var(--text-dark);
}

/* STATISTIKA */
.profile-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.stat-value {
    white-space: nowrap;        /* prepreči prelom vrstice */
    color: var(--accent);        /* enaka barva kot številka */
    font-size: inherit;          /* ohrani velikost */
}

.stat-unit {
    font-weight: bold;         /* po želji, da ni krepko */
    margin-left: 2px;
    color: var(--accent);       /* majhen razmik med številko in enoto */
}
.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    color: var(--accent);
    font-size: 1.3rem;
}

.stat-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 5px;
}

.stat-content p {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}

body:not(.dark) .stat-content p {
    color: var(--text-dark);
}

/* HITRE AKCIJE */
.quick-actions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

body:not(.dark) .quick-action-btn {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

.quick-action-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.quick-action-btn i {
    font-size: 1.2rem;
    color: var(--accent);
    width: 24px;
    text-align: center;
}

.quick-action-btn.premium-upgrade {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.1));
    border-color: rgba(251, 191, 36, 0.3);
}

.quick-action-btn.premium-upgrade i {
    color: #f59e0b;
}

/* SETTINGS FORM */
.form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.dark) .form-section {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.form-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

body:not(.dark) .form-section h4 {
    color: var(--text-dark);
}

.setting-toggle, .setting-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

body:not(.dark) .setting-toggle,
body:not(.dark) .setting-item {
    background: rgba(0, 0, 0, 0.02);
}

.toggle-info, .setting-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.toggle-info i, .setting-item i {
    font-size: 1.2rem;
    color: var(--accent);
    min-width: 24px;
}

.toggle-info h5, .setting-item h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
}

body:not(.dark) .toggle-info h5,
body:not(.dark) .setting-item h5 {
    color: var(--text-dark);
}

.toggle-info p, .setting-item p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.4;
}

/* TOGGLE SWITCH */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
}

body:not(.dark) .toggle-slider {
    background-color: rgba(0, 0, 0, 0.1);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--accent);
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

/* ACCOUNT INFO */
.account-info {
    margin-bottom: 25px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body:not(.dark) .info-row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text);
}

body:not(.dark) .info-label {
    color: var(--text-dark);
}

.info-value {
    color: var(--muted);
    text-align: right;
}

.text-premium {
    color: #f59e0b;
    font-weight: 700;
}

.text-basic {
    color: var(--accent);
    font-weight: 700;
}

.account-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-danger {
    background: #dc2626;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

/* PREMIUM CARD */
.premium-card {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.1));
    border: 2px solid rgba(251, 191, 36, 0.3);
}

.premium-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.premium-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #7c2d12;
}

.premium-text {
    flex: 1;
}

.premium-text h3 {
    color: #f59e0b;
    margin-bottom: 5px;
}

.btn-premium {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #7c2d12;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

/* MODAL */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--card-dark);
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

body:not(.dark) .modal-content {
    background: var(--card-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(99, 102, 241, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.dark) .modal-header {
    background: rgba(99, 102, 241, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-header h3 {
    font-size: 1.3rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 1.2rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.modal-body {
    padding: 25px;
}

.modal-body p {
    color: var(--text);
    margin-bottom: 25px;
    line-height: 1.6;
}

body:not(.dark) .modal-body p {
    color: var(--text-dark);
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* AUTHENTICATION STYLES */
.auth-container {
    max-width: 500px;
    margin: 0 auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
}

body:not(.dark) .auth-header h1 {
    color: var(--text-dark);
}

.auth-header p {
    font-size: 1.1rem;
    color: var(--muted);
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

body:not(.dark) .auth-tabs {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.auth-tab {
    flex: 1;
    padding: 15px;
    background: transparent;
    border: none;
    border-radius: 10px 10px 0 0;
    color: var(--muted);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

.auth-tab:hover {
    background: rgba(255, 255, 255, 0.05);
}

.auth-tab.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    border-bottom: 3px solid var(--accent);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.form-card {
    background: var(--card-dark);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
}

body:not(.dark) .form-card {
    background: var(--card-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.form-card h3 {
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

body:not(.dark) .form-card h3 {
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

body:not(.dark) .form-group label {
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.2s;
}

body:not(.dark) .form-group input {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.form-checkbox label {
    font-size: 0.95rem;
    color: var(--text);
}

body:not(.dark) .form-checkbox label {
    color: var(--text-dark);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 0.95rem;
    cursor: pointer;
}

.forgot-password {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.2s;
}

.forgot-password:hover {
    opacity: 0.8;
}

.btn-full {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .profile-container {
        padding: 0 15px 80px;
    }
    
    .profile-header {
        padding: 20px;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2.8rem;
    }
    
    .profile-info h1 {
        font-size: 1.8rem;
    }
    
    .profile-card {
        padding: 20px;
    }
    
    .setting-toggle, .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .account-actions {
        flex-direction: column;
    }
    
    .premium-content {
        flex-direction: column;
        text-align: center;
    }
    
    .auth-tab {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .form-card {
        padding: 20px;
    }
}
/* ================= CREATE WORKOUT PAGE ================= */
.create-workout-container {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 0 20px 100px;
}

.create-header {
    text-align: center;
    margin-bottom: 40px;
}

.create-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

body:not(.dark) .create-header h1 {
    color: var(--text-dark);
}

.create-header p {
    font-size: 1.2rem;
    color: var(--muted);
}

.create-options {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.create-option-card {
    background: var(--card-dark);
    border-radius: var(--radius);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    display: none;
}

body:not(.dark) .create-option-card {
    background: var(--card-light);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.create-option-card.active {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.option-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.dark) .option-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.option-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.ai-option .option-icon {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: white;
}

.manual-option .option-icon {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
}

.option-title h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 5px;
}

body:not(.dark) .option-title h3 {
    color: var(--text-dark);
}

.option-title p {
    font-size: 1.1rem;
    color: var(--muted);
}

.option-content {
    margin-top: 20px;
}

/* FORME */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
    font-size: 1rem;
}

body:not(.dark) .form-group label {
    color: var(--text-dark);
}

.form-group label i {
    color: var(--accent);
}

.form-select, .form-input, .form-textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.2s;
}

body:not(.dark) .form-select,
body:not(.dark) .form-input,
body:not(.dark) .form-textarea {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
}

.form-select:focus, .form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

.btn-generate, .btn-preview {
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* DAYS CONTAINER */
.days-container {
    margin-top: 20px;
}

.day-block {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.dark) .day-block {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

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

.day-header h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

body:not(.dark) .day-header h4 {
    color: var(--text-dark);
}

.day-name-input {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.3rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 8px;
    min-width: 150px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.dark) .day-name-input {
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.day-name-input:focus {
    outline: none;
    border-color: var(--accent);
}

.remove-day-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.remove-day-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.exercises-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text);
}

.add-exercise-btn {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--accent);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.add-exercise-btn:hover {
    background: rgba(99, 102, 241, 0.2);
}

.exercises-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exercise-input-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr auto;
    gap: 12px;
    align-items: center;
}

@media (max-width: 768px) {
    .exercise-input-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.exercise-name-input, .muscle-input, .reps-input {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.95rem;
}

body:not(.dark) .exercise-name-input,
body:not(.dark) .muscle-input,
body:not(.dark) .reps-input {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

.remove-exercise-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.remove-exercise-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* PREVIEW */
.training-preview {
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.dark) .training-preview {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.dark) .preview-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.preview-header h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.preview-content {
    color: var(--text);
    line-height: 1.6;
}

body:not(.dark) .preview-content {
    color: var(--text-dark);
}

.preview-content h2 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.preview-content h3 {
    font-size: 1.4rem;
    margin: 25px 0 10px;
    color: var(--text);
}

body:not(.dark) .preview-content h3 {
    color: var(--text-dark);
}

.preview-content p {
    margin-bottom: 15px;
    color: var(--muted);
}

.preview-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.preview-content li {
    margin-bottom: 8px;
    padding-left: 5px;
}

.preview-actions {
    margin-top: 25px;
    text-align: center;
}

/* NAVIGACIJA */
.navigation-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.dark) .navigation-buttons {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-option {
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

body:not(.dark) .btn-option {
    background: rgba(0, 0, 0, 0.05);
}

.btn-option.active {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
}

.btn-option-ai.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(167, 139, 250, 0.1));
}

.btn-option-manual.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(96, 165, 250, 0.1));
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .create-workout-container {
        padding: 0 15px 80px;
    }
    
    .create-header h1 {
        font-size: 2rem;
    }
    
    .create-option-card {
        padding: 20px;
    }
    
    .option-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
    
    .btn-option {
        justify-content: center;
    }
}

/* ================= TRAINING VIEW ================= */
.training-view-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.training-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.dark) .training-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.training-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text);
}

body:not(.dark) .training-header h1 {
    color: var(--text-dark);
}

.training-header .subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 20px;
}

.training-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.95rem;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

body:not(.dark) .meta-item {
    background: rgba(0, 0, 0, 0.05);
}

.meta-item i {
    color: var(--accent);
}

.days-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.day-card {
    background: var(--card-dark);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

body:not(.dark) .day-card {
    background: var(--card-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.day-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

body:not(.dark) .day-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.day-header {
    background: rgba(99, 102, 241, 0.1);
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.dark) .day-header {
    background: rgba(99, 102, 241, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.day-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

body:not(.dark) .day-header h2 {
    color: var(--text-dark);
}

.exercises-grid {
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

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

.exercise-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

body:not(.dark) .exercise-card {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.exercise-card:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent);
}

.exercise-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.exercise-icon {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exercise-icon i {
    color: var(--accent);
    font-size: 1.3rem;
}

.exercise-title {
    flex: 1;
}

.exercise-title h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 5px;
    line-height: 1.3;
}

body:not(.dark) .exercise-title h3 {
    color: var(--text-dark);
}

.muscle-badge {
    display: inline-block;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 5px;
}

.exercise-details {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.detail-item i {
    color: var(--accent);
    width: 16px;
    text-align: center;
}

.reps-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: auto;
}

.training-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.dark) .training-actions {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-start-training, .btn-edit-training, .btn-danger {
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    border: none;
}

.btn-start-training {
    background: var(--accent);
    color: white;
}

.btn-start-training:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.btn-edit-training {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body:not(.dark) .btn-edit-training {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
}

.btn-edit-training:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

body:not(.dark) .btn-edit-training:hover {
    background: rgba(0, 0, 0, 0.08);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--muted);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text);
}

body:not(.dark) .empty-state h3 {
    color: var(--text-dark);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .training-view-container {
        padding: 15px;
    }
    
    .training-header {
        padding: 20px;
    }
    
    .training-header h1 {
        font-size: 1.8rem;
    }
    
    .training-meta {
        gap: 10px;
    }
    
    .meta-item {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .training-actions {
        flex-direction: column;
    }
    
    .btn-start-training, .btn-edit-training, .btn-danger {
        width: 100%;
        justify-content: center;
    }
}
/* ================= VERIFY PAGE ================= */
.verify-container {
    max-width: 500px;
    margin: 100px auto 50px;
    padding: 40px;
    text-align: center;
    background: var(--card-dark);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

body:not(.dark) .verify-container {
    background: var(--card-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.verify-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.verify-success .verify-icon {
    color: #22c55e;
}

.verify-error .verify-icon {
    color: #ef4444;
}

.verify-container h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text);
}

body:not(.dark) .verify-container h2 {
    color: var(--text-dark);
}

.verify-message {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--muted);
}

.verify-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

@media (max-width: 768px) {
    .verify-container {
        margin: 80px 20px 40px;
        padding: 30px 20px;
    }

    .verify-actions {
        flex-direction: column;
    }
}

/* ================= FIX FOR WORKOUT VIEW OVERFLOW ================= */
.workout-exercise-container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.workout-header-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--card-dark);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
body:not(.dark) .workout-header-nav {
    background: var(--card-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
}
.workout-header-nav .btn-back-to-list {
    flex: 1;
    min-width: 150px;
    margin-bottom: 10px;
}

.workout-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.nav-info {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
    padding: 6px 15px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.nav-info::before {
    content: "🎯";
    font-size: 0.9rem;
}

.nav-exercises {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

body:not(.dark) .nav-dot {
    background: rgba(0, 0, 0, 0.2);
}

.nav-dot.active {
    background: var(--accent);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.nav-dot.completed {
    background: #22c55e;
}

.rest-time-control-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(59, 130, 246, 0.1);
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    min-width: 280px;
    justify-content: center;
}

.rest-time-control-compact i {
    color: #3b82f6;
    font-size: 1.1rem;
}

.rest-time-control-compact input {
    width: 70px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    text-align: center;
    font-weight: 600;
    transition: all 0.2s;
}

body:not(.dark) .rest-time-control-compact input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--text-dark);
}

.rest-time-control-compact input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.rest-time-control-compact span {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
}

.rest-time-control-compact .btn-small {
    padding: 8px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.rest-time-control-compact .btn-small:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.rest-time-control-compact .btn-small::before {
    content: "⏱️";
    font-size: 0.9rem;
}


@media (max-width: 768px) {
    .workout-header-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .workout-header-nav .btn-back-to-list,
    .workout-nav,
    .rest-time-control-compact {
        width: 100%;
        min-width: unset;
        justify-content: center;
    }

    .rest-time-control-compact {
        justify-content: center;
    }

    .sets-input-container {
        overflow-x: hidden;
    }

    .set-input-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 15px;
    }

    .set-number {
        align-self: flex-start;
        margin-bottom: 5px;
    }

    .set-inputs {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .weight-input,
    .reps-input {
        width: 100%;
        text-align: center;
    }

    .set-actions {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .previous-sets-section,
    .add-sets-section,
    .next-exercises {
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
        padding: 15px;
    }

    .sets-table {
        overflow-x: auto;
        display: block;
    }

    .sets-header,
    .set-row {
        min-width: 300px;
    }
}

/* Dodaj še to za boljšo responsivnost na telefonih */
@media (max-width: 480px) {
    .workout-exercise-container {
        padding: 10px;
    }

    .exercise-name {
        font-size: 1.5rem;
    }

    .exercise-details {
        flex-direction: column;
        gap: 5px;
    }

    .nav-dot {
        width: 10px;
        height: 10px;
    }

    .nav-info {
        font-size: 0.9rem;
    }

    .rest-time-control-compact input {
        width: 60px;
    }

    .sets-actions {
        flex-direction: column;
        gap: 10px;
    }

    .sets-actions button {
        width: 100%;
    }
}
/* ================= MODERN HOME PAGE REDESIGN ================= */
.hero {
    text-align: center;
    padding: 60px 20px 80px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 40px;
    background: var(--bg-dark);
}

body:not(.dark) .hero {
    background: var(--bg-light);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    z-index: 0;
    animation: pulse 20s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.site-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light), #8b5cf6, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: gradientFlow 8s ease infinite;
    letter-spacing: -1px;
    line-height: 1;
    text-shadow: 0 4px 30px rgba(99, 102, 241, 0.3);
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

body:not(.dark) .hero-subtitle {
    color: var(--text-dark);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease 0.4s both;
    line-height: 1.6;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 50px auto 30px;
    max-width: 800px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.stat-box {
    text-align: center;
    padding: 20px;
    min-width: 140px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 5px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* App Showcase */
.app-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin: 80px 0;
    padding: 40px;
    background: var(--card-dark);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.dark) .app-showcase {
    background: var(--card-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.showcase-image {
    position: relative;
}

.phone-mockup {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    position: relative;
    animation: float 6s ease-in-out infinite;
    background: url(phone.jpg);
}

.phone-mockup img {
    width: 100%;
    height: auto;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.showcase-content {
    padding: 20px;
}

.showcase-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.2;
}

body:not(.dark) .showcase-content h2 {
    color: var(--text-dark);
}

.showcase-content p {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.app-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.app-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 500;
}

body:not(.dark) .app-feature {
    color: var(--text-dark);
}

.app-feature i {
    color: var(--accent);
    font-size: 1.2rem;
    width: 24px;
}

/* Features Section Enhanced */
.features-section {
    margin: 80px 0;
    padding: 60px 0;
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 2px;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 60px;
    position: relative;
}

body:not(.dark) .section-title {
    color: var(--text-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--card-dark);
    border-radius: var(--radius);
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

body:not(.dark) .feature-card {
    background: var(--card-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    border-color: var(--accent);
}

body:not(.dark) .feature-card:hover {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.feature-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 32px;
    z-index: -1;
    opacity: 0.2;
    filter: blur(10px);
}

.feature-card:nth-child(2) .feature-icon-wrapper {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.feature-card:nth-child(3) .feature-icon-wrapper {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.feature-icon {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
    line-height: 1.3;
}

body:not(.dark) .feature-card h3 {
    color: var(--text-dark);
}

.feature-card p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 25px;
}

/* How It Works */
.how-it-works {
    margin: 80px 0;
    padding: 60px 0;
    background: var(--card-dark);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

body:not(.dark) .how-it-works {
    background: var(--card-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light), #8b5cf6);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 40px 20px;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 80px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

body:not(.dark) .steps-container::before {
    background: rgba(0, 0, 0, 0.1);
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin: 0 auto 25px;
    position: relative;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.step h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
}

body:not(.dark) .step h3 {
    color: var(--text-dark);
}

.step p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 1rem;
}

/* Testimonials */
.testimonials {
    margin: 80px 0;
    padding: 60px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--card-dark);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

body:not(.dark) .testimonial-card {
    background: var(--card-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.testimonial-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 5px;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--muted);
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: var(--radius);
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-section p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn-primary, .cta-btn-secondary {
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.cta-btn-primary {
    background: white;
    color: var(--accent);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.cta-btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
}

.cta-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .app-showcase {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .steps-container {
        flex-direction: column;
        gap: 60px;
    }
    
    .steps-container::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-box {
        min-width: 120px;
        padding: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        padding: 60px 20px;
    }
    
    .cta-section h2 {
        font-size: 2.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn-primary, .cta-btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 15px 60px;
    }
    
    .site-title {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .app-showcase {
        padding: 20px;
    }
}
/* ================= IMPROVED PREMIUM OFFER SECTION ================= */
.premium-offer {
    background: var(--card-dark);
    border-radius: var(--radius);
    padding: 60px 40px;
    margin: 80px 0;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.dark) .premium-offer {
    background: var(--card-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.premium-offer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #ea580c);
}

.premium-offer::after {
    content: '⭐';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    opacity: 0.2;
    animation: spin 15s linear infinite;
}

.premium-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #f59e0b;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.premium-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 15px;
    line-height: 1.1;
}

body:not(.dark) .premium-header h2 {
    color: var(--text-dark);
}

.premium-header p {
    font-size: 1.3rem;
    color: var(--muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.premium-highlight {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

/* Premium Features Grid */
.premium-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.premium-feature-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 35px 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

body:not(.dark) .premium-feature-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.premium-feature-card:hover {
    transform: translateY(-10px);
    border-color: #f59e0b;
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15);
}

.premium-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.premium-feature-card:hover::before {
    transform: scaleX(1);
}

.premium-feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.1));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: #f59e0b;
    font-size: 1.8rem;
}

.premium-feature-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
    line-height: 1.3;
}

body:not(.dark) .premium-feature-card h4 {
    color: var(--text-dark);
}

.premium-feature-card p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 20px;
}

.premium-tag {
    display: inline-block;
    background: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Price Comparison */
.price-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.price-card {
    background: var(--card-dark);
    border-radius: 25px;
    padding: 40px 30px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

body:not(.dark) .price-card {
    background: var(--card-light);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.price-card.basic:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.price-card.premium {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05), rgba(245, 158, 11, 0.05));
    position: relative;
    overflow: hidden;
}

.price-card.premium::before {
    content: 'POPULARNO';
    position: absolute;
    top: 20px;
    right: -35px;
    background: #f59e0b;
    color: #7c2d12;
    padding: 8px 40px;
    font-size: 0.8rem;
    font-weight: 700;
    transform: rotate(45deg);
}

.price-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
}

body:not(.dark) .price-card h3 {
    color: var(--text-dark);
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    line-height: 1;
}

.price-card.basic .price-amount {
    color: var(--text);
}

.price-card.premium .price-amount {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 30px;
}

.price-features {
    margin: 30px 0;
    text-align: left;
}

.price-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--text);
}

body:not(.dark) .price-feature {
    color: var(--text-dark);
}

.price-feature i {
    width: 24px;
    font-size: 1.1rem;
}

.price-card.basic .price-feature i {
    color: var(--accent);
}

.price-card.premium .price-feature i {
    color: #f59e0b;
}

.price-feature.disabled {
    color: var(--muted);
    opacity: 0.6;
}

.price-feature.disabled i {
    color: var(--muted);
}

.btn-price {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.price-card.basic .btn-price {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    border: 2px solid var(--accent);
}

.price-card.basic .btn-price:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
}

.price-card.premium .btn-price {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #7c2d12;
    font-weight: 800;
}

.price-card.premium .btn-price:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

/* Premium Benefits */
.premium-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body:not(.dark) .premium-benefits {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.benefit-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

body:not(.dark) .benefit-content h4 {
    color: var(--text-dark);
}

.benefit-content p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.5;
}

/* Premium CTA */
.premium-cta-container {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.1));
    border-radius: 25px;
    border: 2px solid rgba(251, 191, 36, 0.3);
    position: relative;
    overflow: hidden;
}

.premium-cta-container h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 15px;
}

body:not(.dark) .premium-cta-container h3 {
    color: var(--text-dark);
}

.premium-cta-container p {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.trial-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(251, 191, 36, 0.2);
    color: #f59e0b;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 30px;
    border: 2px dashed #f59e0b;
}

.btn-premium-cta {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 50px;
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #7c2d12;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-premium-cta:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.4);
}

/* Responsive Design for Premium Section */
@media (max-width: 1024px) {
    .price-comparison {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .premium-offer {
        padding: 40px 20px;
    }
    
    .premium-header h2 {
        font-size: 2.2rem;
    }
    
    .premium-header p {
        font-size: 1.1rem;
    }
    
    .premium-features-grid {
        grid-template-columns: 1fr;
    }
    
    .premium-benefits {
        padding: 30px 20px;
        grid-template-columns: 1fr;
    }
    
    .premium-cta-container {
        padding: 30px 20px;
    }
    
    .premium-cta-container h3 {
        font-size: 1.8rem;
    }
    
    .btn-premium-cta {
        padding: 18px 30px;
        font-size: 1.1rem;
    }
    
    .price-card.premium::before {
        font-size: 0.7rem;
        right: -30px;
        padding: 6px 30px;
    }
}

@media (max-width: 480px) {
    .premium-offer {
        margin: 40px 0;
    }
    
    .premium-badge {
        padding: 8px 20px;
        font-size: 1rem;
    }
    
    .premium-feature-card {
        padding: 25px 20px;
    }
    
    .price-card {
        padding: 30px 20px;
    }
    
    .price-amount {
        font-size: 2.8rem;
    }
}


/* ================= EDIT MODE STYLES ================= */
/* Stili za urejanje treninga – vnosna polja, gumbi za brisanje, dodajanje in shranjevanje */

/* Ko je urejanje aktivno, prikažemo vsebino */
#trainingContent[style*="display: block"] {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.dark) #trainingContent[style*="display: block"] {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Seznami (ul) v načinu urejanja */
#trainingContent ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Vsaka vaja (li) – vsebuje input in gumb za brisanje */
#trainingContent li {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

body:not(.dark) #trainingContent li {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

#trainingContent li:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent);
}

/* Vnosno polje za vajo */
.exercise-edit {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.2s;
}

body:not(.dark) .exercise-edit {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
}

.exercise-edit:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

/* Gumb za brisanje vaje (rdeč X) */
.edit-control.remove-exercise {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.edit-control.remove-exercise:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

/* Gumb za dodajanje nove vaje (pod vsakim seznamom) */
.edit-control.add-exercise {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    margin-top: 10px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 50px;
    color: #22c55e;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

body:not(.dark) .edit-control.add-exercise {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.edit-control.add-exercise:hover {
    background: #22c55e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.3);
}

.edit-control.add-exercise i {
    font-size: 1rem;
}

/* Gumb za shranjevanje sprememb */
.edit-control.save-training {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 30px auto 0;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.edit-control.save-training:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

/* Prilagoditev za temni/svetli način (barve se že samodejno prilagajajo preko spremenljivk) */