/* public_html/css/style.css */

/* --- GLOBAL VARIABLES --- */
:root {
    --primary-color: #0d6efd;
    --sidebar-width: 260px;
    --sidebar-bg: #1e293b;
    --bg-light: #f3f4f6;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* --- SIDEBAR --- */
#sidebar-wrapper {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: white;
    z-index: 1000;
}

.sidebar-brand {
    padding: 20px 25px;
    font-size: 1.4rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.list-group-item {
    background: transparent;
    color: #94a3b8;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    border-left: 4px solid transparent;
}

.list-group-item:hover {
    color: white;
    background-color: rgba(255,255,255,0.05);
}

.list-group-item.active-menu {
    color: white;
    background-color: rgba(13, 110, 253, 0.1);
    border-left-color: var(--primary-color);
}

/* --- CONTENT AREA --- */
#page-content-wrapper {
    margin-left: var(--sidebar-width);
    padding: 30px;
    width: calc(100% - var(--sidebar-width));
}

.view-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.active-view {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- DASHBOARD CARDS --- */
.stat-card {
    background: white;
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: transform 0.2s;
}

.icon-square {
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
}

/* --- UPLOAD ZONE --- */
.upload-wrapper {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

#dropZone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background-color: #f8fafc;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#dropZone:hover, #dropZone.dragover {
    border-color: var(--primary-color);
    background-color: #eff6ff;
    transform: scale(1.01);
}

/* --- FILE LIST --- */
.file-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 8px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* --- WIZARD STEPPER --- */
.step-indicator {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; background: #e2e8f0; color: #64748b;
    margin: 0 10px; z-index: 2; position: relative;
}
.step-active {
    background: var(--primary-color); color: white;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.2);
}

/* --- INPUTS --- */
.unit-input { width: 80px; text-align: center; font-weight: bold; }

/* --- LOGIN SCREEN --- */
#authView {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    z-index: 9999; display: flex; align-items: center; justify-content: center;
}
.auth-box {
    width: 100%; max-width: 420px; background: white;
    padding: 40px; border-radius: 15px; box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* --- PROGRESS BAR --- */
.progress { height: 25px; border-radius: 12px; font-weight: bold; }

/* --- FIXED WIDTH BADGES (Add to bottom of style.css) --- */
.badge {
    min-width: 130px;       /* Equal width for all */
    padding: 8px 0;         /* Taller for better readability */
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    text-align: center;
}

/* Fix Urgency Badges (Small & Aligned) */
.badge-small {
    min-width: auto !important; /* Override the 130px global rule */
    width: auto !important;
    padding: 4px 10px;
    font-size: 0.75rem;
    margin-left: 10px;
    vertical-align: middle;
    border-radius: 6px;
}

/* Custom Status Colors */
.st-Pending { background-color: #ffc107; color: #000; }          /* Yellow */
.st-InProduction { background-color: #0d6efd; color: #fff; }     /* Blue */
.st-ReadyforPickup { background-color: #6f42c1; color: #fff; }   /* Purple */
.st-PickedUp { background-color: #198754; color: #fff; }         /* Green */
.st-Shipped { background-color: #198754; color: #fff; }          /* Green */
.st-Cancelled { background-color: #dc3545; color: #fff; }        /* Red */

/* --- FIX MODAL VISIBILITY --- */
/* Ensure modals appear ABOVE the login screen (z-index 9999) */
.modal {
    z-index: 10000 !important;
}

/* Ensure the grey backdrop also covers the login screen */
.modal-backdrop {
    z-index: 9998 !important;
}

/* --- DISABLED STATE --- */
.nav-disabled {
    opacity: 0.5 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
    background-color: rgba(255, 255, 255, 0.05);
}

/* Add a lock icon via CSS if desired, or handle in JS */
.nav-disabled::after {
    content: ' \f023'; /* FontAwesome Lock Icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 10px;
    font-size: 0.8em;
}