/* ============================================
   MODERN SIDEBAR
   ============================================ */

.vertical-menu {
    width: 260px;
    position: fixed;
    top: 70px;
    bottom: 0;
    background: linear-gradient(180deg, #0f172a 0%, #111827 45%, #0b1220 100%);
    border-right: 1px solid rgba(255,255,255,0.03);
    box-shadow: inset -1px 0 0 rgba(255,255,255,0.02), 8px 0 24px rgba(0,0,0,0.25);
    z-index: 1000;
    transition: width 0.25s ease, background 0.25s ease;
}

#sidebar-menu {
    padding: 1.5rem 0;
}

#sidebar-menu .menu-title {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
}

#sidebar-menu .metismenu li {
    position: relative;
}

#sidebar-menu .metismenu li a {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    border-left: 3px solid transparent;
    letter-spacing: 0.2px;
}

#sidebar-menu .metismenu li a:hover {
    background: rgba(99, 102, 241, 0.12);
    color: #c7d2fe;
    border-left-color: var(--primary);
}

#sidebar-menu .metismenu li a.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.15) 0%, transparent 100%);
    color: var(--primary-light);
    border-left-color: var(--primary);
}

#sidebar-menu .metismenu li a i {
    min-width: 2rem;
    font-size: 1.2rem;
    margin-right: 0.75rem;
    color: #e5e7eb;
    opacity: 0.9;
}

#sidebar-menu .metismenu li a:hover i {
    color: #c7d2fe;
}

/* Submenu */
#sidebar-menu .metismenu .sub-menu {
    list-style: none;
    padding-left: 0;
    background: rgba(0, 0, 0, 0.2);
}

#sidebar-menu .metismenu .sub-menu li a {
    padding-left: 4rem;
    font-size: 0.9rem;
    border-left: none;
    position: relative;
}

#sidebar-menu .metismenu .sub-menu li a::before {
    content: "";
    position: absolute;
    left: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: all 0.2s ease;
}

#sidebar-menu .metismenu .sub-menu li a:hover::before {
    background: var(--primary-light);
    transform: translateY(-50%) scale(1.5);
}

/* ============================================
   MODERN TOPBAR
   ============================================ */

#page-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1002;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    height: 70px;
}

.navbar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 1rem;
    gap: 0.5rem;
}

.navbar-brand-box {
    width: 260px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 1rem 0 0.75rem;
    height: 70px;
    background: var(--bg-secondary);
}

.navbar-brand-box .logo img {
    height: 48px;
    transition: all 0.3s ease;
    object-fit: contain;
}

.navbar-brand-box .logo {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    justify-content: flex-start;
}

.navbar-brand-box .logo:hover img {
    transform: scale(1.05);
}

/* Logo swap / center when sidebar collapsed */
.logo-sm { display: none; }
.logo-lg { display: inline-block; }

body.vertical-collapsed .navbar-brand-box {
    width: 72px;
    padding: 0;
    justify-content: center;
    background: var(--bg-secondary);
}

body.vertical-collapsed .logo-sm { display: inline-block; }
body.vertical-collapsed .logo-lg { display: none; }

#vertical-menu-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
}

#vertical-menu-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
}

.header-item {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
}

.header-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    margin-left: 260px;
    padding-top: 70px;
    min-height: 100vh;
    transition: all 0.3s ease;
}

.page-content {
    padding: 2rem;
}

.container-fluid {
    max-width: 100%;
    padding: 0 1rem;
}

/* ============================================
   PAGE TITLE
   ============================================ */

.page-title-box {
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.page-title-box h4 {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--text-muted);
}

.breadcrumb-item.active {
    color: var(--primary-light);
}

/* ============================================
   STATS CARDS
   ============================================ */

.stats-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(99, 102, 241, 0.05) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stats-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    transition: all 0.5s ease;
}

.stats-card:hover::before {
    top: -30%;
    right: -30%;
}

.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.stats-card .stats-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: var(--shadow-lg);
}

.stats-card .stats-content {
    position: relative;
    z-index: 1;
}

.stats-card .stats-title {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stats-card .stats-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

/* ============================================
   DASHBOARD CARDS
   ============================================ */

.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-card .card-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

.dashboard-card .card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.dashboard-card .card-body {
    flex: 1;
    padding: 1.5rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    margin-top: 3rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modern-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease forwards;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .vertical-menu {
        left: -260px;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .navbar-brand-box {
        width: auto;
    }
    
    .page-content {
        padding: 1rem;
    }
}

/* Desktop collapsed sidebar adjustments */
@media (min-width: 992px) {
    /* Remove dim overlay on desktop when toggling sidebar */
    body.sidebar-enable::before {
        display: none;
    }

    /* Compact sidebar width when collapsed (requires body.vertical-collapsed class set by toggle) */
    body.vertical-collapsed .vertical-menu {
        width: 72px;
    }

    body.vertical-collapsed .navbar-brand-box {
        width: 72px;
        padding-left: 0;
    }

    body.vertical-collapsed .main-content {
        margin-left: 72px;
    }

    body.vertical-collapsed #sidebar-menu .menu-title {
        display: none;
    }

    body.vertical-collapsed #sidebar-menu .metismenu li a {
        padding: 0.85rem 0.4rem;
        justify-content: center;
    }

    body.vertical-collapsed #sidebar-menu .metismenu li a i {
        margin-right: 0;
    }

    body.vertical-collapsed #sidebar-menu .metismenu .sub-menu {
        display: none;
    }
}

/* Mobile menu active state */
body.sidebar-enable .vertical-menu {
    left: 0;
}

body.sidebar-enable::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Desktop collapsed sidebar adjustments */
@media (min-width: 992px) {
    body.sidebar-enable::before {
        display: none;
    }

    body.vertical-collapsed .vertical-menu {
        width: 72px;
    }

    body.vertical-collapsed .navbar-brand-box {
        width: 72px;
        padding-left: 0;
    }

    body.vertical-collapsed .main-content {
        margin-left: 72px;
    }

    body.vertical-collapsed #sidebar-menu .menu-title {
        display: none;
    }

    body.vertical-collapsed #sidebar-menu .metismenu li a {
        padding: 0.85rem 0.4rem;
        justify-content: center;
        border-left: none;
    }

    body.vertical-collapsed #sidebar-menu .metismenu li a i {
        margin-right: 0;
    }

    body.vertical-collapsed #sidebar-menu .metismenu .sub-menu {
        display: none;
    }
}

/* ============================================
   MAP CONTAINER
   ============================================ */

.amef-map {
    min-height: 500px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ============================================
   CHARTS STYLING
   ============================================ */

canvas {
    max-width: 100%;
    height: auto !important;
}

.chart-loader {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   WELCOME BANNER
   ============================================ */

.welcome-banner {
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* ============================================
   TOOLTIPS
   ============================================ */

.tooltip-inner {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--border-color);
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: var(--border-color);
}

/* ============================================
   MODALS
   ============================================ */

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid var(--border-color);
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    border-radius: var(--border-radius-sm);
    border: 1px solid;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--info);
    color: var(--info);
}

/* ============================================
   DROPDOWN
   ============================================ */

.dropdown-menu {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
}

.dropdown-item {
    color: var(--text-secondary);
    border-radius: 6px;
    padding: 0.65rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
}

.dropdown-divider {
    border-color: var(--border-color);
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    gap: 0.5rem;
}

.page-link {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
}

.page-link:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    color: var(--primary-light);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--primary);
    color: white;
}

/* ============================================
   BREADCRUMB MODERN
   ============================================ */

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* ============================================
   SELECT2 DARK THEME
   ============================================ */

.select2-container--bootstrap-5 .select2-selection {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.select2-container--bootstrap-5 .select2-dropdown {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

.select2-container--bootstrap-5 .select2-results__option {
    color: var(--text-secondary);
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
}

/* ============================================
   DATATABLES MODERN STYLING
   ============================================ */

.dataTables_wrapper {
    color: var(--text-primary);
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 0.75rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--text-secondary) !important;
}

.dataTables.wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(99, 102, 241, 0.1) !important;
    color: var(--primary-light) !important;
    border-color: var(--primary) !important;
}

/* ============================================
   DEVICE STATUS CARD - Ticket Page
   ============================================ */

.device-info-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.device-status-item {
    padding: 1rem;
    background: rgba(15, 23, 42, 0.3);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.device-status-item:hover {
    background: rgba(99, 102, 241, 0.05);
    border-left-color: var(--primary);
}

.revision-warning-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.05) 100%);
    border-left: 3px solid var(--warning);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.intervention-details-box {
    background: rgba(99, 102, 241, 0.1);
    border-left: 3px solid var(--primary);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

.intervention-details-box:hover {
    background: rgba(99, 102, 241, 0.15);
}

/* ============================================
   ACCORDION CUSTOM STYLING
   ============================================ */

.accordion-button:not(.collapsed) {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
}

.accordion-button::after {
    filter: brightness(0) invert(1);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--border-color);
}

/* ============================================
   TICKETS CARDS - Ultra Compact + Alert System
   ============================================ */

/* Compact Header for Tickets Page */
.tickets-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem !important;
    gap: 1rem;
    flex-wrap: wrap;
}

.tickets-search-compact {
    max-width: 200px;
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
}

.tickets-add-btn-compact {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.tickets-add-btn-compact i {
    font-size: 0.85rem;
}

.tickets-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.ticket-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 2px solid rgba(51, 65, 85, 0.6);
    border-radius: 8px;
    padding: 0.65rem;
    cursor: pointer;
    transition: none;
    position: relative;
    overflow: hidden;
    font-size: 0.75rem;
}

.ticket-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--success) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.ticket-card:hover {
    border-color: inherit;
    transform: none;
    box-shadow: none;
}

.ticket-card:hover::before {
    transform: none;
}

/* ============================================
   URGENT TICKETS - Flash Animation
   ============================================ */

.ticket-card.ticket-urgent {
    animation: urgentFlash 2s ease-in-out infinite;
    border-color: var(--danger);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(30, 41, 59, 0.95) 100%);
}

.ticket-card.ticket-urgent::before {
    background: linear-gradient(90deg, var(--danger) 0%, #dc2626 100%);
    transform: scaleX(1);
}

.ticket-card.ticket-urgent .ticket-card-header {
    border-bottom-color: rgba(239, 68, 68, 0.3);
    /* padding-top added inline when badge exists */
}

@keyframes urgentFlash {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
        border-color: rgba(239, 68, 68, 0.8);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(239, 68, 68, 0.6);
        border-color: #ef4444;
    }
}

.ticket-urgent-badge {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.15rem 0.4rem;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
    animation: urgentPulse 1.5s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 10; /* Above header */
}

@keyframes urgentPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.95;
    }
}

.ticket-urgent-badge i {
    font-size: 0.65rem;
    animation: urgentBlink 1s ease-in-out infinite;
}

@keyframes urgentBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Status top-right badge (non-urgent/non-busy) */
.ticket-status-top {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 10;
}

.ticket-status-top i {
    font-size: 0.75rem;
}

/* ============================================
   BUSY TICKET
   ============================================ */

.ticket-card.ticket-busy {
    border-color: rgba(251, 191, 36, 0.5);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, rgba(30, 41, 59, 0.95) 100%);
}

.ticket-card.ticket-waiting {
    border-color: rgba(251, 191, 36, 0.7);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.14) 0%, rgba(30, 41, 59, 0.95) 100%);
}

.ticket-busy-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(251, 191, 36, 0.2);
    color: var(--warning);
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    animation: none;
}

/* ============================================
   HEADER - Ultra Compact
   ============================================ */

.ticket-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.ticket-badges {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
    white-space: nowrap;
    overflow: visible;
    margin-left: auto;
    flex: 0 1 auto;
}

.ticket-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary);
}

.ticket-badge i {
    font-size: 0.85rem;
}

.badge-lock {
    background: linear-gradient(135deg, rgba(251,191,36,0.2) 0%, rgba(251,191,36,0.1) 100%);
    color: #facc15;
    border-color: rgba(251,191,36,0.4);
}

.badge-status.badge-nou { color: #60a5fa; border-color: rgba(59,130,246,0.3); }
.badge-status.badge-in-lucru { color: #fbbf24; border-color: rgba(251,191,36,0.35); }
.badge-status.badge-in-asteptare { color: #a855f7; border-color: rgba(168,85,247,0.35); }
.badge-status.badge-asteptare { color: #fbbf24; border-color: rgba(251,191,36,0.45); background: rgba(251,191,36,0.08); }
.badge-status.badge-finalizat { color: #4ade80; border-color: rgba(34,197,94,0.35); }

.badge-urgent {
    background: linear-gradient(135deg, rgba(239,68,68,0.22) 0%, rgba(239,68,68,0.12) 100%);
    color: #fca5a5;
    border-color: rgba(239,68,68,0.35);
}

.badge-days {
    background: rgba(255,255,255,0.06);
    color: var(--text-secondary);
    border-color: rgba(255,255,255,0.12);
}

/* ============================================
   BODY - F?r? Label-uri, Super Compact
   ============================================ */

.ticket-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.ticket-info-block {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.4rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 5px;
    transition: all 0.2s ease;
}

.ticket-info-block:hover {
    background: rgba(99, 102, 241, 0.08);
}

.ticket-info-icon {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
}

.ticket-info-icon.bg-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.ticket-info-icon.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
}

.ticket-info-icon.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.ticket-info-content {
    flex: 1;
    min-width: 0;
    line-height: 1.2;
}

/* Removed labels, direct values only */
.ticket-info-value {
    font-size: 0.75rem;
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-word;
}

.ticket-info-value strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
}

.ticket-info-value small {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.1rem;
}

/* ============================================
   DATES - Compact
   ============================================ */

.ticket-dates {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.35rem 0.4rem;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 5px;
    border-left: 2px solid var(--primary);
}

.ticket-date-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.ticket-date-item i {
    font-size: 0.75rem;
    flex-shrink: 0;
}

.ticket-date-item strong {
    font-weight: 600;
}

/* ============================================
   USER - Compact
   ============================================ */

.ticket-user {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.4rem;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 5px;
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.ticket-user i {
    font-size: 0.85rem;
    color: var(--primary-light);
}

/* ============================================
   FOOTER - Ultra Compact Buttons
   ============================================ */

.ticket-card-footer {
    display: flex;
    gap: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(51, 65, 85, 0.5);
}

.ticket-card-footer .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-weight: 500;
    padding: 0.3rem 0.4rem;
    font-size: 0.65rem;
    border-radius: 5px;
}

.ticket-card-footer .btn i {
    font-size: 0.75rem;
}

/* ============================================
   EMPTY & LOADING STATES
   ============================================ */

.tickets-empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
}

.tickets-empty-state i {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.3;
}

.tickets-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.6rem;
    padding: 2.5rem;
    color: var(--text-muted);
}

.tickets-loading .spinner-border {
    width: 2rem;
    height: 2rem;
}
.tickets-pagination {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.tickets-pagination-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
}

.tickets-pagination-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
    min-width: 120px;
    text-align: center;
}

/* ============================================
   VIEW TOGGLE
   ============================================ */

.btn-group .btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1600px) {
    .tickets-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 1200px) {
    .tickets-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .tickets-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .ticket-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}
