/* ============================================================
   RNTAA Design System – ANPDPD Theme
   Stack: Bootstrap 5.3 + custom overrides
   ============================================================ */

:root {
    --primary:        #003DA5;
    --primary-dark:   #002B75;
    --primary-light:  #E8EFF9;
    --accent:         #D4A843;
    --success:        #198754;
    --danger:         #DC3545;
    --warning:        #FFC107;
    --info:           #0dcaf0;
    --text-dark:      #212529;
    --text-muted:     #6C757D;
    --bg-light:       #F8F9FA;
    --bg-white:       #FFFFFF;
    --footer-bg:      #1A1A2E;
    --footer-text:    #CCCCCC;

    --db-sidebar-width: 260px;
    --db-sidebar-collapsed-width: 5rem;
    --db-sidebar-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --db-sidebar-background-color: #ffffff;
    --db-sidebar-box-shadow: 0px 0px 1rem rgba(120, 130, 140, 0.13);
    --db-content-background-color: #f5f5f5;
}

@media (min-width: 992px) {
    :root {
        --db-sidebar-width: 300px;
    }
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

body {
    font-family: "Source Sans Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    font-size: 1rem;
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--primary-dark);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ============================================================
   BOOTSTRAP OVERRIDES
   ============================================================ */

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    background-color: #c09a3a;
    border-color: #c09a3a;
    color: #fff;
}

.bg-primary:not(.bg-opacity-10):not(.bg-opacity-25):not(.bg-opacity-50) {
    background-color: var(--primary) !important;
}

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

.bg-primary-light {
    background-color: var(--primary-light) !important;
}

.text-white { color: #fff !important; }

.badge-white { color: #fff !important; }

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 61, 165, 0.25);
}

.nav-link {
    transition: color 0.2s, background-color 0.2s;
}

/* ============================================================
   SKIP TO CONTENT (WCAG)
   ============================================================ */

.skip-to-content {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 0.5rem 0;
    transition: top 0.2s;
}

.skip-to-content:focus {
    top: 0;
    color: #fff;
}

/* ============================================================
   NAVBAR PUBLIC
   ============================================================ */

.navbar-rntaa {
    background-color: var(--primary-dark);
    padding: 0;
    min-height: 4rem;
}

.navbar-rntaa .navbar-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-rntaa .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 1rem 1rem;
    font-weight: 500;
    position: relative;
}

.navbar-rntaa .nav-link:hover,
.navbar-rntaa .nav-link.active,
.navbar-rntaa .nav-link.show {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-rntaa .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.5rem;
    right: 0.5rem;
    height: 3px;
    background: var(--accent);
    border-radius: 3px 3px 0 0;
}

.navbar-rntaa .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    padding: 0.4rem 0.6rem;
}

.navbar-rntaa .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-rntaa .nav-avatar {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
}

.navbar-rntaa .dropdown-menu {
    border: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
}

.navbar-rntaa .dropdown-item {
    font-size: 0.9rem;
    padding: 0.45rem 1rem;
}

.navbar-rntaa .dropdown-item:hover {
    background-color: var(--primary-light);
}

.navbar-rntaa .dropdown-header {
    font-size: 0.7rem;
    color: var(--primary);
    letter-spacing: 0.05em;
}

.navbar-accent-bar {
    background: linear-gradient(135deg, var(--accent) 0%, #e8c06a 100%);
    height: 4px;
}

/* Page banner for public inner pages */
.page-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 2rem 0;
    color: #fff;
}

.page-banner h1 {
    color: #fff;
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.page-banner .breadcrumb {
    margin-bottom: 0;
}

.page-banner .breadcrumb-item a {
    color: rgba(255,255,255,0.7);
}

.page-banner .breadcrumb-item a:hover {
    color: #fff;
}

.page-banner .breadcrumb-item.active {
    color: rgba(255,255,255,0.5);
}

.page-banner .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.4);
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #0056D2 100%);
    color: #fff;
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.05));
}

.hero-section h1 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ============================================================
   STATS COUNTERS
   ============================================================ */

.stats-section {
    margin-top: -2rem;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.stat-card .stat-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card-product {
    height: 100%;
}

.card-product .card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 0.75rem 0.75rem 0 0;
}

.card-product .card-body {
    display: flex;
    flex-direction: column;
}

.card-product .card-title {
    font-size: 1rem;
    font-weight: 600;
}

.card-product .card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: auto;
}

.card-product .badge-category {
    font-size: 0.75rem;
    font-weight: 500;
}

/* ============================================================
   BADGES STATUS
   ============================================================ */

.badge-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35em 0.75em;
    border-radius: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-asteptare { background-color: #FFF3CD; color: #856404; }
.badge-activ, .badge-validata { background-color: #D1E7DD; color: #0F5132; }
.badge-inactiv, .badge-respins, .badge-anulata { background-color: #F8D7DA; color: #842029; }
.badge-depusa { background-color: #CFE2FF; color: #084298; }
.badge-deschisa { background-color: #E2E3E5; color: #41464B; }
.badge-in_actualizare { background-color: #FFF3CD; color: #856404; }
.badge-finalizata { background-color: #D1E7DD; color: #0F5132; }
.badge-utilizat { background-color: #E2E3E5; color: #41464B; }
.badge-expirat { background-color: #F8D7DA; color: #842029; }
.badge-initiata { background-color: #CFE2FF; color: #084298; }
.badge-confirmata { background-color: #D1E7DD; color: #0F5132; }
.badge-in_livrare { background-color: #FFF3CD; color: #856404; }
.badge-livrata { background-color: #D1E7DD; color: #0F5132; }

/* ============================================================
   FOOTER (ANPDPD style)
   ============================================================ */

.site-footer {
    margin-top: 4rem;
}

.footer-top {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 2.5rem 0 2rem;
    font-size: 0.88rem;
}

.footer-institution {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.footer-contact-list li {
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
}

.footer-contact-list i {
    color: var(--accent);
    margin-right: 0.3rem;
    width: 1rem;
    text-align: center;
}

.footer-schedule {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 1.25rem;
}

.footer-sub-heading {
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 0.75rem;
}

.footer-btn-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-btn-list a {
    display: block;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--accent);
    border-radius: 0.3rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.footer-btn-list a:hover {
    background: rgba(212,168,67,0.2);
    color: #fff;
    text-decoration: none;
}

.footer-financing-text {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.footer-logos a {
    display: block;
    transition: opacity 0.15s;
}

.footer-logos a:hover {
    opacity: 0.8;
}

.footer-logos img {
    height: 3rem;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.footer-bottom {
    background: #0a0a1a;
    color: rgba(255, 255, 255, 0.4);
    padding: 0.85rem 0;
    font-size: 0.78rem;
    text-align: center;
}

@media (max-width: 767.98px) {
    .footer-top {
        text-align: center;
    }
    .footer-logos {
        justify-content: center;
    }
    .footer-btn-list a {
        text-align: center;
    }
}

/* ============================================================
   DASHBOARD / ADMIN LAYOUT
   ============================================================ */

.db-wrapper {
    display: flex;
    min-height: 100vh;
}

.db-sidebar {
    width: var(--db-sidebar-width);
    background: var(--db-sidebar-background-color);
    box-shadow: var(--db-sidebar-box-shadow);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    transition: width var(--db-sidebar-transition), transform var(--db-sidebar-transition);
    overflow-y: auto;
    overflow-x: hidden;
}

.db-sidebar-header {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #eee;
    min-height: 4rem;
}

.db-sidebar-header img {
    height: 2rem;
    width: auto;
}

.db-sidebar-header .brand-text {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-dark);
    white-space: nowrap;
}

.db-sidebar-nav {
    padding: 1rem 0;
}

.db-sidebar-nav .nav-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 0.75rem 1.25rem 0.35rem;
}

.db-sidebar-nav .nav-item {
    padding: 0 0.75rem;
}

.db-sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.5rem;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.db-sidebar-nav .nav-link i {
    font-size: 1.15rem;
    width: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    flex-shrink: 0;
}

.db-sidebar-nav .nav-link:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    text-decoration: none;
}

.db-sidebar-nav .nav-link:hover i {
    color: var(--primary);
}

.db-sidebar-nav .nav-link.active {
    background-color: var(--primary);
    color: #fff;
}

.db-sidebar-nav .nav-link.active i {
    color: #fff;
}

/* Sidebar collapsed (desktop) */
.db-sidebar.collapsed {
    width: var(--db-sidebar-collapsed-width);
}

.db-sidebar.collapsed .brand-text,
.db-sidebar.collapsed .nav-section-title,
.db-sidebar.collapsed .nav-link span {
    display: none;
}

.db-sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 0.65rem;
}

/* Content area */
.db-content {
    margin-left: var(--db-sidebar-width);
    flex: 1;
    background: var(--db-content-background-color);
    min-height: 100vh;
    transition: margin-left var(--db-sidebar-transition);
}

.db-sidebar.collapsed ~ .db-content {
    margin-left: var(--db-sidebar-collapsed-width);
}

/* Topbar */
.db-topbar {
    background: #fff;
    padding: 0 1.5rem;
    height: 4.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.db-topbar .hamburger-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.db-topbar .hamburger-btn:hover {
    background-color: var(--bg-light);
}

.db-topbar .user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.db-topbar .user-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.db-content-body {
    padding: 1.5rem;
}

/* Mobile sidebar */
@media (max-width: 991.98px) {
    .db-sidebar {
        transform: translateX(-100%);
        width: var(--db-sidebar-width) !important;
    }

    .db-sidebar.show {
        transform: translateX(0);
    }

    .db-content {
        margin-left: 0 !important;
    }

    .db-topbar {
        padding: 0 1rem;
    }

    .db-content-body {
        padding: 1rem;
    }

    .db-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1035;
    }

    .db-overlay.show {
        display: block;
    }
}

/* ============================================================
   PAGE HEADER (BREADCRUMB)
   ============================================================ */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.page-header .breadcrumb {
    margin-bottom: 0;
    font-size: 0.85rem;
}

.page-header .breadcrumb-item a {
    color: var(--text-muted);
}

.page-header .breadcrumb-item.active {
    color: var(--text-dark);
}

/* ============================================================
   TIMELINE (ISTORIC SOLICITARE)
   ============================================================ */

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.65rem;
    top: 0.35rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item.timeline-success::before { background: var(--success); box-shadow: 0 0 0 2px var(--success); }
.timeline-item.timeline-danger::before { background: var(--danger); box-shadow: 0 0 0 2px var(--danger); }
.timeline-item.timeline-warning::before { background: var(--warning); box-shadow: 0 0 0 2px var(--warning); }

.timeline-item .timeline-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.timeline-item .timeline-content {
    font-size: 0.9rem;
}

/* ============================================================
   DATATABLES
   ============================================================ */

.datatable-container {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.datatable-container .datatable-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.datatable-container .datatable-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--primary-dark);
}

.datatable-container .datatable-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.datatable-container .datatable-body {
    padding: 0;
}

.datatable-container .datatable-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Tabulator theme overrides */
.tabulator {
    border: none !important;
    background-color: transparent !important;
    font-family: inherit !important;
    font-size: 0.9rem !important;
    overflow-x: auto !important;
}

.datatable-container .datatable-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767.98px) {
    .datatable-container .datatable-header {
        flex-direction: column;
        align-items: stretch;
    }
    .datatable-container .datatable-header h3 {
        font-size: 1rem;
    }
    .datatable-container .datatable-filters input {
        width: 100% !important;
    }
    .tabulator .tabulator-header .tabulator-col .tabulator-col-content {
        padding: 0.5rem 0.5rem !important;
    }
    .tabulator .tabulator-tableholder .tabulator-table .tabulator-row .tabulator-cell {
        padding: 0.5rem 0.5rem !important;
        font-size: 0.85rem !important;
    }
}

.tabulator .tabulator-header {
    background-color: var(--bg-light) !important;
    border-bottom: 2px solid var(--primary) !important;
    font-weight: 600 !important;
    color: var(--primary-dark) !important;
}

.tabulator .tabulator-header .tabulator-col {
    background-color: transparent !important;
    border-right: none !important;
}

.tabulator .tabulator-header .tabulator-col .tabulator-col-content {
    padding: 0.65rem 0.75rem !important;
}

.tabulator .tabulator-header .tabulator-col .tabulator-col-title {
    font-weight: 600 !important;
    color: var(--primary-dark) !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
}

.tabulator .tabulator-tableholder .tabulator-table .tabulator-row {
    border-bottom: 1px solid #f0f0f0 !important;
    background-color: #fff !important;
}

.tabulator .tabulator-tableholder .tabulator-table .tabulator-row:hover {
    background-color: var(--primary-light) !important;
}

.tabulator .tabulator-tableholder .tabulator-table .tabulator-row .tabulator-cell {
    border-right: none !important;
    padding: 0.6rem 0.75rem !important;
    color: var(--text-dark) !important;
}

.tabulator .tabulator-footer {
    background-color: var(--bg-light) !important;
    border-top: 1px solid #eee !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
}

.tabulator .tabulator-footer .tabulator-page {
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
    padding: 0.25rem 0.65rem !important;
    margin: 0 0.15rem !important;
    color: var(--primary) !important;
    background: #fff !important;
    font-size: 0.8rem !important;
}

.tabulator .tabulator-footer .tabulator-page:hover {
    background-color: var(--primary-light) !important;
}

.tabulator .tabulator-footer .tabulator-page.active {
    background-color: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

.tabulator .tabulator-footer .tabulator-page:disabled {
    opacity: 0.4 !important;
}

.tabulator .tabulator-footer .tabulator-page-size {
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.8rem !important;
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

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

/* ============================================================
   EMPTY STATE
   ============================================================ */

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ============================================================
   DOCUMENT PREVIEW
   ============================================================ */

.doc-preview {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
}

.doc-preview img {
    max-width: 100%;
    height: auto;
}

.doc-preview iframe {
    width: 100%;
    height: 500px;
    border: none;
}

.doc-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================================
   VOUCHER DISPLAY
   ============================================================ */

.voucher-card {
    border: 2px solid var(--primary);
    border-radius: 1rem;
    padding: 2rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.voucher-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 61, 165, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.voucher-card .voucher-header {
    text-align: center;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.voucher-card .voucher-serie {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.05em;
}

.voucher-card .voucher-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* ============================================================
   CATALOG PAGINATION
   ============================================================ */

.catalog-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.catalog-pag-info {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.catalog-pag-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.catalog-pag-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 2rem;
    text-decoration: none;
    transition: all 0.2s;
}

.catalog-pag-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    text-decoration: none;
}

.catalog-pag-btn.disabled {
    opacity: 0.35;
    pointer-events: none;
}

.catalog-pag-numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0 0.25rem;
}

.catalog-pag-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    background: #fff;
    border: 1px solid #dee2e6;
    text-decoration: none;
    transition: all 0.2s;
}

.catalog-pag-num:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
}

.catalog-pag-num.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 61, 165, 0.3);
}

@media (max-width: 575.98px) {
    .catalog-pag-controls {
        gap: 0.35rem;
    }
    .catalog-pag-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    .catalog-pag-btn span { display: none; }
    .catalog-pag-num {
        width: 2rem;
        height: 2rem;
        font-size: 0.82rem;
    }
}

/* ============================================================
   CATEGORY CARDS (CATALOG)
   ============================================================ */

.category-card {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

.category-card .category-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.category-card .category-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.category-card .category-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================================
   NEWS CARDS
   ============================================================ */

.news-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 0.75rem 0.75rem 0 0;
}

.news-card-img-placeholder {
    background: linear-gradient(135deg, var(--primary-light) 0%, #d6e4f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.4;
}

.news-card .news-date {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.news-card .news-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0.4rem 0;
    line-height: 1.4;
}

.news-card:hover .news-title {
    color: var(--primary);
}

/* Single stire hero */
.stire-hero {
    background-size: cover;
    background-position: center;
    background-color: var(--primary-dark);
    min-height: 320px;
    display: flex;
    align-items: flex-end;
}

.stire-hero-overlay {
    width: 100%;
    padding: 4rem 0 2.5rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
}

.stire-hero .breadcrumb-light .breadcrumb-item a {
    color: rgba(255,255,255,0.7);
}

.stire-hero .breadcrumb-light .breadcrumb-item.active {
    color: rgba(255,255,255,0.5);
}

.stire-hero .breadcrumb-light .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.4);
}

.stire-hero-date {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}

.stire-hero-title {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.25;
    max-width: 700px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.stire-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #333;
}

@media (max-width: 767.98px) {
    .stire-hero {
        min-height: 240px;
    }
    .stire-hero-title {
        font-size: 1.5rem;
    }
}

/* ============================================================
   FOCUS VISIBLE (WCAG)
   ============================================================ */

*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.btn:focus-visible {
    box-shadow: 0 0 0 0.25rem rgba(0, 61, 165, 0.5);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 767.98px) {
    .hero-section {
        padding: 2.5rem 0 2rem;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card .stat-value {
        font-size: 1.5rem;
    }

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

    .footer-main .footer-logos {
        justify-content: center;
    }

    .db-content-body {
        padding: 1rem;
    }

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

@media (max-width: 575.98px) {
    .datatable-container .datatable-header {
        flex-direction: column;
    }
}

/* ============================================================
   UTILITIES
   ============================================================ */

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

.border-primary {
    border-color: var(--primary) !important;
}

.rounded-lg {
    border-radius: 0.75rem !important;
}

.shadow-soft {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.min-vh-50 {
    min-height: 50vh;
}
