:root {
    --bg-gradient-start: #0f172a;
    --bg-gradient-end: #1e293b;
    --card-radius: 1.1rem;
    --card-border: rgba(148, 163, 184, 0.35);
    --card-bg: rgba(15, 23, 42, 0.96);
    --card-shadow: 0 24px 60px rgba(15, 23, 42, 0.65);
    --accent-primary: #38bdf8;
    --accent-secondary: #818cf8;
    --accent-soft: rgba(56, 189, 248, 0.16);
    --text-muted: #94a3b8;
    --text-soft: #cbd5f5;
}

/* Global */

body {
    background: radial-gradient(circle at top left, var(--bg-gradient-start), #020617 55%) fixed;
    color: #e5e7eb;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.container {
    max-width: 1180px;
}

/* Navbar */

.navbar {
    background: radial-gradient(circle at top, rgba(15,23,42,0.95), rgba(15,23,42,0.85));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148,163,184,0.25);
}

.navbar-brand {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e5e7eb !important;
}

.navbar-brand::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    margin-right: 8px;
    background: radial-gradient(circle, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 0 14px rgba(56,189,248,0.7);
}

.navbar-nav .nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #cbd5f5;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-radius: 999px;
    padding-inline: 0.9rem;
    transition: all 0.18s ease-out;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
    color: #e5e7eb;
    background: radial-gradient(circle at top left, var(--accent-soft), rgba(129,140,248,0.12));
}

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

/* Titles */

.section-title {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e5e7eb;
}

.section-title + .text-muted {
    color: var(--text-muted) !important;
}

/* Cards */

.card-soft {
    border-radius: var(--card-radius);
    border: 1px solid var(--card-border);
    background: radial-gradient(circle at top left,
        rgba(15,23,42,0.98),
        rgba(15,23,42,0.92)
    );
    box-shadow: var(--card-shadow);
    color: #e5e7eb;
    overflow: hidden;
}

.card-soft-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
    background: linear-gradient(
        120deg,
        rgba(56,189,248,0.17),
        rgba(129,140,248,0.10),
        rgba(15,23,42,0.55)
    );
    padding: 0.8rem 1.1rem;
}

.card-soft-header .fw-semibold {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #e5e7eb;
}

.card-soft-body {
    padding: 1.1rem 1.25rem 1.3rem;
}

/* Buttons */

.btn-soft {
    border-radius: 999px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
}

.btn-primary:hover {
    filter: brightness(1.08);
}

.btn-outline-primary {
    border-color: rgba(129,140,248,0.9);
    color: #c7d2fe;
}

.btn-outline-primary:hover {
    background: rgba(129,140,248,0.15);
    color: #e5e7eb;
}

/* Pills, chips */

.pill-counter {
    border-radius: 999px;
    padding: 0.12rem 0.9rem;
    font-size: 0.7rem;
    border: 1px solid rgba(148, 163, 184, 0.8);
    color: var(--text-muted);
    background: rgba(15,23,42,0.85);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background-color: rgba(148, 163, 184, 0.16);
    font-size: 0.72rem;
    color: var(--text-soft);
}

.chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: radial-gradient(circle, var(--accent-primary), var(--accent-secondary));
}

/* List cards (mobile item rows) */

.list-card {
    border-radius: 0.95rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.65rem;
    background: radial-gradient(circle at top left,
        rgba(15,23,42,0.98),
        rgba(15,23,42,0.88)
    );
    box-shadow: 0 12px 32px rgba(15,23,42,0.7);
}

.list-card-title {
    font-weight: 600;
    color: #e5e7eb;
}

.list-card-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.list-card-meta {
    font-size: 0.78rem;
    color: #9ca3af;
}

.list-card a {
    color: #f9fafb;
    text-decoration: none;
}

.list-card a:hover {
    text-decoration: underline;
}

/* Tables */

.table {
    color: #e5e7eb;
}

.table thead {
    background: linear-gradient(120deg, rgba(15,23,42,0.8), rgba(15,23,42,0.7));
}

.table thead th {
    border-bottom-color: rgba(148,163,184,0.5);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.table tbody tr {
    border-color: rgba(55,65,81,0.7);
}

.table tbody tr:hover {
    background: rgba(15,23,42,0.85);
}

/* Forms */

.form-control,
.form-select {
    background-color: rgba(15,23,42,0.9);
    border-color: rgba(148,163,184,0.6);
    color: #e5e7eb;
    font-size: 0.9rem;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(15,23,42,0.98);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px rgba(56,189,248,0.6);
    color: #f9fafb;
}

.form-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* Alerts */

.alert {
    border-radius: 0.8rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: rgba(22,163,74,0.1);
    border-color: rgba(22,163,74,0.3);
    color: #bbf7d0;
}

.alert-danger {
    background-color: rgba(220,38,38,0.08);
    border-color: rgba(220,38,38,0.35);
    color: #fecaca;
}

/* Login */

body.bg-light {
    background: radial-gradient(circle at top left, #020617, #0f172a);
}

.card.shadow-sm {
    border-radius: 1.1rem;
    border: 1px solid rgba(148,163,184,0.35);
    background: radial-gradient(circle at top left,
        rgba(15,23,42,0.98),
        rgba(15,23,42,0.9)
    );
    box-shadow: 0 22px 55px rgba(15,23,42,0.8) !important;
    color: #e5e7eb;
}

.card.shadow-sm .form-control {
    background-color: rgba(15,23,42,0.95);
}

/* Small utilities */

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

/* Responsive tweaks */

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
        letter-spacing: 0.08em;
    }
    .card-soft-body {
        padding: 0.9rem 0.9rem 1.1rem;
    }
}

/* Ensure table body uses dark background */
.table tbody tr {
    background-color: rgba(15,23,42,0.96);
}

.table tbody td {
    border-color: rgba(51,65,85,0.8);
    font-size: 0.82rem;
}

/* Override any Bootstrap white backgrounds */
.card,
.table,


/* FORCE dark tables inside neo-glass kartica */
.card-soft .table,
.card-soft .table > :not(caption) > * > * {
    background-color: rgba(15,23,42,0.96) !important;
    color: #e5e7eb !important;
}

/* Header tablice */
.card-soft .table thead > tr > th {
    background: linear-gradient(
        120deg,
        rgba(15,23,42,0.95),
        rgba(15,23,42,0.85)
    ) !important;
    color: #9ca3af !important;
    border-bottom-color: rgba(148,163,184,0.6) !important;
}

/* Border između redova */
.card-soft .table tbody > tr > * {
    border-color: rgba(51,65,85,0.85) !important;
}

/* Hover efekt na redove */
.card-soft .table tbody > tr:hover > * {
    background-color: rgba(15,23,42,0.9) !important;
}

/* Dark stil i za disabled / readonly inpute unutar kartica */
.card-soft .form-control[readonly],
.card-soft .form-control:disabled {
    background-color: rgba(15,23,42,0.92) !important;
    color: #e5e7eb !important;
    border-color: rgba(148,163,184,0.6) !important;
    opacity: 1; /* makni sivo “izblijedjelo” */
}

/* Ako želiš da se vidi da je neaktivno, samo lagano posvijetli tekst: */
.card-soft .form-control[readonly],
.card-soft .form-control:disabled {
    color: #9ca3af !important;
}


/* Svjetliji placeholder u inputima unutar kartica */
.card-soft .form-control::placeholder {
    color: #cbd5f5 !important;   /* svjetlije */
    opacity: 0.85;               /* da se lijepo vidi */
}

/* za stare browsere (WebKit) */
.card-soft .form-control::-webkit-input-placeholder {
    color: #cbd5f5 !important;
    opacity: 0.85;
}
.card-soft .form-control:-ms-input-placeholder {
    color: #cbd5f5 !important;
}
.card-soft .form-control::-ms-input-placeholder {
    color: #cbd5f5 !important;
}

/* Dark tema i za autofill (korisničko ime / lozinka) */
.card-soft .form-control:-webkit-autofill,
.card-soft .form-control:-webkit-autofill:hover,
.card-soft .form-control:-webkit-autofill:focus,
.card-soft .form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(15,23,42,0.96) inset !important;
    box-shadow: 0 0 0 1000px rgba(15,23,42,0.96) inset !important;
    -webkit-text-fill-color: #e5e7eb !important;
    border-color: rgba(148,163,184,0.7) !important;
}

/* Za svaki slučaj i za lozinku */
.card-soft input[type="password"]:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px rgba(15,23,42,0.96) inset !important;
    -webkit-text-fill-color: #e5e7eb !important;
}


/* DARK MODAL – usklađeno s ostatkom aplikacije */
.modal-content {
    background: radial-gradient(circle at top left,
        rgba(15,23,42,0.98),
        rgba(15,23,42,0.90)
    ) !important;
    border-radius: 1rem;
    border: 1px solid rgba(148,163,184,0.45);
    box-shadow: 0 22px 55px rgba(15,23,42,0.9);
    color: #e5e7eb;
}

.modal-header {
    border-bottom: 1px solid rgba(148,163,184,0.35);
    padding: 0.8rem 1rem;
}

.modal-header .modal-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #cbd5f5;
}

.modal-footer {
    border-top: 1px solid rgba(148,163,184,0.35);
    padding: 0.75rem 1rem;
    background: linear-gradient(
        120deg,
        rgba(15,23,42,0.96),
        rgba(15,23,42,0.90)
    );
}

/* Tamna X-ikonica */
.btn-close {
    filter: invert(1) grayscale(1);
    opacity: 0.6;
}
.btn-close:hover {
    opacity: 1;
}

/* Inputi u modalu – isti stil kao u karticama */
.modal-content .form-control,
.modal-content .form-select {
    background-color: rgba(15,23,42,0.95);
    border-color: rgba(148,163,184,0.6);
    color: #e5e7eb;
}

.modal-content .form-control:focus,
.modal-content .form-select:focus {
    background-color: rgba(15,23,42,0.98);
    border-color: #38bdf8;
    box-shadow: 0 0 0 1px rgba(56,189,248,0.6);
}

/* Placeholder u modalu malo svjetliji */
.modal-content .form-control::placeholder {
    color: #cbd5f5;
    opacity: 0.85;
}
