:root {
    --bg: #f5f7fa;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-solid: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: rgba(148, 163, 184, 0.25);

    --primary: #14b8a6;
    --primary-dark: #0f766e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #22c55e;

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;

    --shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.06);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    background:
        radial-gradient(circle at top left, rgba(20, 184, 166, 0.12), transparent 32%),
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 28%),
        var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

/*
|--------------------------------------------------------------------------
| GLOBAL LAYOUT
|--------------------------------------------------------------------------
*/

.app-shell {
    display: block;
    min-height: 100vh;
}

.app-main {
    margin-left: 0 !important;
    padding: 28px;
}

/*
|--------------------------------------------------------------------------
| TOP NAVIGATION
|--------------------------------------------------------------------------
*/

.app-sidebar.top-nav {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;

    width: 100%;
    min-height: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding: 14px 28px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.92),
            rgba(248,250,252,0.96)
        );

    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(15,23,42,0.06);
    box-shadow: 0 10px 30px rgba(15,23,42,0.05);

    color: #0f172a;
}

.top-nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.sidebar-logo-icon {
    width: 44px;
    height: 44px;

    border-radius: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    font-weight: 800;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #0ea5e9
        );

    color: #ffffff;
}

.sidebar-logo-text h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.sidebar-logo-text span {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
}

.sidebar-nav,
.top-nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.sidebar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 14px;

    border-radius: 999px;

    color: #0f172a;
    font-size: 14px;
    font-weight: 600;

    transition: 0.2s ease;
}

.sidebar-link:hover {
    background: rgba(15,23,42,0.05);
}

.sidebar-link.active {
    background:
        linear-gradient(
            135deg,
            var(--primary),
            #0ea5e9
        );

    color: #ffffff;
    box-shadow: 0 10px 24px rgba(20,184,166,0.18);
}

.logout-link {
    margin-top: 0;
}

.sidebar-toggle,
.mobile-menu-btn,
.mobile-backdrop {
    display: none !important;
}

/*
|--------------------------------------------------------------------------
| PAGE HEADER
|--------------------------------------------------------------------------
*/

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

.page-header h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.page-header p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

/*
|--------------------------------------------------------------------------
| CARDS
|--------------------------------------------------------------------------
*/

.card,
.data-card,
.stat-card {
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.data-card {
    padding: 22px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card {
    padding: 20px;
}

.stat-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.stat-card strong {
    display: block;
    margin-top: 10px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.05em;
}

/*
|--------------------------------------------------------------------------
| BUTTONS
|--------------------------------------------------------------------------
*/

.btn {
    font-size:12px;
    font-weight:600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border: 0;
    border-radius: 999px;

    padding: 11px 18px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    transition: 0.2s ease;
}

.btn-primary {
    background:
        linear-gradient(
            135deg,
            var(--primary),
            #38bdf8
        );

    color: #ffffff;
    box-shadow: 0 12px 28px rgba(20, 184, 166, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-light {
    background: #ffffff;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-sm {
    padding: 9px 14px;
    font-size: 13px;
}

/*
|--------------------------------------------------------------------------
| TABLES
|--------------------------------------------------------------------------
*/

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

.table-header h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.table-header p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.table-wrapper {
    overflow-x: auto;
}

.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    font-size: 12px;
}

.table-modern th {
    text-align: left;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    padding: 0 14px 8px;
}

.table-modern td {
    background: #ffffff;
    padding: 16px 14px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.table-modern td:first-child {
    border-left: 1px solid var(--border);
    border-radius: 16px 0 0 16px;
}

.table-modern td:last-child {
    border-right: 1px solid var(--border);
    border-radius: 0 16px 16px 0;
}

/*
|--------------------------------------------------------------------------
| BADGES
|--------------------------------------------------------------------------
*/

.badge {
    display: inline-flex;
    font-size:11px;
    font-weight:700;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.badge.debt-green {
    background: #dcfce7;
    color: #166534;
}

.badge.debt-yellow {
    background: #fef9c3;
    color: #854d0e;
}

.badge.debt-orange {
    background: #fed7aa;
    color: #9a3412;
}

.badge.debt-red {
    background: #fee2e2;
    color: #991b1b;
}

/*
|--------------------------------------------------------------------------
| FORMS
|--------------------------------------------------------------------------
*/

.modern-form {
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.form-group {
    width: 100%;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
}

.form-control {
    width: 100%;

    border: 1px solid var(--border);
    border-radius: 16px;

    padding: 13px 15px;

    font-size: 12px;

    outline: none;
    background: #ffffff;

    transition: 0.2s ease;
}

.form-control:focus {
    border-color: rgba(20, 184, 166, 0.65);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

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

select.form-control {
    appearance: none;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
}

.field-message {
    margin-top: 10px;
}

.helper-text {
    display: inline-block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.switch-row {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 14px 16px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: #ffffff;
    cursor: pointer;
}

.switch-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.permission-select {
    min-width: 220px;
}

/*
|--------------------------------------------------------------------------
| DASHBOARD
|--------------------------------------------------------------------------
*/

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.6fr 0.9fr;
    gap: 22px;
}

.card-header {
    margin-bottom: 20px;
}

.card-header h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.card-header p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.quick-action {
    display: block;

    padding: 18px;

    border: 1px solid var(--border);
    border-radius: 20px;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f8fafc
        );

    transition: 0.2s ease;
}

.quick-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
    border-color: rgba(20, 184, 166, 0.45);
}

.quick-action strong {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
}

.quick-action span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

/*
|--------------------------------------------------------------------------
| PROFILE / PATIENT
|--------------------------------------------------------------------------
*/

.profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar,
.patient-avatar {
    background:
        linear-gradient(
            135deg,
            var(--primary),
            #38bdf8
        );

    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 800;
    box-shadow: 0 16px 34px rgba(20, 184, 166, 0.25);
}

.profile-avatar {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    font-size: 30px;
}

.patient-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 18px;
}

.profile-card h3 {
    margin: 0;
    font-size: 20px;
}

.profile-card p {
    margin: 6px 0 12px;
    color: var(--muted);
}

.patient-cell {
    display: flex;
    align-items: center;
    gap: 14px;
}

.patient-cell strong {
    display: block;
    margin-bottom: 4px;
}

.patient-cell span {
    color: var(--muted);
    font-size: 13px;
}

.table-actions {
    display: flex;
    gap: 8px;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
}

.empty-state h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
}

/*
|--------------------------------------------------------------------------
| LOGIN PAGE
|--------------------------------------------------------------------------
*/

.login-body {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    overflow: hidden;
    position: relative;
}

.login-image-bg {
    position: fixed;
    inset: 0;
    z-index: -3;

    background-image: url('../images/login-bg.webp');
    background-size: cover;
    background-position: center;

    transform: scale(1.06);
    filter: blur(2px) brightness(0.94) saturate(1.05);
}

.login-image-overlay {
    position: fixed;
    inset: 0;
    z-index: -2;

    background:
        linear-gradient(
            135deg,
            rgba(245, 247, 250, 0.72),
            rgba(255, 255, 255, 0.40)
        ),
        radial-gradient(
            circle at top left,
            rgba(20, 184, 166, 0.18),
            transparent 35%
        );
}

.login-wrapper {
    width: 100%;
    max-width: 430px;
    position: relative;
    z-index: 5;
}

.login-card {
    width: 100%;

    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(35px);

    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 36px;

    padding: 42px;

    box-shadow:
        0 35px 80px rgba(15, 23, 42, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.login-logo {
    text-align: center;
    margin-bottom: 34px;
}

.login-logo-icon {
    width: 84px;
    height: 84px;

    margin: 0 auto 18px;

    border-radius: 30px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #38bdf8
        );

    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 34px;
    font-weight: 800;

    box-shadow: 0 20px 45px rgba(20, 184, 166, 0.32);
}

.login-logo h1 {
    margin: 0;
    font-size: 34px;
    letter-spacing: -0.06em;
}

.login-logo p {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 15px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-form .form-control {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(10px);

    border-radius: 18px;
    padding: 16px 18px;
}

.login-btn {
    width: 100%;
    height: 56px;
    margin-top: 8px;
    font-size: 15px;
}

.login-error {
    margin-bottom: 20px;

    padding: 14px 16px;

    border-radius: 18px;

    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.14);

    color: #b91c1c;
    font-size: 14px;
}

/*
|--------------------------------------------------------------------------
| LOGOUT PAGE
|--------------------------------------------------------------------------
*/

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

.logout-card h1 {
    margin: 0 0 12px;
    font-size: 30px;
    letter-spacing: -0.05em;
}

.logout-card p {
    margin-bottom: 26px;
    color: var(--muted);
}

.logout-icon {
    width: 90px;
    height: 90px;

    margin: 0 auto 24px;

    border-radius: 30px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #38bdf8
        );

    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 42px;
    font-weight: 700;

    box-shadow: 0 18px 40px rgba(20, 184, 166, 0.28);
}

/*
|--------------------------------------------------------------------------
| LOADING OVERLAY
|--------------------------------------------------------------------------
*/

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.30);
    backdrop-filter: blur(18px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-box {
    width: 220px;

    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(30px);

    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 30px;

    padding: 28px;

    text-align: center;

    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
}

.loading-spinner {
    width: 54px;
    height: 54px;

    margin: 0 auto 18px;

    border-radius: 50%;
    border: 4px solid rgba(20, 184, 166, 0.12);
    border-top-color: var(--primary);

    animation: dentalSpin 0.8s linear infinite;
}

.loading-box p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

@keyframes dentalSpin {
    to {
        transform: rotate(360deg);
    }
}

/*
|--------------------------------------------------------------------------
| CALENDAR
|--------------------------------------------------------------------------
*/

.calendar-card {
    padding: 24px;
}

.fc {
    --fc-border-color: rgba(148,163,184,0.15);
    --fc-page-bg-color: transparent;
    --fc-neutral-bg-color: rgba(255,255,255,0.7);
    --fc-list-event-hover-bg-color: #f8fafc;
    --fc-today-bg-color: rgba(20,184,166,0.08);

    font-family: Inter, sans-serif;
}

.fc .fc-toolbar-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.fc .fc-button {
    border: 0 !important;
    border-radius: 14px !important;
    padding: 10px 16px !important;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #38bdf8
        ) !important;

    box-shadow: 0 10px 24px rgba(20,184,166,0.18);
    transition: 0.2s ease !important;
}

.fc .fc-button:hover {
    transform: translateY(-1px);
}

.fc-theme-standard td,
.fc-theme-standard th {
    border-color: rgba(148,163,184,0.12);
}

.fc-theme-standard .fc-scrollgrid {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(148,163,184,0.15);
}

.fc .fc-timegrid-slot {
    height: 22px !important;
}

.fc-event {
    border: 0 !important;
    border-radius: 14px !important;

    padding: 4px 6px !important;

    box-shadow: 0 8px 20px rgba(20,184,166,0.18);
}

/*
|--------------------------------------------------------------------------
| MODAL
|--------------------------------------------------------------------------
*/

.modal-bg {
    display: none;

    position: fixed;
    inset: 0;

    z-index: 99999;

    overflow-y: auto;
    padding: 24px 0;

    background: rgba(15,23,42,0.35);
    backdrop-filter: blur(10px);
}

.dental-modal {
    width: 620px;
    max-width: calc(100% - 30px);
    max-height: calc(100vh - 48px);

    margin: 0 auto;
    padding: 32px;

    overflow-y: auto;

    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.4);

    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(30px);

    box-shadow: 0 30px 70px rgba(15,23,42,0.20);
}

.dental-modal h2 {
    margin-top: 0;
    margin-bottom: 24px;

    font-size: 26px;
    letter-spacing: -0.05em;
}

.dental-modal input,
.dental-modal textarea,
.dental-modal select {
    width: 100%;
}

.dental-modal::-webkit-scrollbar {
    width: 8px;
}

.dental-modal::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.18);
    border-radius: 999px;
}

/*
|--------------------------------------------------------------------------
| SEARCH RESULTS
|--------------------------------------------------------------------------
*/

#rezultati_pacijenata {
    margin-top: 8px;

    border: 1px solid rgba(148,163,184,0.15);
    border-radius: 18px;

    overflow: hidden;

    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);

    box-shadow: 0 14px 30px rgba(15,23,42,0.08);
}

.rezultat-pacijent {
    padding: 14px 16px;
    cursor: pointer;

    transition: 0.18s ease;
    border-bottom: 1px solid rgba(148,163,184,0.08);
}

.rezultat-pacijent:hover {
    background: rgba(20,184,166,0.08);
}

#izabrani_pacijent {
    margin-top: 14px;

    padding: 14px;

    border-radius: 18px;

    background: rgba(20,184,166,0.08);
    color: var(--primary-dark);

    font-size: 14px;
    font-weight: 600;
}

#poruka {
    margin-top: 14px;
}

/*
|--------------------------------------------------------------------------
| RESPONSIVE
|--------------------------------------------------------------------------
*/

@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .app-main {
        padding: 12px 14px 20px !important;
    }

    .app-sidebar.top-nav {
        padding: 10px 12px !important;
    }

    .top-nav-brand {
        display: none !important;
    }

    .top-nav-links {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 4px;
    }

    .top-nav .sidebar-link {
        flex-shrink: 0;
        padding: 9px 13px;
        font-size: 13px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group-full {
        grid-column: auto;
    }

    .form-actions {
        justify-content: stretch;
    }

    .form-actions .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .modal-bg {
        padding: 12px;
    }

    .dental-modal {
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 24px);
        border-radius: 24px;
        padding: 24px;
    }
}

@media (max-width: 600px) {
    .login-card {
        padding: 30px 24px;
    }

    .login-logo h1 {
        font-size: 30px;
    }

    .page-header h1 {
        font-size: 24px;
    }
}
.patient-live-search {
    position: relative;
    width: 320px;
    max-width: 100%;
}

#livePatientResults {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 5000;

    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15,23,42,0.12);
    overflow: hidden;
}

.live-patient-result {
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(148,163,184,0.14);
    transition: 0.18s ease;
}

.live-patient-result:hover {
    background: rgba(20,184,166,0.08);
}

.live-patient-result strong {
    display: block;
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 4px;
}

.live-patient-result span {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.live-patient-result.empty {
    color: var(--muted);
    cursor: default;
}

@media (max-width: 900px) {
    .table-header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .patient-live-search {
        width: 100%;
    }
}
/*
|--------------------------------------------------------------------------
| SETTINGS PAGE
|--------------------------------------------------------------------------
*/

.settings-grid {
    display: grid;
    gap: 24px;
}

.settings-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.settings-card-header h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.settings-card-header p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.social-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f8fafc
        );
}

.social-card-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.social-card h3 {
    margin: 0;
    font-size: 16px;
    letter-spacing: -0.03em;
}

.social-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.working-hours-list {
    display: grid;
    gap: 14px;
}

.working-hours-row {
    display: grid;
    grid-template-columns: 1fr 160px 160px 180px;
    gap: 14px;
    align-items: center;

    padding: 16px;

    border: 1px solid var(--border);
    border-radius: 20px;

    background: #ffffff;
}

.working-hours-row strong {
    font-size: 14px;
}

@media (max-width: 900px) {
    .settings-card-header {
        flex-direction: column;
    }

    .working-hours-row {
        grid-template-columns: 1fr;
    }
}
.settings-grid {
    display: grid;
    gap: 24px;
}

.settings-section {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.settings-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.settings-inline p {
    margin: 0;
    color: var(--muted);
}

.logo-upload-box {
    width: 120px;
    height: 120px;

    border-radius: 28px;

    border: 2px dashed rgba(148,163,184,0.25);

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f8fafc
        );

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--muted);
    font-weight: 600;
}
.dropdown-wrapper {
    position: relative;
}

.dropdown-menu-custom {
    position: absolute;

    top: 52px;
    left: 0;

    min-width: 260px;

    background: #ffffff;

    border: 1px solid rgba(148,163,184,0.15);
    border-radius: 20px;

    padding: 10px;

    box-shadow: 0 18px 40px rgba(15,23,42,0.12);

    opacity: 0;
    visibility: hidden;

    transform: translateY(10px);

    transition: 0.2s ease;

    z-index: 99999;
}

.dropdown-wrapper:hover .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu-custom a {
    display: block;

    padding: 12px 14px;

    border-radius: 14px;

    color: #0f172a;
    font-size: 14px;
    font-weight: 600;

    transition: 0.18s ease;
}

.dropdown-menu-custom a:hover {
    background: rgba(15,23,42,0.05);
}
/*
|--------------------------------------------------------------------------
| TOAST NOTIFICATION
|--------------------------------------------------------------------------
*/

.toast-notification {
    position: fixed;
    top: 90px;
    right: 28px;
    z-index: 999999 !important;

    width: 420px;
    max-width: calc(100% - 32px);

    display: flex;
    gap: 14px;

    padding: 18px 18px 22px;

    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(22px);

    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 24px;

    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);

    overflow: hidden;

    animation: toastSlideIn 0.35s ease forwards;
    @keyframes toastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}
}

.toast-notification.hide {
    animation: toastSlideOut 0.35s ease forwards;
}

.toast-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;

    border-radius: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #38bdf8
        );

    color: #ffffff;

    font-size: 20px;
    font-weight: 800;

    box-shadow: 0 12px 28px rgba(20, 184, 166, 0.25);
}

.toast-content strong {
    display: block;
    margin-bottom: 6px;

    font-size: 15px;
    letter-spacing: -0.03em;
}

.toast-content p {
    margin: 0;

    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.toast-content b {
    color: #0f172a;
}

.toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;

    height: 4px;
    width: 0;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #38bdf8
        );

    animation: toastProgress 10s linear forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(24px) translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

@keyframes toastProgress {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .toast-notification {
        top: 80px;
        right: 16px;
        left: 16px;
        width: auto;
    }
}
.modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.modal-actions-left,
.modal-actions-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;

    border: 0;

    box-shadow:
        0 12px 28px rgba(239, 68, 68, 0.24);
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow:
        0 18px 40px rgba(239, 68, 68, 0.32);
}
.patient-name-link {
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    transition: 0.18s ease;
}

.patient-name-link:hover {
    color: var(--primary);
}
.login-logo-image {
    width: 220px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}
.login-logo-image {
    width: 220px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 24px;
}
.sidebar-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0 24px;
}

.sidebar-logo-image {
    width: 150px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
.service-row {
    cursor: pointer;
}

.service-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.72);
    z-index: 9999;
    padding: 24px;
}

.modal-overlay.show {
    display: flex;
}

.modal-box {
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.25);
}

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

.modal-close {
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}
.loyalty-card {
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
}

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

.loyalty-badge {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    font-size: 13px;
    font-weight: 600;
}

.loyalty-points {
    font-size: 42px;
    font-weight: 800;
}

.loyalty-points span {
    font-size: 16px;
    opacity: 0.7;
}
.finance-loyalty-preview{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;

    margin-bottom:28px;
    padding:24px;

    border-radius:24px;

    background:
        linear-gradient(
            135deg,
            #0f172a,
            #1e293b
        );

    color:#fff;
}

.finance-loyalty-left{
    display:flex;
    align-items:center;
    gap:18px;
}

.finance-loyalty-icon{
    width:64px;
    height:64px;

    border-radius:20px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:28px;

    background:
        linear-gradient(
            135deg,
            #14b8a6,
            #38bdf8
        );
}

.finance-loyalty-preview h3{
    margin:0 0 6px;
    font-size:28px;
}

.finance-loyalty-preview p{
    margin:0;
    opacity:0.82;
}

@media (max-width:768px){

    .finance-loyalty-preview{
        flex-direction:column;
        align-items:flex-start;
    }

}


/* Core integration hotfix 2 - osnovni sidebar compact fallback */
@media (min-width: 981px){
  .app-sidebar.top-nav{width:244px;padding:14px 12px;}
  .sidebar-nav,.sidebar-nav.top-nav-links{gap:4px;}
  .sidebar-link{padding:7px 9px;min-height:34px;border-radius:12px;font-size:11px;line-height:1.15;}
}
