body.login-body {
    margin: 0;
    height: 100vh;
    background: 
         linear-gradient(rgba(0, 70, 160, 0.6), rgba(255, 0, 149, 0.4)),
         url('../assets/images/vet.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 100px;  
}

/* Headline text */
.login-hero-text {
    position: absolute;
    left: 60px;
    top: 6%;
    max-width: 500px;
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 35px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===== SIDEBAR - DARK NAVY THEME (Matches Admin) ===== */

.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #f1f5f9;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}


/* collapsed width */
.sidebar.collapsed {
    width: 80px;
}

/* REMOVE LI PADDING (important for centering) */
.sidebar ul li {
    padding: 6px 10px;
}

/* menu link */
.sidebar ul li a {
    text-decoration: none;
    color: #a8a7f3;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    padding: 12px 14px;
    border-radius: 8px;
    transition: .2s ease;
}

/* hover */
.sidebar ul li:hover {
    background: rgba(16, 19, 185, 0.18);
    border-left: 4px solid #1b10b9;
}

/* ICON FIX — VERY IMPORTANT */
.sidebar ul li a i {
    font-size: 18px;
    min-width: 22px;
    text-align: center;
}

/* =============================
   PERFECT COLLAPSE
============================= */

/* hide text */
.sidebar.collapsed ul li a span {
    display: none;
}

/* center icons */
.sidebar.collapsed ul li a {
    justify-content: center;
    padding: 14px 0;
}

/* remove left border when collapsed */
.sidebar.collapsed ul li:hover {
    border-left: none;
}

/* center list */
.sidebar.collapsed ul li {
    text-align: center;
}

/* brand hide */
.sidebar.collapsed .brand {
    font-size: 0;
}

/* keep paw visible */
.sidebar.collapsed .brand i {
    font-size: 22px;
    margin-right: 0 !important;
}

/* arrow animation */
.toggle-btn i {
    transition: .25s ease;
}

.sidebar.collapsed .toggle-btn i {
    transform: rotate(180deg);
}



/* ===== CONTENT AREA ===== */

.content {
    margin-left: 250px;
    padding: 20px;
    transition: all 0.3s ease;
    min-height: 100vh;
    background: #f1f5f9;
}

.sidebar.collapsed ~ .content {
    margin-left: 80px;
}


/* Toggle button */
.toggle-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-btn:hover {
    background: rgba(255,255,255,0.2);
}


/* ===== BRAND LOGO ===== */
.logo{
    padding:20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.brand{
    font-weight:700;
    font-size:20px;
    white-space:nowrap;
    color:#fff;
    display:flex;
    align-items:center;
    gap:10px;
}

.brand i{
    color:#60a5fa;
    font-size:26px;
}


/* =====================================================
   GLOBAL - CLEAN BASE
===================================================== */
body{
    background: #f8fafc;
    font-family:'Poppins',sans-serif;
    min-height: 100vh;
}




/* =====================================================
   LAYOUT
===================================================== */
.container-box{
    max-width:1250px;
    margin:auto;
    font-size:30px;
}


/* COLORS */
.stat-blue{ background:linear-gradient(135deg,#3b82f6,#2563eb); }
.stat-yellow{ background:linear-gradient(135deg,#f59e0b,#d97706); }
.stat-red{ background:linear-gradient(135deg,#ef4444,#dc2626); }

.stat-card small{
    font-weight:500;
}

.stat-card h3{
    margin:0;
    font-size:24px;
    font-weight:700;
}


/* =====================================================
   FILTER BAR - CLEAN STYLE
===================================================== */
.filter-box{
    background: #ffffff;
    padding:16px;
    border-radius:14px;
    box-shadow:0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}




/* =====================================================
   TABLE BOX - CLEAN STYLE
===================================================== */
.table-box{
    background: #ffffff;
    border-radius:14px;
    padding:18px;
    box-shadow:0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}




.table thead th{
    background:#111827;
    color:#fff;
    font-size:13px;
    letter-spacing:.4px;
}

/* =====================================================
   BADGES
===================================================== */
.badge-stock{
    padding:6px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:600;
}

/* =====================================================
   BUTTON ICON
===================================================== */
.btn-icon{
    width:34px;
    height:34px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:8px;
}

/* =====================================================
   PAGINATION
===================================================== */
.pagination .page-link{
    border-radius:8px;
    margin:0 3px;
    font-weight:500;
}
/* =============================
   COLLAPSE BEHAVIOR
============================= */

/* hide menu text when collapsed */
.sidebar.collapsed ul li a span{
    display:none;
}

/* center icons when collapsed */
.sidebar.collapsed ul li a{
    justify-content:center;
}

/* hide brand text */
.sidebar.collapsed .brand{
    font-size:0;
}

/* keep paw icon visible */
.sidebar.collapsed .brand i{
    font-size:22px;
    margin-right:0 !important;
}

/* rotate arrow when collapsed */
.sidebar.collapsed .toggle-btn i{
    transform:rotate(180deg);
    transition:.25s;
}
.sidebar.collapsed ul li a{
    padding:14px 0;
}

.sidebar.collapsed ul li{
    text-align:center;
}
/* =============================
   DASHBOARD STAT CARDS
============================= */

.stat-card{
    border-radius:14px;
    padding:16px 18px;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:80px;
    box-shadow:0 10px 24px rgba(0,0,0,0.08);
    transition:.25s ease;
}

.stat-card:hover{
    transform:translateY(-3px);
}

.stat-left{
    display:flex;
    align-items:center;
    gap:14px;
}

.stat-icon{
    font-size:32px;
}

.stat-card small{
    font-weight:500;
}

.stat-card h3{
    margin:0;
    font-size:26px;
    font-weight:700;
}


/* COLORS */

.bg-blue{ 
    background:linear-gradient(135deg,#3b82f6,#2563eb);
}

.bg-green{ 
    background:linear-gradient(135deg,#10b981,#059669);
}

.bg-cyan{ 
    background:linear-gradient(135deg,#06b6d4,#0891b2);
}

.bg-orange{ 
    background:linear-gradient(135deg,#f59e0b,#d97706);
}

.bg-purple{ 
    background:linear-gradient(135deg,#8b5cf6,#7c3aed);
}

/* BRAND FIX */
.sidebar .brand{
    font-weight:800;
    font-size:20px;
    display:flex;
    align-items:center;
    padding:0 20px;
}

.sidebar .brand i{
    font-size:30px;
}

.sidebar.collapsed .brand-text{
    display:none;
}

.sidebar.collapsed .brand{
    justify-content:center;
    padding:0;
}
/* =============================
   TABLE PROFESSIONAL ALIGN
============================= */

.table thead th{
    vertical-align: middle;
    white-space: nowrap;
}

.table tbody td{
    vertical-align: middle;
}
/* =============================
   NAV MENU - DARK NAVY THEME
============================= */

.nav-menu{
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    list-style:none;
    padding:16px 0;
    margin:0;
}

/* Custom scrollbar */
.nav-menu::-webkit-scrollbar{
    width: 4px;
}

.nav-menu::-webkit-scrollbar-track{
    background: rgba(255,255,255,0.05);
}

.nav-menu::-webkit-scrollbar-thumb{
    background: rgba(96, 165, 250, 0.5);
    border-radius: 2px;
}

.nav-menu li a{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 20px;
    color:#94a3b8;
    text-decoration:none;
    border-radius:10px;
    margin:4px 12px;
    transition:all 0.2s ease;
    font-size:14px;
    font-weight:500;
}

.nav-menu li a:hover,
.nav-menu li a.active{
    background:rgba(59, 130, 246, 0.15);
    color:#fff;
}

.nav-menu li a.active{
    background:rgba(59, 130, 246, 0.25);
    border-left:3px solid #60a5fa;
}

.nav-menu li a i{
    font-size:18px;
    min-width:22px;
    text-align:center;
}

/* Collapsed state - hide text */
.sidebar.collapsed .nav-menu li a span{
    display:none;
}

.sidebar.collapsed .nav-menu li a{
    justify-content:center;
    padding:14px 0;
    margin:4px 10px;
}

/* Logout Section */
.logout-section{
    flex-shrink: 0;
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.8) 20%);
}

.logout-section a{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 20px;
    color:#f87171;
    text-decoration:none;
    border-radius:10px;
    margin:0;
    transition:all 0.2s ease;
    font-size:14px;
    font-weight:500;
}

.logout-section a:hover{
    background:rgba(248, 113, 113, 0.15);
    color:#fca5a5;
}

.logout-section a i{
    font-size:18px;
    min-width:22px;
    text-align:center;
}

/* Collapsed logout */
.sidebar.collapsed .logout-section a span{
    display: none;
}

.sidebar.collapsed .logout-section a{
    justify-content: center;
    padding: 14px 0;
}

/* Tooltips for collapsed state */
.sidebar.collapsed .nav-menu li a,
.sidebar.collapsed .logout-section a{
    position: relative;
}

.sidebar.collapsed .nav-menu li a:hover::after,
.sidebar.collapsed .logout-section a:hover::after{
    content: attr(data-tooltip);
    position: absolute;
    left: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: #1e293b;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.sidebar.collapsed .nav-menu li a:hover::before,
.sidebar.collapsed .logout-section a:hover::before{
    content: '';
    position: absolute;
    left: 69px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: #1e293b;
    z-index: 1001;
}


/* =============================
   MAIN CONTENT - CLEAN BASE
============================= */

.main-content{
    margin-left:250px;
    min-height:100vh;
    background: #f1f5f9;
    padding:0;
    color:#1e293b;
    transition:margin-left 0.3s ease;
}

.sidebar.collapsed + .main-content,
.sidebar.collapsed ~ .main-content{
    margin-left:80px;
}

/* =============================
   PROFESSIONAL TOPBAR - DARK (Matches Admin)
============================= */

.topbar{
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #fff;
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 24px;
}

.topbar-content{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.topbar-title{
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-title i{
    color: #60a5fa;
    font-size: 20px;
}

.topbar-user{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.topbar-user i{
    font-size: 20px;
    color: #60a5fa;
}

.role-badge{
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Page Content */
.page-content{
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Responsive Topbar */
@media (max-width: 768px){
    .topbar{
        padding: 12px 16px;
    }
    
    .topbar-user span:not(.role-badge){
        display: none;
    }
    
    .topbar-title{
        font-size: 16px;
    }
}



/* =============================
   GLOBAL BUTTON STYLES
============================= */
.btn {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #059669, #047857);
    border: none;
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    color: #fff;
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: #fff;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    color: #fff;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
}

/* Icon Buttons */
.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 14px;
}

.btn-icon i {
    margin: 0;
}

/* =====================================================
   MINT THEME CARDS - WHITE CARDS FOR READABILITY
===================================================== */

.main-content .stat-card{
    background: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(6, 95, 70, 0.08);
    transition: all 0.25s ease;
    color: #064e3b;
}

.main-content .stat-card:hover{
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(6, 95, 70, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
}

.main-content .stat-card h3{
    color: #064e3b;
}

.main-content .stat-card small{
    color: #065f46;
}

.main-content .glass-panel{
    background: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(6, 95, 70, 0.08);
    padding: 20px;
    margin-bottom: 20px;
}

.main-content .welcome-card{
    background: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(6, 95, 70, 0.08);
    padding: 20px;
    margin-bottom: 20px;
}

/* =====================================================
   DROPDOWN FIX - MINT THEME
===================================================== */

.main-content .dropdown-menu{
    background: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.25);
    box-shadow: 0 8px 20px rgba(6, 95, 70, 0.15);
}

.main-content .dropdown-item{
    color: #064e3b;
}

.main-content .dropdown-item:hover{
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
}

/* =====================================================
   MODAL FIXES - GLOBAL Z-INDEX AND INTERACTION FIXES
===================================================== */

/* Ensure modals appear above sidebar (z-index: 1000) */
.modal {
    z-index: 1060 !important;
}

.modal-backdrop {
    z-index: 1055 !important;
}

/* Fix modal content interaction */
.modal-content {
    pointer-events: auto !important;
    position: relative;
    z-index: 1061 !important;
}

/* Ensure all modal sections are interactive */
.modal-header,
.modal-body,
.modal-footer {
    pointer-events: auto !important;
    position: relative;
    z-index: 1062 !important;
}

/* Fix close button clickability */
.btn-close {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 1063 !important;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.btn-close:hover {
    opacity: 1;
}

/* Ensure modal buttons are clickable */
.modal-footer .btn,
.modal-header .btn {
    pointer-events: auto !important;
    position: relative;
    z-index: 1063 !important;
}

/* Fix for modals inside table cells - ensure they escape stacking context */
td .modal {
    position: fixed !important;
}

/* Prevent table from creating stacking context that traps modals */
.table-responsive {
    overflow: visible !important;
}

/* Ensure modal dialog is properly centered and above everything */
.modal-dialog {
    position: relative;
    z-index: 1062 !important;
    pointer-events: auto !important;
}

/* Fix for any parent containers with transform/overflow that break fixed positioning */
.content {
    transform: none !important;
}

/* Ensure body doesn't prevent modal interaction */
body {
    overflow-x: visible;
}

/* Modal backdrop fade animation fix */
.modal-backdrop.show {
    opacity: 0.5;
}

/* Fix modal showing behind other elements */
.modal.show {
    display: block;
    opacity: 1;
}

.modal.fade.show {
    opacity: 1;
}
