/* =====================================
   FULLY CLEANED & ORGANIZED GLOBAL CSS
   Author: LS COMMUNICATIONS
===================================== */

/* ------------------
   FONT & BODY
------------------ */

@font-face {
    font-family: "Kalpurush";
    src: url("../fonts/Kalpurush.ttf") format("truetype");
}

body {
    font-family: "Kalpurush", sans-serif !important;
    color: #333;
    background-color: #f4f5f7;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Kalpurush", sans-serif !important;
}

/* ==================
   TOPBAR
================== */

.app-topbar {
    height: 60px;
    background: linear-gradient(135deg, #3b154e, #5e277a);
    padding: 12px 0;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1030;
}

.topbar-button,
.topbar-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    padding: 8px 10px;
    border-radius: 10px;
    color: #fff;
    transition: 0.25s ease;
}

.topbar-button:hover,
.topbar-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: 0.25s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.user-dropdown {
    min-width: 180px;
    border-radius: 12px !important;
    padding: 10px 0;
    background: #fff;
    animation: dropdownFade 0.25s ease;
}

.user-dropdown .dropdown-item {
    padding: 10px 18px;
    font-size: 15px;
    border-radius: 8px;
}

.user-dropdown .dropdown-item:hover {
    background: rgba(59, 21, 78, 0.1);
    color: #3b154e;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.modern-sidebar,
.app-sidebar {
    width: 250px;
    background: linear-gradient(180deg, #f8f9fa 0%, #eef3ff 100%);
    border-right: 1px solid #dfe3ee;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 70px;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.app-sidebar:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.sidebar-logo {
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #f3f3f3;
}

.sidebar-logo img {
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.sidebar-logo img:hover {
    transform: scale(1.05);
}

.sidebar-scroll {
    height: calc(100vh - 90px);
    padding: 20px 15px;
    overflow-y: auto;
}

.sidebar-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #8a8a8a;
    text-transform: uppercase;
    margin: 20px 0 8px;
    padding-left: 10px;
}

/* ------------------
   Sidebar Nav
------------------ */

.sidebar-nav li {
    list-style: none;
}

.sidebar-nav li a,
.nav-item .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin: 4px 8px;
    border-radius: 10px;
    color: #495057;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.sidebar-nav li a:hover,
.nav-link:hover {
    background-color: #dfe8ff;
    color: #0d6efd;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-link.active,
.sidebar-nav a.active {
    background-color: #e3eeff;
    color: #0d6efd !important;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.2);
}

.nav-icon iconify-icon {
    font-size: 1.2rem;
    margin-right: 8px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.nav-link:hover .nav-icon iconify-icon {
    color: #0d6efd;
    transform: scale(1.1);
}

.sub-navbar-nav {
    padding-left: 0.5rem;
}

.sub-nav-item {
    margin-bottom: 4px;
}

.sub-nav-link {
    padding: 8px 20px;
    font-size: 0.9rem;
    color: #495057;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.sub-nav-link:hover {
    background-color: #cfe0ff;
    color: #0d6efd;
    box-shadow: inset 2px 0 0 #0d6efd;
}

.menu-arrow[aria-expanded="true"] .arrow-icon iconify-icon {
    transform: rotate(180deg);
    transition: transform 0.25s ease;
}

/* Collapsed Sidebar */

.sidebar-collapsed .modern-sidebar,
.sidebar-collapsed .app-sidebar {
    width: 70px;
}

.sidebar-collapsed .sidebar-title {
    display: none;
}

.sidebar-collapsed .sidebar-nav a span {
    display: none;
}

.sidebar-collapsed .sidebar-nav a {
    justify-content: center;
}

/* ==================
   PAGE CONTENT
================== */

.page-content {
    padding: 0.75rem;
    margin-left: 250px;
    transition: 0.3s ease;
}

.sidebar-collapsed .page-content {
    margin-left: 70px;
}

/* ==================
   CARDS & PROFILE
================== */

.card-body {
    font-size: 15px;
    padding: 0.6rem;
}

.card-header {
    padding: 0.6rem;
}

.profile-card,
.profile-mini-card {
    background: #fff;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.profile-card:hover,
.profile-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f3f3f3;
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
}

/* ==================
   TABLES
================== */

/* Department Titles */

.dept-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #3b154e;
    margin: 15px 0;
    text-align: center;
}

/* ==================
   DATE HIGHLIGHT
================== */

.date-highlight {
    background: #e8f3ff;
    color: #0d6efd;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
}

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

@media (max-width: 768px) {
    .page-content {
        margin-left: 0;
    }
    .modern-sidebar,
    .app-sidebar {
        left: -250px;
    }
    .sidebar-open .modern-sidebar,
    .sidebar-open .app-sidebar {
        left: 0;
    }
    .report-title {
        font-size: 1.4rem;
    }
}

/* ==================
   BLRI Theme Colors
================== */

:root {
    --blri-primary: #3b154e;
    --blri-dark: #2a0f38;
    --blri-light: #f4f0f7;
}

/* Report Header */

.report-header {
    border-bottom: 4px solid var(--blri-primary);
    padding-bottom: 15px;
}

.report-header .logo {
    height: 85px;
}

.report-title {
    font-size: 25px;
    font-weight: bold;
    color: var(--blri-primary);
}

.report-sub {
    font-size: 18px;
    margin-top: 3px;
    color: #555;
}

.report-date {
    font-size: 18px;
    font-weight: 600;
    color: var(--blri-dark);
}

/* Footer Signature */

.signature {
    margin-top: 50px;
    text-align: right;
    font-size: 18px;
    line-height: 1.6;
    color: var(--blri-dark);
}

.container {
    background-color: #f8f9fa;
    /* হালকা ধূসর ব্যাকগ্রাউন্ড */
    padding: 20px;
    border-radius: 12px;
}

.table {
    background-color: #ffffff;
    /* সাদা টেবিল */
    color: #333;
    /* readable text */
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background-color: #3b154e;
    /* deep purple header */
    color: #fff;
    text-align: center;
    font-weight: 600;
}

.table td {
    color: #4a4a4a;
    font-size: 13px;
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: #eef3ff;
    transition: 0.25s ease;
}

.department-title {
    font-size: 18px;
    font-weight: 600;
    color: #3b154e;
    margin: 15px 0 10px 0;
    padding: 6px 0;
    text-align: center;
    border-bottom: 2px solid #3b154e;
}
