/* ── Cold Storage IMS – Site Stylesheet ── */
:root {
    --cold-blue: #0d6efd;
    --cold-dark: #0b1e3d;
    --cold-mid: #132d5e;
    --cold-accent: #00c6ff;
    --cold-ice: #e8f4fd;
    --sidebar-w: 256px;
    --topbar-h: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: #f0f4f8; color: #1a2b4a; }

/* ── Sidebar ─────────────────────────────── */
.sidebar {
    position: fixed; top: 0; left: 0; height: 100vh; width: var(--sidebar-w);
    background: var(--cold-dark);
    display: flex; flex-direction: column;
    z-index: 1000; transition: transform .3s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,.35);
}

.sidebar-brand {
    display: flex; align-items: center; gap: 10px;
    padding: 20px 20px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: var(--cold-mid);
}
.brand-icon { font-size: 24px; color: var(--cold-accent); }
.brand-text { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: .5px; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 0; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }

.nav-section {
    font-size: 10px; font-weight: 700; letter-spacing: 1.2px;
    color: rgba(255,255,255,.35);
    padding: 14px 20px 4px;
    text-transform: uppercase;
}
.nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 20px; font-size: 14px; color: rgba(255,255,255,.7);
    text-decoration: none; transition: all .2s; border-left: 3px solid transparent;
}
.nav-link i { font-size: 15px; width: 18px; text-align: center; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-link.active {
    color: var(--cold-accent); background: rgba(0,198,255,.1);
    border-left-color: var(--cold-accent);
}

.sidebar-footer {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid rgba(255,255,255,.08);
    background: var(--cold-mid);
}
.user-avatar { font-size: 26px; color: var(--cold-accent); }
.user-name { font-size: 13px; font-weight: 600; color: #fff; }
.user-role { font-size: 11px; color: rgba(255,255,255,.45); }
.btn-logout {
    margin-left: auto; color: rgba(255,255,255,.5); font-size: 18px;
    text-decoration: none; transition: color .2s;
}
.btn-logout:hover { color: #ff6b6b; }

/* ── Main Content ────────────────────────── */
.main-content {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex; flex-direction: column;
    transition: margin-left .3s ease;
}

.topbar {
    position: sticky; top: 0; z-index: 100;
    height: var(--topbar-h);
    background: #fff;
    border-bottom: 1px solid #dde3ed;
    display: flex; align-items: center; gap: 14px;
    padding: 0 24px;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.sidebar-toggle {
    background: none; border: none; font-size: 22px; color: #555; cursor: pointer;
    display: none;
}
.topbar-title { font-size: 16px; font-weight: 600; color: var(--cold-dark); }
.topbar-right { margin-left: auto; }
.topbar-alert { font-size: 20px; text-decoration: none; }

.content-area { padding: 24px; flex: 1; }

/* ── Cards ───────────────────────────────── */
.card {
    border: none; border-radius: 12px;
    box-shadow: 0 1px 8px rgba(0,0,0,.07);
    background: #fff;
}
.card-header {
    background: none; border-bottom: 1px solid #edf1f7;
    font-weight: 600; font-size: 15px;
    padding: 14px 20px;
}

/* ── Stat Cards ──────────────────────────── */
.stat-card {
    background: #fff; border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    display: flex; align-items: center; gap: 16px;
    transition: transform .2s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-icon {
    width: 52px; height: 52px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}
.stat-icon.blue { background: #dbeafe; color: #1d4ed8; }
.stat-icon.green { background: #dcfce7; color: #16a34a; }
.stat-icon.orange { background: #ffedd5; color: #ea580c; }
.stat-icon.red { background: #fee2e2; color: #dc2626; }
.stat-icon.purple { background: #ede9fe; color: #7c3aed; }
.stat-icon.teal { background: #ccfbf1; color: #0d9488; }
.stat-label { font-size: 12px; color: #6b7280; font-weight: 500; }
.stat-value { font-size: 26px; font-weight: 700; color: var(--cold-dark); line-height: 1.1; }

/* ── Tables ──────────────────────────────── */
.table { font-size: 13.5px; }
.table thead th {
    background: #f8fafc; font-weight: 600; font-size: 12px;
    text-transform: uppercase; letter-spacing: .5px;
    color: #64748b; border-bottom: 1px solid #e2e8f0; padding: 10px 12px;
}
.table td { padding: 10px 12px; vertical-align: middle; border-color: #f1f5f9; }
.table-hover tbody tr:hover { background: #f8fafc; }

/* ── Badges ──────────────────────────────── */
.badge { font-size: 11px; font-weight: 600; border-radius: 6px; padding: 4px 8px; }

/* ── Buttons ─────────────────────────────── */
.btn { border-radius: 8px; font-size: 13.5px; font-weight: 500; }
.btn-primary { background: var(--cold-blue); border-color: var(--cold-blue); }
.btn-sm { padding: 4px 10px; font-size: 12.5px; }

/* ── Forms ───────────────────────────────── */
.form-control, .form-select {
    border-radius: 8px; border: 1.5px solid #dde3ed;
    font-size: 14px; padding: 8px 12px;
    transition: border-color .2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--cold-blue);
    box-shadow: 0 0 0 3px rgba(13,110,253,.12);
}
.form-label { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 4px; }
.input-group-text { border-radius: 8px 0 0 8px; background: #f8fafc; border: 1.5px solid #dde3ed; }

/* ── Page Header ─────────────────────────── */
.page-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
}
.page-header h1 { font-size: 22px; font-weight: 700; color: var(--cold-dark); }

/* ── Alert strip ────────────────────────── */
.alert-strip {
    border-radius: 10px; border: none; padding: 12px 16px;
    display: flex; align-items: center; gap: 10px; font-size: 13.5px;
}

/* ── Login Page ──────────────────────────── */
.login-wrap {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--cold-dark) 0%, #1a4080 50%, #0d6efd 100%);
    display: flex; align-items: center; justify-content: center;
}
.login-card {
    background: rgba(255,255,255,.96);
    border-radius: 20px;
    padding: 44px 40px;
    width: 100%; max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo i { font-size: 48px; color: var(--cold-blue); }
.login-logo h2 { font-size: 22px; font-weight: 700; color: var(--cold-dark); margin-top: 8px; }
.login-logo p { font-size: 13px; color: #6b7280; }

/* ── Print ───────────────────────────────── */
@media print {
    .sidebar, .topbar, .no-print { display: none !important; }
    .main-content { margin-left: 0 !important; }
    .content-area { padding: 0; }
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .sidebar-toggle { display: block; }
}
