/* ===================================================
   Custom Styling - Sistem Manajemen Print & Fotocopy
   =================================================== */

:root {
    --fc-primary: #3b82f6;
    --fc-primary-dark: #1d4ed8;
    --fc-secondary: #64748b;
    --fc-success: #10b981;
    --fc-success-dark: #059669;
    --fc-danger: #ef4444;
    --fc-warning: #f59e0b;
    --fc-info: #06b6d4;
    --fc-dark: #0f172a;
    --fc-light: #f8fafc;
    --fc-card-bg: #ffffff;
    --fc-border: #e2e8f0;
    --fc-text-main: #1e293b;
    --fc-text-muted: #64748b;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f1f5f9;
    color: var(--fc-text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Layout */
.main-wrapper {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 65px);
}

.sidebar {
    width: 260px;
    background: #0f172a;
    color: #94a3b8;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.sidebar .brand-area {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar .brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.sidebar .brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.sidebar .brand-subtitle {
    font-size: 0.75rem;
    color: #64748b;
}

.sidebar-nav {
    padding: 1rem 0.75rem;
    flex: 1;
}

.sidebar-nav .nav-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    padding: 0.75rem 0.75rem 0.25rem;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1rem;
    color: #94a3b8;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.925rem;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-bottom: 4px;
}

.sidebar-nav .nav-link i {
    font-size: 1.15rem;
    color: #64748b;
    transition: all 0.2s ease;
}

.sidebar-nav .nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.06);
}

.sidebar-nav .nav-link:hover i {
    color: #3b82f6;
}

.sidebar-nav .nav-link.active {
    color: #ffffff;
    background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    font-weight: 600;
}

.sidebar-nav .nav-link.active i {
    color: #ffffff;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 1.75rem 2rem;
    max-width: 100%;
    overflow-x: hidden;
}

/* Navbar Top */
.topbar {
    background: #ffffff;
    border-bottom: 1px solid var(--fc-border);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* Cards */
.card {
    background: var(--fc-card-bg);
    border: 1px solid var(--fc-border);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    margin-bottom: 1.5rem;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--fc-border);
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--fc-text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-body {
    padding: 1.25rem;
}

/* Stat Cards */
.stat-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.stat-icon-blue {
    background: #dbeafe;
    color: #2563eb;
}

.stat-icon-green {
    background: #d1fae5;
    color: #059669;
}

.stat-icon-purple {
    background: #ede9fe;
    color: #7c3aed;
}

.stat-icon-amber {
    background: #fef3c7;
    color: #d97706;
}

.stat-icon-rose {
    background: #ffe4e6;
    color: #e11d48;
}

.stat-value {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--fc-text-main);
    line-height: 1.2;
    margin: 0.25rem 0;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--fc-text-muted);
}

/* Transaksi Quick Input & Live Breakdown */
.quick-qty-btn {
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    transition: all 0.15s ease;
}

.quick-qty-btn:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.price-preview-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 12px;
    padding: 1.5rem;
    color: #ffffff;
    position: sticky;
    top: 1rem;
}

.price-preview-box .final-price {
    font-size: 2.25rem;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: -0.5px;
}

.price-breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.price-breakdown-row:last-child {
    border-bottom: none;
}

/* Table Styling */
.table-custom {
    margin-bottom: 0;
}

.table-custom th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.825rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--fc-border);
}

.table-custom td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    color: var(--fc-text-main);
    border-bottom: 1px solid #f1f5f9;
}

.table-custom tbody tr:hover {
    background-color: #f8fafc;
}

/* Badges */
.badge-soft-success {
    background-color: #d1fae5;
    color: #065f46;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
}

.badge-soft-warning {
    background-color: #fef3c7;
    color: #92400e;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
}

.badge-soft-danger {
    background-color: #fee2e2;
    color: #991b1b;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
}

.badge-soft-primary {
    background-color: #dbeafe;
    color: #1e40af;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
        z-index: 1050;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    .content-area {
        padding: 1.25rem 1rem;
    }
}

