
/* =========================================
   ADMIN PANEL STYLES
   ========================================= */
body, html {
    height: 100%;
    margin: 0;
    font-family: 'Inter', sans-serif;
    overflow: hidden; 
}

.admin-wrapper {
    height: 100vh;
    overflow: hidden;
    display: flex; /* Ensure d-flex is working */
}

/* Sidebar Styles */
.admin-sidebar {
    width: 260px;
    height: 100vh;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 1050;
    background-color: #1e1e2d !important;
    flex-shrink: 0; /* <--- SABSE ZAROORI: Isse sidebar auto-squeeze nahi hoga */
}

/* Sidebar Menu */
.sidebar-menu {
    flex-grow: 1;
    overflow-y: auto;
}

/* ... (Baki nav-link aur hover styles wahi rahenge jo aapne diye hain) ... */

.sidebar-menu .nav-link {
    color: #a1a5b7;
    padding: 12px 25px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    white-space: nowrap; /* Isse text line break nahi hoga */
}

.sidebar-menu .nav-link.active {
    color: #ffffff;
    background-color: #e31e25; 
    border-left-color: #ffffff;
}

/* ========================================================
   DESKTOP MINI SIDEBAR (ICONS ONLY) 
   ======================================================== */
@media (min-width: 768px) {
    .admin-sidebar.collapsed {
        width: 75px !important;
        min-width: 75px !important; /* Lock width when collapsed */
    }

    .admin-sidebar.collapsed .sidebar-header h3,
    .admin-sidebar.collapsed .nav-item small,
    .admin-sidebar.collapsed .nav-link span { /* Text ko hide karne ke liye */
        display: none !important;
    }

    .admin-sidebar.collapsed .nav-link {
        font-size: 0; 
        text-align: center;
        padding: 15px 0;
    }

    .admin-sidebar.collapsed .nav-link i {
        font-size: 1.25rem; 
        margin: 0 !important;
        display: inline-block;
        width: 100%;
    }

    .admin-sidebar.collapsed .sidebar-header {
        justify-content: center !important;
        padding: 15px 0 !important;
    }
}

/* ======================================================== */

/* Main Content Styles */
.admin-main {
    flex-grow: 1; /* Main content bachi hui saari jagah lega */
    min-width: 0;  /* Bahut important: Isse content sidebar ko dhakkal nahi payega */
    height: 100vh;
    overflow: hidden;
    background-color: #f5f8fa;
    display: flex;
    flex-direction: column;
}

.admin-body {
    overflow-y: auto;
    flex-grow: 1;
}

/* ... (Custom Scrollbar aur Responsive Adjustments wahi rahenge) ... */

/*
    ===================================================
        ADMIN INDEX INTERNAL CSS
    ===================================================
  */

  
/* Admin Stats Cards */
.admin-stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 12px;
}
.admin-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
}

/* Icon Background Colors */
.icon-box {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.bg-primary-light { background-color: rgba(13, 110, 253, 0.1); }
.bg-success-light { background-color: rgba(25, 135, 84, 0.1); }
.bg-warning-light { background-color: rgba(255, 193, 7, 0.1); }
.bg-danger-light { background-color: rgba(227, 30, 37, 0.1); } /* Red text color is custom DMPL red */
.text-danger { color: #e31e25 !important; }

/* Table Styles */
.admin-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}
.admin-table td {
    vertical-align: middle;
    padding: 1rem 0.5rem;
}

/* =========================================
   ADD NEW POST
   ========================================= */
   
/* Featured Image Upload Box */
.border-dashed {
    border-style: dashed !important;
    border-color: #cbd5e1 !important;
}

.featured-img-box {
    transition: all 0.3s ease;
}

.featured-img-box:hover {
    background-color: #f1f5f9 !important;
    border-color: #94a3b8 !important;
}

/* Make Cursor Pointer for clickable items */
.cursor-pointer {
    cursor: pointer;
}

/* Tiny Custom Scrollbar for Category Box */
.category-scroll-box::-webkit-scrollbar { width: 4px; }
.category-scroll-box::-webkit-scrollbar-track { background: #f1f1f1; }
.category-scroll-box::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* =========================================
   MOBILE SIDEBAR
   ========================================= */

@media (max-width: 767px) {

    body{
        overflow-x: hidden;
    }

    .admin-sidebar{
        position: fixed;
        top: 0;
        left: -260px;
        width: 260px;
        min-width: 260px;
        height: 100vh;
        z-index: 1060;
    }

    .admin-sidebar.active{
        left: 0;
    }

    .admin-main{
        width: 100%;
        min-width: 100%;
    }

    .admin-wrapper{
        overflow-x: hidden;
    }
}