/* ============================================================
   CRM GUME — Glavni CSS (Mobile-First, Responsive, Optimiziran)
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
                 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica',
                 'Arial', sans-serif;
    line-height: 1.6;
    color: #111827;
    background-color: #f5f5f5;
}

.login-card__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.login-card__logo {
    display: block;
    width: 140px;
    max-width: 100%;
    height: auto;
}

.login-card__title {
    margin: 0;
}

.login-card__subtitle {
    margin: 0;
    color: #6c757d;
}

.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #f2f4f8;
}

.login-card {
    width: min(450px, 100%);
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

main, .main-content, .container {
    flex: 1;
    padding-bottom: 80px;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1rem;
}

/* ============================================================
   TIPOGRAFIJA
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: #111827;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p {
    margin-bottom: 1rem;
    color: #1f2937;
}

a {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover { color: #0b5ed7; }

/* ============================================================
   DUGMIĆI
   ============================================================ */

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    user-select: none;
}

.btn--primary {
    background-color: #0d6efd;
    color: white;
}

.btn--primary:hover {
    background-color: #0b5ed7;
}

.btn--secondary {
    background-color: #6c757d;
    color: white;
}

.btn--secondary:hover {
    background-color: #5c636a;
}

.btn--success {
    background-color: #198754;
    color: white;
}

.btn--success:hover {
    background-color: #157347;
}

.btn--danger {
    background-color: #dc3545;
    color: white;
}

.btn--danger:hover {
    background-color: #bb2d3b;
}

.btn--outline {
    background-color: transparent;
    color: #0d6efd;
    border: 1px solid #0d6efd;
}

.btn--outline:hover {
    background-color: #0d6efd;
    color: white;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================
   FORME
   ============================================================ */

.form-card {
    background: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form {
    background: white;
    padding: 1rem;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form__group {
    margin-bottom: 1rem;
}

.form__label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #111827;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #111827;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-control:disabled {
    background-color: #e9ecef;
    color: #6c757d;
}

/* Multi-select */
.form-control[multiple] {
    padding: 0.5rem;
    min-height: 120px;
}

.form-control[multiple] option {
    padding: 0.35rem 0.5rem;
    margin-bottom: 0.25rem;
}

.form-control[multiple] option:checked {
    background: #0d6efd;
    color: white;
    font-weight: 500;
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.form__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.form__grid--2col {
    grid-template-columns: 1fr;
}

.form__grid--3col {
    grid-template-columns: 1fr;
}

.form__grid--4col {
    grid-template-columns: 1fr;
}

.form__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-direction: column;
}

.form__actions .btn {
    width: 100%;
}

/* ============================================================
   FILTER BAR
   ============================================================ */

.filter-bar {
    background: white;
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.filter-bar__inner {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-bar__search {
    flex: 1;
    min-width: 100%;
}

.filter-bar__select {
    flex: 1;
    min-width: 100%;
}

.filter-bar__inner .btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

/* ============================================================
   SKENARIO: Čekanj Učitavanja
   ============================================================ */

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 0.2em solid #f3f3f3;
    border-top: 0.2em solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================================
   ALERT / OBAVIJESTI
   ============================================================ */

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.375rem;
    border-left: 4px solid;
    font-size: 0.875rem;
}

.alert--success {
    background-color: #d1e7dd;
    border-color: #198754;
    color: #0f5132;
}

.alert--danger, .alert--error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #842029;
}

.alert--warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #664d03;
}

.alert--info {
    background-color: #cfe2ff;
    border-color: #0d6efd;
    color: #084298;
}

.alert--close {
    float: right;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    color: inherit;
    opacity: 0.7;
}

.alert--close:hover {
    opacity: 1;
}

/* ============================================================
   STRANICA: ZAGLAVLJE
   ============================================================ */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.page-header__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    flex: 1;
    min-width: 200px;
}

.page-header__count {
    font-size: 1rem;
    color: #666;
}

.page-header__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-header__actions .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
}

/* ============================================================
   KARTICA / CARD (DESKTOP)
   ============================================================ */

.card {
    background: white;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card__header {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

.card__body {
    padding: 1rem;
}

.card__footer {
    padding: 1rem;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
}

/* ============================================================
   TABELA (DESKTOP SAMO)
   ============================================================ */

.table-wrapper {
    overflow-x: auto;
    display: none;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.875rem;
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
}

.table td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

.table tr:hover {
    background-color: #f8f9fa;
}

/* ============================================================
   MOBILNE KARTICE ZA KUPCE
   ============================================================ */

.hidden-mobile {
    display: none;
}

.visible-mobile {
    display: block;
}

.hidden-desktop {
    display: block;
}

.visible-desktop {
    display: none;
}

.customer-list-mobile,
.customer-cards {
    display: grid;
    gap: 1rem;
}

/* Stari stilovi - .customer-card */
.customer-card {
    background: white;
    border-radius: 0.375rem;
    padding: 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    border-left: 4px solid #0d6efd;
}

.customer-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.customer-card__name {
    font-weight: 600;
    font-size: 1rem;
    color: #0d6efd;
    word-break: break-word;
    flex: 1;
}

.customer-card__meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.customer-card__date {
    font-size: 0.8rem;
    color: #666;
    margin: 0.5rem 0;
    padding: 0.25rem 0;
}

.customer-card__date--overdue {
    color: #dc3545;
    font-weight: 600;
}

.customer-card__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.customer-card__actions a,
.customer-card__actions button {
    flex: 1;
    min-width: 80px;
    padding: 0.5rem 0.5rem;
    text-align: center;
    border-radius: 0.375rem;
    background: #0d6efd;
    color: white;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.customer-card__actions a:hover,
.customer-card__actions button:hover {
    background: #0b5ed7;
}

/* Novi stilovi - .customer-card-mobile */
.customer-card-mobile {
    background: white;
    border-radius: 0.375rem;
    padding: 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    border-left: 4px solid #0d6efd;
}

.customer-card-mobile__title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #0d6efd;
    word-break: break-word;
}

.customer-card-mobile__row {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.customer-card-mobile__label {
    color: #666;
    font-weight: 500;
    min-width: 40%;
}

.customer-card-mobile__value {
    color: #333;
    text-align: right;
    flex: 1;
    font-weight: 500;
    word-break: break-word;
}

.customer-card-mobile__badges {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.customer-card-mobile__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.customer-card-mobile__actions a,
.customer-card-mobile__actions button {
    flex: 1;
    min-width: 80px;
    padding: 0.5rem 0.5rem;
    text-align: center;
    border-radius: 0.375rem;
    background: #0d6efd;
    color: white;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.customer-card-mobile__actions a:hover,
.customer-card-mobile__actions button:hover {
    background: #0b5ed7;
}

/* ============================================================
   KANBAN KOLON
   ============================================================ */

.kanban {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    padding-bottom: 1rem;
}

.kanban__column {
    flex: 0 0 280px;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    padding: 0.75rem;
}

.kanban__header {
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.kanban__badge {
    display: inline-block;
    background-color: #6c757d;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.kanban__card {
    background: white;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    cursor: grab;
    user-select: none;
}

.kanban__card:active {
    cursor: grabbing;
    opacity: 0.8;
}

.kanban__card-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.kanban__card-meta {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
}

/* ============================================================
   MOBILNI DONJI NAVIGACEI BAR
   ============================================================ */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    padding: 0;
    z-index: 1000;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
    height: 70px;
}

.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem;
    flex: 1;
    color: #000000 !important;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 700;
    transition: all 0.2s;
    border-top: 3px solid transparent;
    position: relative;
}

.bottom-nav__item:hover,
.bottom-nav__item:active {
    background-color: #eef3f8;
    color: #000000 !important;
}

.bottom-nav__item--active {
    color: #000000 !important;
    border-top-color: #0d6efd;
    background-color: #edf4ff;
}

.bottom-nav__icon {
    font-size: 1.5rem;
    line-height: 1;
}

/* Notifikacijski badge */
.notif-sup {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: bold;
}

/* ============================================================
   BADGE
   ============================================================ */

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

.badge--primary { background-color: #cfe2ff; color: #084298; }
.badge--secondary { background-color: #e2e3e5; color: #41464b; }
.badge--success { background-color: #d1e7dd; color: #0f5132; }
.badge--danger { background-color: #f8d7da; color: #842029; }
.badge--pcr { background-color: #d1e7dd; color: #0f5132; }
.badge--tbr { background-color: #cfe2ff; color: #084298; }
.badge--otr { background-color: #fff3cd; color: #664d03; }
.badge--kombi { background-color: #f8d7da; color: #842029; }
.badge--fortress { background-color: #ffc107; color: #000; }

/* ============================================================
   UTILITI KLASE
   ============================================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

.flex-center { justify-content: center; align-items: center; }
.flex-between { justify-content: space-between; }
.flex-around { justify-content: space-around; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 2rem; }

.text-muted { color: #6c757d; }
.text-primary { color: #0d6efd; }
.text-success { color: #198754; }
.text-danger { color: #dc3545; }
.text-warning { color: #ffc107; }

/* ============================================================
   DODATNE KLASE — Stage Pills, Cells, etc.
   ============================================================ */

.stage-pill {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    color: white;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.stage-pill--sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
}

.date-cell {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.8rem;
}

.date-cell--overdue {
    background: #ffebee;
    color: #c62828;
}

.cell-sub {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
}

.actions-cell {
    display: flex;
    gap: 0.25rem;
}

.btn--xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
}

.btn--sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

.link--strong {
    font-weight: 600;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem 0;
}

.pagination__btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0.375rem;
    text-decoration: none;
    color: #0d6efd;
    transition: all 0.2s;
}

.pagination__btn:hover {
    background: #0d6efd;
    color: white;
}

.pagination__info {
    font-size: 0.875rem;
    color: #666;
}

.row--fortress {
    background-color: #fffaf0;
}

/* ============================================================
   DATA TABLE
   ============================================================ */

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
}

.data-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.875rem;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}
   ============================================================ */

.fab {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 1rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0d6efd;
    color: white;
    font-size: 1.5rem;
    text-align: center;
    line-height: 60px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.6);
    z-index: 900;
    transition: all 0.2s;
}

.fab:hover {
    background: #0b5ed7;
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.8);
    transform: scale(1.1);
}

    .fab {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background-color: #f8fafc;
    color: #000000;
    overflow-y: auto;
    padding: 1rem 0;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s;
    display: none;
    flex-direction: column;
    border-right: 1px solid #dbe3ef;
}

.sidebar__brand {
    padding: 0.85rem 0.75rem 1rem;
    font-weight: 600;
    color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: #ffffff;
    border-bottom: 1px solid #dbe3ef;
    text-align: center;
}

.sidebar__logo {
    display: block;
    width: 100%;
    max-width: 210px;
    height: auto;
}

.sidebar__brand-title {
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    color: #111827;
    text-align: center;
    line-height: 1;
}

.sidebar__brand-subtitle {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #475569;
    text-align: center;
    line-height: 1.15;
}

.sidebar__nav {
    list-style: none;
    padding: 1rem 0;
    flex: 1 1 auto;
}

.sidebar__item {
    padding: 0;
}

.sidebar__link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    margin: 0.2rem 0.65rem;
    color: #000000 !important;
    text-decoration: none;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 0.65rem;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.sidebar__link:hover {
    background-color: #dbe7f3;
    color: #000000 !important;
    transform: translateX(1px);
}

.sidebar__item--active .sidebar__link {
    background-color: #bfdcff;
    color: #000000 !important;
    border-left: 4px solid #2563eb;
}

.sidebar__icon {
    font-size: 1.25rem;
    min-width: 20px;
    color: #000000 !important;
}

.sidebar__footer {
    position: static;
    margin-top: auto;
    padding: 1rem;
    border-top: 1px solid #dbe3ef;
    text-align: center;
}

.sidebar__user {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.sidebar__user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #111827;
}

.sidebar__user-role {
    font-size: 0.75rem;
    opacity: 0.9;
    color: #475569;
}

.sidebar__logout {
    margin-top: 0.5rem;
    display: block;
    text-align: center;
    padding: 0.5rem;
    background: #dc3545;
    color: white;
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: 0.875rem;
}

/* ============================================================
   RESPONSIVNE BREAKPOINTS
   ============================================================ */

    /* Mobilni stilovi za login i auth stranice */
    body {
        text-align: center;
    }

    .login-wrapper {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }

    .login-card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .login-card__header {
        margin-bottom: 2rem;
    }

    .login-card__logo {
        margin: 0 auto 1rem auto;
        display: block;
    }

    .login-card__title {
        margin: 0 0 0.5rem 0;
        font-size: 1.5rem;
    }

    .login-card__subtitle {
        margin: 0;
        font-size: 0.875rem;
    }

    /* Forme na mobilnom */
    .login-form {
        text-align: left;
    }

    .form-group {
        margin-bottom: 1.5rem;
        text-align: left;
    }

    .form-label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
        text-align: left;
    }

    .form-control {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid #ddd;
        border-radius: 0.5rem;
        font-size: 1rem;
    }

    .input-group {
        position: relative;
    }

    .input-group__btn {
        position: absolute;
        right: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        font-size: 1.25rem;
        cursor: pointer;
        padding: 0.25rem;
    }

    /* Dugmad na mobilnom */
    .btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .btn--block {
        width: 100%;
    }

    /* Sidebar na mobilnom */
    .sidebar {
        width: 100vw;
        max-width: 100vw;
        padding: 0.5rem 0 1rem;
    }

    .sidebar__brand {
        padding: 0.85rem 0.75rem 1rem;
        justify-content: center;
    }

    .sidebar__logo {
        width: 100%;
        max-width: min(92vw, 320px);
        height: auto;
    }

    .sidebar__brand-title {
        font-size: 1.2rem;
    }

    .sidebar__brand-subtitle {
        font-size: 0.58rem;
    }

    .sidebar__nav {
        padding: 0.75rem 0 1rem;
    }

    .sidebar__link {
        padding: 1rem 1rem;
        margin: 0.28rem 0.45rem;
        font-size: 1rem;
        width: calc(100% - 0.9rem);
        border-radius: 0.8rem;
    }

    .sidebar__icon {
        font-size: 1.25rem;
    }

    /* Toast notifikacije */
    .toast {
        position: fixed;
        bottom: 90px;
        left: 1rem;
        right: 1rem;
        background: #333;
        color: white;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        z-index: 3000;
        font-size: 0.9rem;
        text-align: center;
    }

    /* Loading spinner */
    .loading__spinner {
        width: 40px;
        height: 40px;
        border: 3px solid #f3f3f3;
        border-top: 3px solid #0d6efd;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto 1rem;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    /* Alert poruke */
    .alert {
        padding: 1rem;
        border-radius: 0.5rem;
        margin: 1rem 0;
        text-align: center;
        font-size: 0.9rem;
    }

    .alert--success {
        background: #d1e7dd;
        color: #0f5132;
        border: 1px solid #a3cfbb;
    }

    .alert--error {
        background: #f8d7da;
        color: #842029;
        border: 1px solid #f1aeb5;
    }

    .alert--warning {
        background: #fff3cd;
        color: #664d03;
        border: 1px solid #ffeaa7;
    }

    .alert--info {
        background: #cff4fc;
        color: #055160;
        border: 1px solid #9eeaf9;
    }
}
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .form__grid--2col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form__grid--3col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-control[multiple] {
        min-height: 150px;
    }
    
    .filter-bar__search,
    .filter-bar__select {
        min-width: 150px;
        flex: 0 1 auto;
    }
    
    .form__actions {
        flex-direction: row;
    }
    
    .form__actions .btn {
        width: auto;
    }
    
    .customer-card-mobile__actions {
        flex-wrap: nowrap;
    }
    
    .customer-card-mobile__actions a,
    .customer-card-mobile__actions button {
        min-width: auto;
    }
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
    
    main, .main-content, .container {
        padding-bottom: 0;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .bottom-nav {
        display: none;
    }
    
    .hidden-mobile {
        display: block !important;
    }
    
    .visible-mobile {
        display: none !important;
    }
    
    .table-wrapper {
        display: block;
    }
    
    .customer-list-mobile {
        display: none;
    }
    
    .page-header {
        flex-wrap: nowrap;
    }
    
    .form__grid--2col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form__grid--3col {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .form__grid--4col {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .filter-bar__inner {
        flex-wrap: nowrap;
    }
    
    .filter-bar__search,
    .filter-bar__select {
        min-width: auto;
        flex: 0 1 auto;
    }
}

@media (min-width: 992px) {
    .sidebar {
        display: block;
        transform: translateX(0);
    }
    
    main, .main-content {
        margin-left: 250px;
    }
    
    .container {
        max-width: 1400px;
        margin: 0 auto;
        margin-left: 250px;
        padding: 2rem;
    }
}
