/* Custom CSS - SIMAS Admin Dashboard Theme */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #64748b;
    --sidebar-bg: #0f172a;
    --sidebar-hover: #1e293b;
    --sidebar-active: #312e81;
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Sidebar Styling */
#wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

#sidebar-wrapper {
    min-width: 260px;
    max-width: 260px;
    background-color: var(--sidebar-bg);
    color: #94a3b8;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
}

#sidebar-wrapper .sidebar-heading {
    padding: 1.5rem 1.25rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#sidebar-wrapper .sidebar-heading i {
    color: #818cf8;
}

#sidebar-wrapper .list-group-item {
    border: none;
    padding: 0.85rem 1.25rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: #94a3b8;
    background: transparent;
    border-radius: 8px;
    margin: 0.2rem 0.75rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

#sidebar-wrapper .list-group-item i {
    font-size: 1.15rem;
    margin-right: 0.75rem;
    transition: transform 0.2s ease;
}

#sidebar-wrapper .list-group-item:hover {
    color: #ffffff;
    background-color: var(--sidebar-hover);
}

#sidebar-wrapper .list-group-item:hover i {
    transform: translateX(3px);
}

#sidebar-wrapper .list-group-item.active {
    color: #ffffff;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
    font-weight: 600;
}

.sidebar-category {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #64748b;
    font-weight: 700;
    padding: 1.2rem 1.5rem 0.4rem;
}

/* Page Content Styling */
#page-content-wrapper {
    width: 100%;
    overflow-x: hidden;
}

.main-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 1.5rem;
}

.content-container {
    padding: 1.75rem 2rem;
}

/* Stat Cards */
.card-stat {
    border: none;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.card-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.icon-box {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.icon-indigo { background: #e0e7ff; color: #4f46e5; }
.icon-emerald { background: #d1fae5; color: #059669; }
.icon-amber { background: #fef3c7; color: #d97706; }
.icon-rose { background: #ffe4e6; color: #e11d48; }

/* Custom Tables & Cards */
.card-custom {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    background: #ffffff;
}

.card-custom .card-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.table th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    color: var(--text-muted);
    background-color: #f8fafc;
    padding: 0.9rem 1rem;
    border-bottom: 2px solid var(--border-color);
}

.table td {
    padding: 0.9rem 1rem;
    vertical-align: middle;
    font-size: 0.92rem;
}

/* Custom Badges */
.badge-soft-success { background: #d1fae5; color: #065f46; font-weight: 600; padding: 0.4em 0.7em; }
.badge-soft-warning { background: #fef3c7; color: #92400e; font-weight: 600; padding: 0.4em 0.7em; }
.badge-soft-danger { background: #fee2e2; color: #991b1b; font-weight: 600; padding: 0.4em 0.7em; }
.badge-soft-info { background: #e0f2fe; color: #075985; font-weight: 600; padding: 0.4em 0.7em; }
.badge-soft-secondary { background: #f1f5f9; color: #475569; font-weight: 600; padding: 0.4em 0.7em; }

/* QR Code Sticker Box */
.qr-card {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    background: #ffffff;
}

.qr-card img {
    max-width: 160px;
    height: auto;
}

/* Print Stylesheet */
@media print {
    #sidebar-wrapper, .main-navbar, .btn-print-hide, .dataTables_length, .dataTables_filter, .dataTables_paginate {
        display: none !important;
    }
    #page-content-wrapper {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .content-container {
        padding: 0 !important;
    }
    .card-custom {
        border: none !important;
        box-shadow: none !important;
    }
}
