/* HisabMittra Brand Colors */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --white: #FFFFFF;
    --dark: #1A1A1A;
    --gray: #6c757d;
    --light: #f8f9fa;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background-color: var(--light);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    background-color: var(--secondary-color);
    color: var(--white);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
}

.sidebar .logo {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.sidebar .logo h3 {
    color: var(--white);
    font-size: 22px;
    font-weight: 600;
}

.sidebar-menu {
    list-style: none;
    padding: 8px 0 20px;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.4);
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-menu li a:hover {
    background-color: rgba(255,255,255,0.1);
}

.sidebar-menu li a.active {
    background-color: rgba(255,255,255,0.15);
    border-left-color: var(--primary-color);
}

.sidebar-menu li a i {
    margin-right: 10px;
    width: 20px;
}

/* Topbar */
.topbar {
    position: fixed;
    top: 0;
    left: 260px;
    right: 0;
    height: 60px;
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 999;
}

.topbar-left {
    display: flex;
    align-items: center;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

/* Main Content */
.main-content {
    margin-left: 260px;
    margin-top: 60px;
    padding: 30px;
    min-height: calc(100vh - 60px);
}

/* Stat Cards */
.stat-card {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.stat-card .icon-box {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
}

.stat-card .icon-box.red { background-color: var(--primary-color); }
.stat-card .icon-box.navy { background-color: var(--secondary-color); }
.stat-card .icon-box.success { background-color: #28a745; }
.stat-card .icon-box.warning { background-color: #ffc107; }
.stat-card .icon-box.info { background-color: #17a2b8; }

.stat-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 10px 0 5px;
    color: var(--dark);
}

.stat-card p {
    font-size: 14px;
    color: var(--gray);
    margin: 0;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline-primary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.card-header {
    background-color: var(--white);
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

/* Badges */
.badge-cream {
    background-color: var(--light);
    color: var(--dark);
}

/* Tables */
.table-hover tbody tr:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

/* Notifications */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar section labels */
.sidebar-menu .sidebar-section {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    padding: 16px 20px 4px;
    cursor: default;
}

/* Responsive */
@media (max-width: 768px) {    .sidebar {
        left: -260px;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .topbar, .main-content {
        margin-left: 0;
        left: 0;
    }
}

/* Status badges */
.status-open { background-color: #17a2b8; }
.status-progress { background-color: #ffc107; }
.status-resolved { background-color: #28a745; }
.status-closed { background-color: #6c757d; }
.status-paid { background-color: #28a745; }
.status-unpaid { background-color: #dc3545; }
.status-partial { background-color: #ffc107; }

/* Kanban Board */
.kanban-column {
    background-color: var(--light);
    border-radius: 8px;
    padding: 15px;
    min-height: 500px;
}

.kanban-card {
    background-color: var(--white);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    cursor: move;
}

.kanban-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}
