/* =====================================================================
   DCT Price Decider — Dark Glassmorphism Theme
   Durvish Cloud Technologies
   ===================================================================== */

:root {
    --dct-bg-1: #05070f;
    --dct-bg-2: #0b1020;
    --dct-blue: #38bdf8;
    --dct-purple: #8b5cf6;
    --dct-cyan: #22d3ee;
    --dct-glass: rgba(255, 255, 255, 0.05);
    --dct-glass-border: rgba(255, 255, 255, 0.10);
    --dct-text: #e7ebf5;
    --dct-text-muted: #94a1b8;
    --dct-success: #34d399;
    --dct-danger: #f87171;
    --dct-warning: #fbbf24;
    --radius: 16px;
}

* { box-sizing: border-box; }

body {
    background:
        radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.12), transparent 40%),
        radial-gradient(circle at 85% 90%, rgba(139, 92, 246, 0.15), transparent 45%),
        linear-gradient(160deg, var(--dct-bg-1), var(--dct-bg-2));
    background-attachment: fixed;
    color: var(--dct-text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

a { text-decoration: none; }

/* ---------- Glass Card ---------- */
.glass-card {
    background: var(--dct-glass);
    border: 1px solid var(--dct-glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* ---------- Auth Pages ---------- */
.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.auth-wrapper { width: 100%; max-width: 420px; padding: 20px; }
.auth-card { padding: 40px 32px; animation: fadeInUp .5s ease; }
.auth-logo { width: 84px; height: 84px; object-fit: cover; border-radius: 18px; box-shadow: 0 0 30px rgba(56,189,248,.35); }
.auth-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; background: linear-gradient(90deg, var(--dct-blue), var(--dct-purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-subtitle { color: var(--dct-text-muted); font-size: .875rem; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- App Layout ---------- */
.app-wrapper { display: flex; min-height: 100vh; }

.sidebar {
    width: 260px;
    flex-shrink: 0;
    background: rgba(8, 12, 24, 0.75);
    border-right: 1px solid var(--dct-glass-border);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: transform .3s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 20px;
    border-bottom: 1px solid var(--dct-glass-border);
}
.sidebar-brand img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.brand-title { font-weight: 700; font-size: .95rem; line-height: 1.2; }
.brand-sub { font-size: .7rem; color: var(--dct-text-muted); }

.sidebar-nav { padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--dct-text-muted) !important;
    font-size: .9rem;
    font-weight: 500;
    transition: all .2s ease;
}
.nav-link i { font-size: 1.05rem; width: 20px; text-align: center; }
.nav-link:hover { background: rgba(255,255,255,0.06); color: var(--dct-text) !important; transform: translateX(2px); }
.nav-link.active {
    background: linear-gradient(90deg, rgba(56,189,248,.18), rgba(139,92,246,.18));
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.nav-divider { height: 1px; background: var(--dct-glass-border); margin: 10px 6px; }

.main-content { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    border-bottom: 1px solid var(--dct-glass-border);
    background: rgba(8,12,24,0.4);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
}
.topbar-title { font-size: 1.2rem; font-weight: 700; margin: 0; }
.btn-toggle-sidebar { background: none; border: none; color: var(--dct-text); font-size: 1.4rem; }
.admin-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: var(--dct-glass);
    border: 1px solid var(--dct-glass-border);
    border-radius: 999px;
    font-size: .85rem;
}

.page-content { padding: 28px; flex: 1; }

.app-footer {
    padding: 16px 28px;
    text-align: center;
    color: var(--dct-text-muted);
    font-size: .8rem;
    border-top: 1px solid var(--dct-glass-border);
}

/* ---------- Cards / Stat widgets ---------- */
.stat-card {
    padding: 22px;
    border-radius: var(--radius);
    background: var(--dct-glass);
    border: 1px solid var(--dct-glass-border);
    backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.stat-card .stat-icon {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    font-size: 1.3rem;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--dct-blue), var(--dct-purple));
    color: #fff;
}
.stat-card .stat-value { font-size: 1.6rem; font-weight: 700; margin-bottom: 2px; }
.stat-card .stat-label { color: var(--dct-text-muted); font-size: .82rem; }

/* ---------- Generic panel ---------- */
.panel {
    background: var(--dct-glass);
    border: 1px solid var(--dct-glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
    padding: 24px;
    margin-bottom: 24px;
}
.panel-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }

/* ---------- Tables ---------- */
.table-dark-glass {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--dct-text);
}
.table-dark-glass thead th {
    background: rgba(255,255,255,0.04);
    color: var(--dct-text-muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 12px 14px;
    border-bottom: 1px solid var(--dct-glass-border);
    white-space: nowrap;
}
.table-dark-glass tbody td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: .9rem;
    vertical-align: middle;
}
.table-dark-glass tbody tr { transition: background .2s ease; }
.table-dark-glass tbody tr:hover { background: rgba(255,255,255,0.03); }

/* ---------- Forms ---------- */
.form-control, .form-select {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--dct-glass-border);
    color: var(--dct-text);
    border-radius: 10px;
    padding: 10px 14px;
}
.form-control:focus, .form-select:focus {
    background: rgba(255,255,255,0.06);
    border-color: var(--dct-blue);
    color: var(--dct-text);
    box-shadow: 0 0 0 3px rgba(56,189,248,0.15);
}
.form-label { font-size: .85rem; color: var(--dct-text-muted); margin-bottom: 6px; font-weight: 500; }
.form-check-input { background-color: rgba(255,255,255,0.06); border-color: var(--dct-glass-border); }
.form-check-input:checked { background-color: var(--dct-blue); border-color: var(--dct-blue); }

/* ---------- Buttons ---------- */
.btn-primary {
    background: linear-gradient(90deg, var(--dct-blue), var(--dct-purple));
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 18px rgba(56,189,248,0.25);
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-outline-light { border-color: var(--dct-glass-border); }

.badge-status-active { background: rgba(52,211,153,0.15); color: var(--dct-success); border: 1px solid rgba(52,211,153,0.3); padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600; }
.badge-status-inactive { background: rgba(248,113,113,0.15); color: var(--dct-danger); border: 1px solid rgba(248,113,113,0.3); padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600; }

/* Feature selection checklist */
.feature-check-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--dct-glass-border);
    margin-bottom: 8px;
    transition: all .2s ease;
}
.feature-check-item.matched {
    border-color: rgba(56,189,248,0.5);
    background: rgba(56,189,248,0.08);
}
.feature-check-item label { cursor: pointer; margin: 0; flex: 1; display: flex; align-items: center; gap: 10px; }
.feature-price-tag { color: var(--dct-cyan); font-weight: 600; font-size: .85rem; }
.matched-pill { font-size: .65rem; background: var(--dct-blue); color: #041018; padding: 2px 8px; border-radius: 999px; font-weight: 700; margin-left: 8px; }

/* Summary box */
.summary-box { border-radius: var(--radius); background: linear-gradient(145deg, rgba(56,189,248,0.08), rgba(139,92,246,0.08)); border: 1px solid var(--dct-glass-border); padding: 24px; }
.summary-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: .92rem; border-bottom: 1px dashed rgba(255,255,255,0.08); }
.summary-row:last-child { border-bottom: none; }
.summary-row.total { font-size: 1.15rem; font-weight: 700; color: #fff; border-top: 1px solid var(--dct-glass-border); margin-top: 8px; padding-top: 14px; }
.summary-row .val { font-weight: 600; }
.text-cyan { color: var(--dct-cyan); }
.text-success-soft { color: var(--dct-success); }

/* Upload dropzone */
.dropzone {
    border: 2px dashed var(--dct-glass-border);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    transition: all .2s ease;
    cursor: pointer;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--dct-blue); background: rgba(56,189,248,0.05); }
.dropzone i { font-size: 2.6rem; color: var(--dct-blue); margin-bottom: 10px; }

/* Responsive */
@media (max-width: 991.98px) {
    .sidebar { position: fixed; left: 0; transform: translateX(-100%); z-index: 1050; }
    .sidebar.show { transform: translateX(0); }
    .page-content { padding: 18px; }
    .topbar { padding: 14px 18px; }
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 8px; }
