/* ========================================================
   E-ProcurePro Custom Enterprise Styles
   ======================================================== */

:root {
    --primary-color: #1e3a8a;       /* Deep Navy */
    --primary-light: #3b82f6;       /* Blue */
    --sidebar-bg: #0f172a;          /* Slate 900 */
    --sidebar-hover: #1e293b;       /* Slate 800 */
    --sidebar-active: #2563eb;      /* Blue 600 */
    --card-border: #e2e8f0;
    --body-bg: #f8fafc;
}

body {
    background-color: var(--body-bg);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #334155;
    min-height: 100vh;
}

/* Sidebar */
#sidebar {
    width: 260px;
    min-height: 100vh;
    background: var(--sidebar-bg);
    transition: all 0.3s;
    z-index: 1000;
}

.sidebar-brand {
    padding: 1.25rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.sidebar-header {
    padding: 0.75rem 1.5rem 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-link i {
    width: 24px;
    font-size: 1rem;
    margin-right: 0.75rem;
    color: #94a3b8;
}

.sidebar-link:hover {
    color: #ffffff;
    background: var(--sidebar-hover);
}

.sidebar-link:hover i {
    color: #60a5fa;
}

.sidebar-link.active {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.2);
    border-left-color: #3b82f6;
}

.sidebar-link.active i {
    color: #60a5fa;
}

/* Main Content Area */
#main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Top Navbar */
.top-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--card-border);
    padding: 0.75rem 1.75rem;
}

/* Cards & Badges */
.card-modern {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.metric-card {
    border-radius: 10px;
    border-left: 4px solid var(--primary-light);
    background: #ffffff;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.metric-card.border-success { border-left-color: #10b981 !important; }
.metric-card.border-warning { border-left-color: #f59e0b !important; }
.metric-card.border-info    { border-left-color: #06b6d4 !important; }
.metric-card.border-danger  { border-left-color: #ef4444 !important; }

.metric-title {
    font-size: 0.825rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* Tables */
.table thead th {
    background-color: #f8fafc;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.table tbody td {
    vertical-align: middle;
    font-size: 0.9rem;
}

/* Print Styling */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    #sidebar, .top-navbar, .no-print, .btn, footer {
        display: none !important;
    }
    .print-container {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .card {
        border: none !important;
        box-shadow: none !important;
    }
}
