/* public/css/style.css */
/* Premium Glassmorphic i Mobilni-prvi stilski sistem za SMART FIT ZONE */

:root {
    --bg-dark: #0a0c10;
    --bg-card: rgba(18, 22, 28, 0.65);
    --bg-card-hover: rgba(26, 32, 40, 0.8);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-glow: rgba(57, 255, 20, 0.25);
    
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    
    --neon-green: #39FF14;
    --neon-green-glow: rgba(57, 255, 20, 0.4);
    --neon-cyan: #00f2fe;
    --neon-cyan-glow: rgba(0, 242, 254, 0.4);
    
    --color-danger: #ef4444;
    --color-warning: #f59e0b;
    --color-success: #10b981;
    
    --font-main: 'Outfit', sans-serif;
    --nav-height: 72px;
    --header-height: 64px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    height: 100%;
    height: -webkit-fill-available;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    min-height: -webkit-fill-available;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Premium Pozadinski Efekat Sjaja --- */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 1;
    opacity: 0.45;
    pointer-events: none;
}

.bg-glow-1 {
    width: 300px;
    height: 300px;
    background: var(--neon-green);
    top: -50px;
    left: -100px;
    animation: pulse-glow 8s infinite alternate;
}

.bg-glow-2 {
    width: 400px;
    height: 400px;
    background: var(--neon-cyan);
    bottom: -100px;
    right: -150px;
    animation: pulse-glow 12s infinite alternate-reverse;
}

@keyframes pulse-glow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.35; }
    100% { transform: scale(1.2) translate(50px, 30px); opacity: 0.55; }
}

/* --- Glavni Kontejner Aplikacije (Mobilni Prikaz) --- */
.app-container {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    max-width: 480px; /* Standardni mobilni aspekt */
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* --- Gornje Zaglavlje --- */
.app-header {
    height: var(--header-height);
    flex-shrink: 0;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(10, 12, 16, 0.4);
    z-index: 10;
}

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

.logo-icon {
    font-size: 22px;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px var(--neon-green-glow));
    animation: heartbeat 2s infinite ease-in-out;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
}

.brand-subtitle {
    font-size: 10px;
    font-weight: 500;
    color: var(--neon-green);
    letter-spacing: 2px;
    margin-top: -3px;
}

.location-badge {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-badge:hover {
    border-color: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green-glow);
}

.location-badge i {
    color: var(--neon-green);
}

/* --- Motivacija i Tiker --- */
.motivational-bar {
    flex-shrink: 0;
    background: rgba(57, 255, 20, 0.06);
    border-bottom: 1px solid rgba(57, 255, 20, 0.15);
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

#motivation-text {
    animation: scroll-text 15s linear infinite;
    display: inline-block;
    padding-left: 100%;
}

@keyframes scroll-text {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* --- Glavni Sadržaj (Skrolovanje) --- */
.app-main {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px 16px 20px 16px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Sakrivanje scrollbar-a */
.app-main::-webkit-scrollbar {
    display: none;
}

/* --- PWA Donji Meni --- */
.app-nav {
    flex-shrink: 0;
    min-height: var(--nav-height);
    position: relative;
    width: 100%;
    background: rgba(13, 15, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-glass);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    z-index: 100;
    padding-top: 4px;
    padding-bottom: max(6px, env(safe-area-inset-bottom, 0px));
}

.nav-item {
    background: none;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-family: var(--font-main);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-item i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.nav-item.active {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green-glow);
}

.nav-item.active i {
    transform: translateY(-4px) scale(1.1);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    width: 25px;
    height: 3px;
    background: var(--neon-green);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 10px var(--neon-green);
}

/* --- Premium Glassmorphic Karte --- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.12);
}

.glass-card h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.glass-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.glass-card p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
}

.text-neon {
    color: var(--neon-green) !important;
}

.text-muted {
    color: var(--text-muted);
}

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

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 11px;
    margin: 15px 0;
    font-weight: 600;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-glass);
}

.divider span {
    padding: 0 10px;
}

/* --- Formular Kontrole --- */
.form-group {
    margin-bottom: 16px;
}

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

.form-input, .form-select {
    width: 100%;
    background: rgba(10, 12, 16, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 13px;
    transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green-glow);
}

/* --- Dugmad --- */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-green), #22c55e);
    color: #052e08;
    box-shadow: 0 4px 15px var(--neon-green-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--neon-green-glow);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.btn-outline {
    background: none;
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--neon-green);
    background: rgba(57, 255, 20, 0.05);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-text {
    background: none;
    border: none;
    color: var(--neon-green);
    padding: 0;
    text-transform: none;
}

.btn-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-large {
    width: 64px;
    height: 64px;
}

/* --- QR Skener --- */
.scanner-intro {
    text-align: center;
}

.scanner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.qr-reader-window {
    width: 100%;
    aspect-ratio: 1;
    max-width: 320px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px dashed var(--border-glass);
    background: rgba(10, 12, 16, 0.4);
    position: relative;
}

.qr-reader-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
    animation: scanner-beam 3s infinite linear;
    z-index: 5;
}

@keyframes scanner-beam {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.manual-entry-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.manual-entry-group input {
    flex: 1;
}

/* --- Detalji o Spravi --- */
.back-btn {
    margin-bottom: 15px;
    font-size: 13px;
}

.eq-hero {
    position: relative;
    overflow: hidden;
}

.eq-tag {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 4px;
}

/* Video plejer */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border-glass);
    margin-bottom: 12px;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.safety-tip {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.safety-tip i {
    font-size: 14px;
    margin-top: 2px;
}

.text-warning {
    color: var(--color-warning);
}

/* Mišićne grupe */
.muscle-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.muscle-tag {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: var(--neon-cyan);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.muscle-tag.secondary {
    background: var(--bg-card);
    border-color: var(--border-glass);
    color: var(--text-muted);
}

/* Selektor nivoa */
.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.level-selector {
    display: flex;
    background: rgba(10, 12, 16, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 2px;
}

.lvl-btn {
    background: none;
    border: none;
    font-family: var(--font-main);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lvl-btn.active {
    background: var(--neon-green);
    color: #052e08;
    box-shadow: 0 2px 8px var(--neon-green-glow);
}

/* Lista vežbi */
.exercise-item {
    border-bottom: 1px solid var(--border-glass);
    padding: 12px 0;
}

.exercise-item:last-child {
    border-bottom: none;
}

.exercise-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.exercise-item p {
    font-size: 12px;
    margin-bottom: 8px;
}

.exercise-meta-row {
    display: flex;
    gap: 12px;
}

.meta-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-primary);
}

/* --- Preporuke --- */
.rec-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.rec-title i {
    font-size: 18px;
}

.rec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rec-item:hover {
    border-color: var(--neon-green);
    background: rgba(57, 255, 20, 0.03);
}

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

.rec-item-title {
    font-size: 13px;
    font-weight: 600;
}

.rec-item-sub {
    font-size: 10px;
    color: var(--neon-cyan);
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 2px;
}

.rec-item i {
    color: var(--neon-green);
}

/* --- Generisanje Treninga --- */
.level-btn-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.lvl-select-btn.active {
    border-color: var(--neon-green);
    color: var(--neon-green);
    background: rgba(57, 255, 20, 0.05);
    box-shadow: 0 0 10px var(--neon-green-glow);
}

/* Režim Aktivnog Treninga */
.workout-header-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
}

.active-badge {
    color: var(--neon-green);
    display: flex;
    align-items: center;
    gap: 5px;
}

.workout-progress {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.progress-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
    transition: width 0.5s ease;
}

#workout-progress-text {
    position: relative;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 2;
}

.active-exercise-card {
    position: relative;
}

.active-eq-name {
    font-size: 11px;
    color: var(--neon-green);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
}

.active-video-wrapper {
    aspect-ratio: 16/10;
    margin-top: 15px;
    margin-bottom: 0;
}

.workout-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.metric-box {
    background: rgba(10, 12, 16, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 8px;
    text-align: center;
}

.metric-box .label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.metric-box .value {
    font-size: 16px;
    font-weight: 800;
}

/* --- Tajmer --- */
.timer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.timer-display-circle {
    position: relative;
    width: 140px;
    height: 140px;
}

.timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 6;
}

.timer-fill {
    fill: none;
    stroke: var(--neon-green);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 283; /* 2 * PI * R (R=45) => ~283 */
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.1s linear;
}

.timer-text-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.timer-mode-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.timer-countdown {
    font-size: 28px;
    font-weight: 800;
    margin-top: 2px;
}

.timer-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.timer-mode-selectors {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 10px;
}

.workout-navigation-buttons {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 12px;
    margin-top: 20px;
}

/* Rezime Treninga */
.success-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(57, 255, 20, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.success-icon-wrap i {
    font-size: 40px;
    filter: drop-shadow(0 0 10px var(--neon-green-glow));
}

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

.summary-box {
    background: rgba(10, 12, 16, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 15px;
}

.summary-box .label {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 5px;
}

.summary-box .value {
    font-size: 20px;
    font-weight: 800;
}

/* --- Spisak Teretana --- */
.gyms-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.gym-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gym-item:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 242, 254, 0.02);
}

.gym-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gym-title {
    font-size: 14px;
    font-weight: 600;
}

.gym-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.gym-distance {
    font-size: 11px;
    font-weight: 700;
    color: var(--neon-green);
    background: rgba(57, 255, 20, 0.05);
    border: 1px solid rgba(57, 255, 20, 0.15);
    padding: 4px 8px;
    border-radius: 6px;
}

/* Profil korisnika */
.user-profile-card {
    text-align: center;
}

.profile-auth-buttons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.profile-auth-buttons button {
    flex: 1;
}

.profile-header-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    margin-bottom: 20px;
}

.user-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0c10;
    font-size: 24px;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--color-success);
}

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

.pstat {
    background: rgba(10, 12, 16, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 12px;
}

.pstat .label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.pstat .value {
    font-size: 20px;
    font-weight: 800;
}

/* --- Modali --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 10, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 500;
    padding: 20px;
    transition: all 0.3s ease;
}

.modal-content {
    width: 100%;
    max-width: 440px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    margin-bottom: 0 !important;
}

.modal-body {
    overflow-y: auto;
    max-height: calc(85vh - 70px);
    -webkit-overflow-scrolling: touch;
    padding-right: 4px;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 4px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.modal-header h3 {
    margin-bottom: 0;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

.close-btn:hover {
    color: white;
}

.text-danger {
    color: var(--color-danger);
}

/* --- Pomoćne klase za vidljivost ekrana --- */
.hidden-screen {
    display: none !important;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fade-in 0.3s ease;
}

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

@keyframes heartbeat {
    0% { transform: scale(1); }
    30% { transform: scale(1.1); }
    60% { transform: scale(1); }
}

/* Pulsirajući sjaj za "Sledeća sprava" dugme */
.pulse-glow {
    animation: pulse-glow-btn 1.5s infinite ease-in-out !important;
}

@keyframes pulse-glow-btn {
    0% {
        box-shadow: 0 4px 15px var(--neon-green-glow);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 25px rgba(57, 255, 20, 0.65);
        transform: scale(1.03);
    }
    100% {
        box-shadow: 0 4px 15px var(--neon-green-glow);
        transform: scale(1);
    }
}

/* Sleek Glassmorphic Language Toggle Button in Header */
.lang-toggle-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 5px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 26px;
    letter-spacing: 0.5px;
    font-family: var(--font-main);
}

.lang-toggle-btn:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan-glow);
}

.biometrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.biometrics-grid .form-group {
    margin-bottom: 0;
}

.rec-mini-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 15px;
}

/* Inline sets and reps editor styling */
.sets-editor-inline, .reps-editor-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.btn-sets-change, .btn-reps-change {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    border-radius: 6px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.btn-sets-change:hover, .btn-reps-change:hover {
    background: rgba(57, 255, 20, 0.1);
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 5px var(--neon-green-glow);
}

/* --- Responzivne optimizacije za sve veličine ekrana --- */
@media (max-width: 480px) {
    body {
        padding: 0;
    }
    .app-container {
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }
}

@media (max-height: 640px) {
    :root {
        --header-height: 52px;
        --nav-height: 58px;
    }
    .app-main {
        padding: 12px 12px 16px 12px;
    }
    .motivational-bar {
        padding: 4px 12px;
        font-size: 10px;
    }
}

/* --- ELEGANTNI JEDNOREDNI BANER ZA APLIKACIJU --- */
.app-banner {
    background: rgba(13, 17, 23, 0.94);
    border-bottom: 1px solid rgba(0, 242, 254, 0.3);
    padding: 6px 14px;
    height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 250;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.banner-left {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    white-space: nowrap;
}

.banner-icon {
    font-size: 15px;
    color: var(--neon-cyan);
    flex-shrink: 0;
}

.banner-title {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
}

.banner-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-banner-action {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-green));
    color: #05070a;
    border: none;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-banner-action:active {
    transform: scale(0.95);
}

.banner-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.banner-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}
