* {
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, Arial, sans-serif;
}

:root {
    /* OSNOVNE BOJE */
    --color-primary: #009df2;
    --color-primary-dark: #005089;
    --color-accent: #F2BB00;
    --color-accent-hover: #d9a700;
    --color-danger: #ff2c2c;
    --color-danger-hover: #d91f1f;

    /* UI */
    --bg: #f3f4f6;
    --surface: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: #d1d5db;
    --border-soft: #e5e7eb;

    /* Sidebar / nav */
    --sidebar-bg: var(--color-primary-dark);
    --sidebar-hover: rgba(255, 255, 255, 0.10);
    --sidebar-text: #e5e7eb;

    /* Dugmad */
    --btn-save-bg: var(--color-accent);
    --btn-save-hover: var(--color-accent-hover);
    --btn-save-text: #111827;

    --btn-cancel-bg: #eef2f7;
    --btn-cancel-hover: var(--color-danger);
    --btn-cancel-text: #111827;
    --btn-cancel-hover-text: #ffffff;

    /* Akcije u tablicama */
    --action-edit-bg: #fff8d9;
    --action-edit-border: #f2d46b;
    --action-edit-text: #8a6500;
    --action-edit-hover-bg: var(--color-accent);
    --action-edit-hover-text: #111827;

    --action-delete-bg: #fff0f0;
    --action-delete-border: #ffc7c7;
    --action-delete-text: var(--color-danger);
    --action-delete-hover-bg: var(--color-danger);
    --action-delete-hover-text: #ffffff;

    --action-download-bg: #eef8ff;
    --action-download-border: #bfe5fb;
    --action-download-text: var(--color-primary-dark);
    --action-download-hover-bg: var(--color-primary);
    --action-download-hover-text: #ffffff;

    /* Alerti */
    --success-bg: #dcfce7;
    --success-text: #166534;
    --error-bg: #fee2e2;
    --error-text: #991b1b;

    /* Ostalo */
    --shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

/* LOGIN */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border-radius: 14px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

.login-box h1 {
    margin-top: 0;
    margin-bottom: 8px;
}

/* FORM */

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    font: inherit;
    color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 157, 242, 0.14);
}

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
    height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

button.btn {
    appearance: none;
    -webkit-appearance: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:focus-visible {
    outline: none;
}

.btn:not(.btn-light) {
    background: var(--btn-save-bg);
    color: var(--btn-save-text);
    border-color: var(--btn-save-bg);
}

.btn:not(.btn-light):hover {
    background: var(--btn-save-hover);
    color: var(--btn-save-text);
    border-color: var(--btn-save-hover);
}

.btn:not(.btn-light):focus-visible {
    box-shadow: 0 0 0 3px rgba(242, 187, 0, 0.18);
}

.btn-light {
    background: var(--btn-cancel-bg);
    color: var(--btn-cancel-text);
    border-color: var(--border);
}

.btn-light:hover {
    background: var(--btn-cancel-hover);
    color: var(--btn-cancel-hover-text);
    border-color: var(--btn-cancel-hover);
}

.btn-light:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 44, 44, 0.16);
}

/* ALERTS */

.alert {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.alert-error {
    background: var(--error-bg);
    color: var(--error-text);
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
}

/* APP LAYOUT */

.app {
    min-height: 100vh;
    display: flex;
}

.sidebar{
    width:260px;
    color:#fff;
    padding:24px 18px;
    position:relative;
    overflow:hidden;

    /* osnovni gradient */
    background:
        linear-gradient(
            180deg,
            var(--color-primary-dark) 0%,
            #003b66 100%
        );
}.sidebar::before{
    content:"";
    position:absolute;
    inset:0;

    background-image:url("/assets/img/login-bg.jpg");
    background-size:cover;
    background-position:center;

    filter:grayscale(100%);
    opacity:.25;

    mix-blend-mode:multiply;

    pointer-events:none;
}.sidebar > *{
    position:relative;
    z-index:1;
}

.content {
    flex: 1;
    padding: 24px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    background: var(--surface);
    padding: 16px 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* BRAND */

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 10px;
}

.brand {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    color: #fff;
}

/* NAV */

.nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    color: var(--sidebar-text);
    transition: all 0.2s ease;
}

.nav a:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.nav a i {
    width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CARDS */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 14px;
}

.stat {
    font-size: 30px;
    font-weight: 800;
    margin-top: 8px;
    color: var(--color-primary);
}

/* TABLES */

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border-soft);
    vertical-align: top;
}

.table th {
    font-weight: 700;
    color: var(--color-primary-dark);
}

/* FAQ */

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 18px;
    font-weight: 600;
    font-size: 16px;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 400;
    color: var(--color-primary-dark);
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-answer {
    padding: 0 18px 16px;
    color: #444;
    line-height: 1.6;
}

.faq-answer p {
    margin: 0;
}

/* CHECKBOX */

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

/* FILE PILL */

.file-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 13px;
    line-height: 1;
}

.file-pill i {
    color: var(--color-danger);
}

/* FORM ACTIONS */

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* TABLE ACTIONS */

.table-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.action-btn i {
    font-size: 14px;
}

.action-edit {
    background: var(--action-edit-bg);
    color: var(--action-edit-text);
    border-color: var(--action-edit-border);
}

.action-edit:hover {
    background: var(--action-edit-hover-bg);
    color: var(--action-edit-hover-text);
    border-color: var(--action-edit-hover-bg);
}

.action-delete {
    background: var(--action-delete-bg);
    color: var(--action-delete-text);
    border-color: var(--action-delete-border);
}

.action-delete:hover {
    background: var(--action-delete-hover-bg);
    color: var(--action-delete-hover-text);
    border-color: var(--action-delete-hover-bg);
}

.action-download {
    background: var(--action-download-bg);
    color: var(--action-download-text);
    border: 1px solid var(--action-download-border);
}

.action-download:hover {
    background: var(--action-download-hover-bg);
    color: var(--action-download-hover-text);
    border-color: var(--action-download-hover-bg);
}

/* TABLICE SPECIFIČNO */

.residents-table,
.buildings-table,
.income-docs-table,
.balances-table,
.building-docs-table,
.faq-table {
    width: 100%;
}

.residents-table th,
.residents-table td,
.buildings-table th,
.buildings-table td,
.income-docs-table th,
.income-docs-table td,
.balances-table th,
.balances-table td,
.building-docs-table th,
.building-docs-table td,
.faq-table th,
.faq-table td {
    vertical-align: middle;
}

/* Residents */
.residents-table {
    table-layout: fixed;
}

.residents-table th:nth-child(1),
.residents-table td:nth-child(1) {
    width: 60px;
}

.residents-table th:nth-child(3),
.residents-table td:nth-child(3) {
    width: 180px;
}

.residents-table th:nth-child(4),
.residents-table td:nth-child(4) {
    width: 180px;
}

.residents-table th:nth-child(5),
.residents-table td:nth-child(5) {
    width: 110px;
    text-align: right;
}

.residents-table th:nth-child(2),
.residents-table td:nth-child(2) {
    width: auto;
}

/* Buildings */
.buildings-table th:nth-child(1),
.buildings-table td:nth-child(1) {
    width: 60px;
}

.buildings-table th:nth-child(4),
.buildings-table td:nth-child(4) {
    width: 140px;
}

.buildings-table th:nth-child(5),
.buildings-table td:nth-child(5) {
    width: 90px;
}

.buildings-table th:nth-child(6),
.buildings-table td:nth-child(6) {
    width: 110px;
    text-align: right;
}

/* Income docs */
.income-docs-table th:nth-child(1),
.income-docs-table td:nth-child(1) {
    width: 110px;
}

.income-docs-table th:nth-child(3),
.income-docs-table td:nth-child(3) {
    width: 220px;
}

.income-docs-table th:nth-child(4),
.income-docs-table td:nth-child(4) {
    width: 100px;
    text-align: right;
}

/* Balances */
.balances-table th:nth-child(1),
.balances-table td:nth-child(1) {
    width: 120px;
}

.balances-table th:nth-child(3),
.balances-table td:nth-child(3) {
    width: 180px;
}

.balances-table th:nth-child(4),
.balances-table td:nth-child(4) {
    width: 100px;
    text-align: right;
}

/* Building docs */
.building-docs-table th:nth-child(1),
.building-docs-table td:nth-child(1) {
    width: 110px;
}

.building-docs-table th:nth-child(3),
.building-docs-table td:nth-child(3) {
    width: 220px;
}

.building-docs-table th:nth-child(4),
.building-docs-table td:nth-child(4) {
    width: 100px;
    text-align: right;
}

/* FAQ */
.faq-table th:nth-child(3),
.faq-table td:nth-child(3) {
    width: 100px;
    text-align: right;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .app {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .topbar {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .btn {
        min-width: auto;
    }

    .residents-table th:nth-child(3),
    .residents-table td:nth-child(3) {
        width: 140px;
    }

    .residents-table th:nth-child(4),
    .residents-table td:nth-child(4) {
        width: 140px;
    }

    .residents-table th:nth-child(5),
    .residents-table td:nth-child(5) {
        width: 96px;
    }
}

.mobile-topbar{
    display:none;
}

.sidebar-overlay{
    display:none;
}

.sidebar-mobile-head{
    display:none;
}

@media (max-width: 900px){
    .mobile-topbar{
        display:flex;
        align-items:center;
        gap:12px;
        padding:14px 16px;
        background:#fff;
        border-bottom:1px solid var(--border-soft);
        position:sticky;
        top:0;
        z-index:1001;
    }

    .mobile-menu-btn{
        width:42px;
        height:42px;
        border:none;
        border-radius:10px;
        background:var(--color-primary);
        color:#fff;
        display:inline-flex;
        align-items:center;
        justify-content:center;
        cursor:pointer;
        font-size:18px;
    }

    .mobile-menu-btn:hover{
        background:var(--color-primary-dark);
    }

    .mobile-topbar-title{
        font-size:16px;
        font-weight:700;
        color:var(--color-primary-dark);
    }

    .sidebar{
        position:fixed;
        top:0;
        left:0;
        width:280px;
        max-width:85vw;
        height:100vh;
        z-index:1100;
        transform:translateX(-100%);
        transition:transform .25s ease;
        overflow-y:auto;
    }

    .sidebar.is-open{
        transform:translateX(0);
    }

    .sidebar-overlay{
        position:fixed;
        inset:0;
        background:rgba(0,0,0,0.45);
        z-index:1050;
    }

    .sidebar-overlay.is-open{
        display:block;
    }

   .sidebar-mobile-head{
    display:flex;
    justify-content:flex-end;
    margin-bottom:12px;
}
    .sidebar-close-btn{
        width:38px;
        height:38px;
        border:none;
        border-radius:10px;
        background:rgba(255,255,255,0.12);
        color:#fff;
        display:inline-flex;
        align-items:center;
        justify-content:center;
        cursor:pointer;
        font-size:18px;
    }

    .sidebar-close-btn:hover{
        background:rgba(255,255,255,0.2);
    }

    .content{
        padding:18px;
    }

    .topbar{
        display:none;
    }
}

.dashboard-intro{
margin-top:6px;
color:var(--muted);
font-size:15px;
line-height:1.5;
}

.user-name{
color:var(--color-primary);
font-weight:700;
}

.dashboard-intro{
    margin-top:6px;
    margin-bottom:20px;
    color:var(--muted);
    font-size:15px;
    line-height:1.6;
    max-width:900px;
}

.card-note{
    margin-top:10px;
    margin-bottom:0;
    color:var(--muted);
    font-size:14px;
    line-height:1.5;
}

/* MOBILNA PREGLEDNOST TABLICA */

.table-wrap{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
}

.table{
    width:100%;
}

.table th,
.table td{
    vertical-align:middle;
}

@media (max-width: 768px){

    .table-wrap{
        overflow-x:auto;
        padding-bottom:6px;
    }

    .table{
        min-width:680px;
    }

    .table th,
    .table td{
        padding:14px 12px;
        font-size:14px;
        line-height:1.4;
        white-space:normal;
        word-break:break-word;
    }

    .table th{
        white-space:nowrap;
    }

    /* dokument kolone da imaju zraka */
    .file-pill{
        max-width:220px;
        white-space:normal;
        line-height:1.25;
    }

    /* akcije desno i da se ne lome */
    .table-actions{
        justify-content:flex-end;
        align-items:center;
        gap:8px;
        flex-wrap:nowrap;
        white-space:nowrap;
    }

    .action-btn{
        flex:0 0 auto;
    }

    /* obični download linkovi na portalu */
    td a i.fa-download{
        margin-right:6px;
    }
}

@media (max-width: 768px){

    .table td[style*="white-space:nowrap"]{
        white-space:nowrap !important;
    }

    .table td[style*="white-space:nowrap"] a{
        display:inline-flex;
        align-items:center;
        gap:6px;
        white-space:nowrap;
    }
}

@media (max-width: 768px){

    .residents-table{
        min-width:720px;
        table-layout:auto;
    }

    .residents-table th:nth-child(1),
    .residents-table td:nth-child(1){
        min-width:60px;
    }

    .residents-table th:nth-child(2),
    .residents-table td:nth-child(2){
        min-width:180px;
    }

    .residents-table th:nth-child(3),
    .residents-table td:nth-child(3){
        min-width:160px;
    }

    .residents-table th:nth-child(4),
    .residents-table td:nth-child(4){
        min-width:160px;
    }

    .residents-table th:nth-child(5),
    .residents-table td:nth-child(5){
        min-width:90px;
        text-align:right;
    }

    .buildings-table{
        min-width:760px;
        table-layout:auto;
    }

    .balances-table{
        min-width:560px;
        table-layout:auto;
    }

    .building-docs-table,
    .income-docs-table{
        min-width:760px;
        table-layout:auto;
    }

    .faq-table{
        min-width:720px;
        table-layout:auto;
    }
}

@media (max-width: 520px){

    .table td[style*="white-space:nowrap"] a{
        font-size:0;
    }

    .table td[style*="white-space:nowrap"] a i{
        font-size:16px;
        margin-right:0;
    }
}

/* =========================================================
   MOBILE TABLE CARDS - PORTAL I ADMIN
   bez data-label, preko nth-child po tablicama
   ========================================================= */

@media (max-width: 768px){

    .table-wrap{
        overflow-x:visible;
        padding-bottom:0;
    }

    .table{
        min-width:0 !important;
        width:100%;
        border-collapse:separate;
        border-spacing:0;
    }

    .table thead{
        display:none;
    }

    .table tbody{
        display:block;
    }

    .table tr{
        display:block;
        background:var(--surface);
        border:1px solid var(--border-soft);
        border-radius:12px;
        padding:14px 14px 10px;
        margin-bottom:12px;
        box-shadow:0 2px 10px rgba(0,0,0,0.04);
    }

    .table td{
        display:block;
        width:100% !important;
        min-width:0 !important;
        text-align:left !important;
        border:none;
        padding:0 0 10px;
        white-space:normal !important;
        word-break:break-word;
    }

    .table td:last-child{
        padding-bottom:0;
    }

    .table td::before{
        display:block;
        margin-bottom:4px;
        font-size:12px;
        font-weight:700;
        color:var(--color-primary-dark);
        text-transform:none;
        letter-spacing:.01em;
    }

    .file-pill{
        max-width:100%;
        white-space:normal;
        line-height:1.3;
    }

    .table-actions{
        justify-content:flex-start;
    }

    .action-btn{
        flex:0 0 auto;
    }

    /* portal obični download linkovi */
    td[style*="white-space:nowrap"] a,
    .table td a.download-link{
        display:inline-flex;
        align-items:center;
        gap:6px;
        white-space:nowrap;
    }

    /* =====================================================
       PORTAL - KARTICA STANARA / DOKUMENTI / PRIHODI
       3 kolone: Datum / Dokument / Preuzmi
       ===================================================== */

    .table:not(.residents-table):not(.buildings-table):not(.balances-table):not(.faq-table):not(.building-docs-table):not(.income-docs-table) td:nth-child(1)::before{
        content:"Datum";
    }

    .table:not(.residents-table):not(.buildings-table):not(.balances-table):not(.faq-table):not(.building-docs-table):not(.income-docs-table) td:nth-child(2)::before{
        content:"Dokument";
    }

    .table:not(.residents-table):not(.buildings-table):not(.balances-table):not(.faq-table):not(.building-docs-table):not(.income-docs-table) td:nth-child(3)::before{
        content:"Preuzimanje";
    }

    /* =====================================================
       ADMIN - STANARI
       ===================================================== */

    .residents-table td:nth-child(1)::before{ content:"ID"; }
    .residents-table td:nth-child(2)::before{ content:"Ime i prezime"; }
    .residents-table td:nth-child(3)::before{ content:"Korisničko ime"; }
    .residents-table td:nth-child(4)::before{ content:"Zgrada"; }
    .residents-table td:nth-child(5)::before{ content:"Akcije"; }

    /* =====================================================
       ADMIN - ZGRADE
       ===================================================== */

    .buildings-table td:nth-child(1)::before{ content:"ID"; }
    .buildings-table td:nth-child(2)::before{ content:"Naziv"; }
    .buildings-table td:nth-child(3)::before{ content:"Adresa"; }
    .buildings-table td:nth-child(4)::before{ content:"Grad"; }
    .buildings-table td:nth-child(5)::before{ content:"Stanara"; }
    .buildings-table td:nth-child(6)::before{ content:"Akcije"; }

    /* =====================================================
       ADMIN - STANJA RAČUNA
       ===================================================== */

    .balances-table td:nth-child(1)::before{ content:"Datum"; }
    .balances-table td:nth-child(2)::before{ content:"Zgrada"; }
    .balances-table td:nth-child(3)::before{ content:"Stanje računa"; }
    .balances-table td:nth-child(4)::before{ content:"Akcije"; }

    /* =====================================================
       ADMIN - FAQ
       ===================================================== */

    .faq-table td:nth-child(1)::before{ content:"Pitanje"; }
    .faq-table td:nth-child(2)::before{ content:"Odgovor"; }
    .faq-table td:nth-child(3)::before{ content:"Akcije"; }

    /* =====================================================
       ADMIN - DOKUMENTI / PRIHODI I TROŠKOVI
       4 kolone: Datum / Dokument / Zgrada / Akcije
       ===================================================== */

    .building-docs-table td:nth-child(1)::before,
    .income-docs-table td:nth-child(1)::before{
        content:"Datum";
    }

    .building-docs-table td:nth-child(2)::before,
    .income-docs-table td:nth-child(2)::before{
        content:"Dokument";
    }

    .building-docs-table td:nth-child(3)::before,
    .income-docs-table td:nth-child(3)::before{
        content:"Zgrada";
    }

    .building-docs-table td:nth-child(4)::before,
    .income-docs-table td:nth-child(4)::before{
        content:"Akcije";
    }

    /* ako negdje ostane običan download link s tekstom */
    td[style*="white-space:nowrap"] a{
        font-size:14px;
    }
}

.dashboard-card-link{
    display:block;
    color:inherit;
    transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    border:1px solid transparent;
}

.dashboard-card-link:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 24px rgba(0,0,0,0.08);
    border-color:#dbeafe;
}

.dashboard-card-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:14px;
}

.dashboard-card-icon{
    width:44px;
    height:44px;
    border-radius:12px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#eef8ff;
    color:var(--color-primary-dark);
    font-size:18px;
}

.dashboard-card-arrow{
    color:var(--muted);
    font-size:14px;
    transition:transform .2s ease, color .2s ease;
}

.dashboard-card-link:hover .dashboard-card-arrow{
    color:var(--color-primary);
    transform:translateX(3px);
}

.dashboard-card-link h3{
    margin-bottom:8px;
}

.dashboard-card-link small{
    display:block;
    margin-top:6px;
    color:var(--muted);
    font-size:13px;
}

.dashboard-cards .card-note{
    margin-top:8px;
}
/* PROFILE CARD */

.profile-card-header{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:18px;
}

.profile-card-header h3{
    margin:0;
    line-height:1;
}

.profile-icon{
    width:40px;
    height:40px;
    border-radius:10px;
    background:#eef8ff;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--color-primary-dark);
    font-size:16px;
    flex-shrink:0;
}

.profile-info{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:14px;
}

.profile-row{
    display:flex;
    align-items:center;
    gap:12px;
    background:#f9fafb;
    padding:12px 14px;
    border-radius:10px;
}

.profile-row i{
    color:var(--color-primary);
    font-size:16px;
    width:20px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.profile-label{
    display:block;
    font-size:12px;
    color:var(--muted);
    margin-bottom:2px;
}

.profile-link{
    text-decoration:none;
    color:inherit;
    transition:all .2s ease;
}

.profile-link:hover{
    background:#eef8ff;
    transform:translateY(-1px);
}

.brand-wrap{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:20px;
}

.brand-left{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
}

.brand{
    font-size:16px;
    font-weight:700;
    margin:0;
    line-height:1.2;
    color:#fff;
}

.sidebar-close-btn{
    display:none;
}

@media (max-width: 900px){

    .sidebar{
        position:fixed;
        top:0;
        left:0;
        width:340px;
        max-width:92vw;
        height:100vh;
        z-index:1100;
        transform:translateX(-100%);
        transition:transform .25s ease;
        overflow-y:auto;
        padding:20px 16px 24px;
    }

    .sidebar-close-btn{
        display:inline-flex;
        width:40px;
        height:40px;
        border:none;
        border-radius:10px;
        background:rgba(255,255,255,0.12);
        color:#fff;
        align-items:center;
        justify-content:center;
        cursor:pointer;
        font-size:18px;
        flex-shrink:0;
    }

    .sidebar-close-btn:hover{
        background:rgba(255,255,255,0.2);
    }

    .brand-wrap{
        align-items:center;
        margin-bottom:24px;
    }

    .brand-left{
        flex:1;
        min-width:0;
    }

    .brand{
        font-size:15px;
        line-height:1.2;
    }

    .nav a{
        padding:12px 12px;
        font-size:15px;
    }
}

.date-input{
    position:relative;
}

.date-trigger{
    position:absolute;
    left:8px;
    top:50%;
    transform:translateY(-50%);
    width:28px;
    height:28px;
    border:none;
    background:transparent;
    color:var(--color-primary);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    padding:0;
}

.date-input input{
    padding-left:40px;
}

.date-input input::-webkit-calendar-picker-indicator{
    opacity:0;
}

.dashboard-steps{
    margin-top:12px;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.dashboard-step{
    display:flex;
    align-items:center;
    gap:12px;
    font-size:14px;
    color:var(--muted);
}

.dashboard-step i{
    width:28px;
    height:28px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    background:#eef6ff;
    color:var(--color-primary);
    font-size:14px;
}

.notices-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.notice-item{
    background:#f9fafb;
    border:1px solid var(--border-soft);
    border-radius:10px;
    padding:14px;
}

.notice-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:8px;
}

.notice-head small{
    color:var(--muted);
    white-space:nowrap;
}

.notice-text{
    color:#374151;
    line-height:1.6;
}

.notices-table th,
.notices-table td{
    vertical-align:middle;
}

.notices-table th:nth-child(5),
.notices-table td:nth-child(5){
    width:100px;
    text-align:right;
}

/* OBAVIJESTI */

.card-notices{
    border-left:6px solid var(--color-accent);
}

.notice-item{
    border:1px solid var(--border-soft);
    background:#fff;
    border-radius:10px;
    padding:14px 16px;
}

.notice-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:6px;
}

.notice-head strong{
    color:var(--text);
}

.notice-head small{
    color:var(--muted);
    white-space:nowrap;
}

.notice-text{
    color:#374151;
    line-height:1.6;
}

.profile-icon-notice{
    width:38px;
    height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background:#fff4cc;
    color:#b38700;
    font-size:16px;
}