@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --sidebar-w: 264px;
  --ink: #172033;
  --muted: #758097;
  --brand: #635bdb;
  --brand-dark: #5148c8;
  --line: #e9edf4;
  --canvas: #f6f7fb;
  --sidebar: #171b2e;
  --sidebar-soft: #222842;
  --shadow: 0 8px 28px rgba(24, 34, 60, .055);
}
* { box-sizing: border-box; }
body { background: var(--canvas); color: var(--ink); font-family: 'DM Sans', sans-serif; font-size: .94rem; }
h1,h2,h3,h4,h5,h6,.brand { font-family: 'Manrope', sans-serif; letter-spacing: -.025em; }
a { text-decoration: none; }
.app-wrapper { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); background: radial-gradient(circle at 0% 0%, #2a3150 0, var(--sidebar) 42%, #14182a 100%); color: #aeb7cf; position: fixed; inset: 0 auto 0 0; padding: 1.35rem 1rem; overflow-y: auto; z-index: 1040; transition: transform .25s ease; box-shadow: 12px 0 36px rgba(17, 24, 39, .08); }
.sidebar .brand { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.18rem; padding: .65rem .7rem 1.55rem; display: flex; align-items: center; gap: .75rem; }
.sidebar .brand i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(145deg, #8d85ff, #554bd0); color: #fff; box-shadow: 0 8px 18px rgba(99,91,219,.3); }
.sidebar .nav { gap: .28rem; }
.sidebar .nav::before { content: 'WORKSPACE'; color: #69738f; font-size: .66rem; font-weight: 700; letter-spacing: .13em; padding: .2rem .8rem .55rem; }
.sidebar .nav-link { color: #aeb7cf; border-radius: 11px; padding: .76rem .85rem; font-weight: 500; font-size: .9rem; transition: all .18s ease; border: 1px solid transparent; }
.sidebar .nav-link i { width: 23px; display: inline-block; font-size: 1.03rem; color: #8994b2; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.065); color: #fff; transform: translateX(2px); }
.sidebar .nav-link:hover i, .sidebar .nav-link.active i { color: #fff; }
.sidebar .nav-link.active { color: #fff; background: linear-gradient(100deg, rgba(108,99,232,.95), rgba(87,78,203,.78)); border-color: rgba(255,255,255,.12); box-shadow: 0 8px 20px rgba(66,58,180,.25); }
.sidebar form .nav-link { margin-top: .6rem; color: #f0a4a9; }
.app-main { margin-left: var(--sidebar-w); flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { min-height: 76px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1030; backdrop-filter: blur(14px); }
.topbar h1 { font-size: 1.12rem; font-weight: 800; color: var(--ink); }
.topbar .btn-light { background: #f7f8fc; border: 1px solid var(--line); color: #46516a; border-radius: 11px; }
.topbar .btn-light:hover { background: #eff0ff; border-color: #dedcff; color: var(--brand); }
.content { flex: 1; padding: 1.65rem !important; }
.content > .alert { border: 0; border-radius: 12px; box-shadow: var(--shadow); }
footer { background: #fff; border-color: var(--line) !important; color: #929bb0 !important; }
.card { border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.card-header { background: #fff; border-bottom: 1px solid var(--line); padding: 1rem 1.2rem; color: var(--ink); font-weight: 700; }
.card-body { padding: 1.2rem; }
.stat-card { border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(24,34,60,.09); }
.stat-card .card-body { padding: 1.15rem; }
.stat-card .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.25rem; flex: 0 0 auto; }
.stat-card .h4 { font-family: 'Manrope', sans-serif; font-size: 1.45rem; font-weight: 800; color: var(--ink); margin-top: .18rem; }
.btn { border-radius: 10px; font-weight: 600; padding: .58rem .95rem; transition: all .18s ease; }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); --bs-btn-active-bg: var(--brand-dark); box-shadow: 0 5px 12px rgba(99,91,219,.17); }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: #d8d5ff; --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); }
.form-control, .form-select { border: 1px solid #e2e6ef; border-radius: 10px; padding: .67rem .85rem; color: var(--ink); background-color: #fff; min-height: 42px; }
.form-control:focus, .form-select:focus { border-color: #aaa5f4; box-shadow: 0 0 0 .22rem rgba(99,91,219,.12); }
.form-label { color: #4c5870; font-weight: 600; font-size: .85rem; margin-bottom: .42rem; }
.input-group-text { border-color: #e2e6ef; background: #f8f9fc; color: #7b8499; border-radius: 10px; }
.table { --bs-table-color: #39445b; --bs-table-hover-bg: #f8f8ff; margin-bottom: 0; }
.table thead th { background: #f8f9fc; color: #78839a; font-size: .72rem; text-transform: uppercase; letter-spacing: .065em; font-weight: 700; border-bottom: 1px solid var(--line); padding: .9rem 1rem; white-space: nowrap; }
.table tbody td { padding: .88rem 1rem; border-color: #eff1f6; vertical-align: middle; }
.table-responsive { border-radius: 0 0 16px 16px; }
.nav-tabs { border-bottom: 1px solid #e5e8f1; gap: .35rem; }
.nav-tabs .nav-link { color: #7c879c; border: 0; border-radius: 10px 10px 0 0; padding: .72rem 1rem; font-weight: 600; }
.nav-tabs .nav-link:hover { color: var(--brand); background: #f0efff; }
.nav-tabs .nav-link.active { color: var(--brand); background: #fff; border: 1px solid #e5e8f1; border-bottom-color: #fff; }
.dropdown-menu { border: 1px solid var(--line); border-radius: 12px; padding: .45rem; box-shadow: 0 14px 36px rgba(24,34,60,.12); }
.dropdown-item { border-radius: 8px; padding: .58rem .7rem; font-size: .88rem; }
.badge { font-weight: 600; letter-spacing: .01em; padding: .42em .68em; }
.pagination .page-link { border: 1px solid var(--line); color: #626e85; border-radius: 8px !important; margin: 0 .12rem; }
.pagination .active .page-link { background: var(--brand); border-color: var(--brand); }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 15% 15%, rgba(143,133,255,.42), transparent 32%), radial-gradient(circle at 90% 85%, rgba(47,176,171,.22), transparent 30%), linear-gradient(135deg,#171b2e,#292d50 55%,#4c45a8); padding: 1.5rem; position: relative; overflow: hidden; }
.auth-wrap::before, .auth-wrap::after { content: ''; position: absolute; width: 360px; height: 360px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.auth-wrap::before { top: -190px; right: -100px; box-shadow: 0 0 0 35px rgba(255,255,255,.025), 0 0 0 75px rgba(255,255,255,.02); }
.auth-wrap::after { bottom: -240px; left: -100px; box-shadow: 0 0 0 35px rgba(255,255,255,.025), 0 0 0 75px rgba(255,255,255,.02); }
.auth-card { width: 100%; max-width: 440px; border: 1px solid rgba(255,255,255,.5); border-radius: 22px; box-shadow: 0 28px 80px rgba(8,12,30,.28); position: relative; z-index: 1; }
.auth-card .card-body { padding: 2.5rem !important; }
.auth-card .bi-boxes { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 19px; color: #fff !important; background: linear-gradient(145deg,#8d85ff,#554bd0); box-shadow: 0 10px 24px rgba(99,91,219,.28); font-size: 1.8rem !important; }
.auth-card h1 { font-weight: 800; letter-spacing: -.04em; }
.auth-card .form-control { min-height: 48px; }
.auth-card .btn-primary { min-height: 48px; }
.thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 11px; background: #eef0f7; }
.thumb-ph { width: 48px; height: 48px; border-radius: 11px; background: #eef0f7; color: #9aa1b9; display: grid; place-items: center; }
.img-tile { width: 110px; }
.img-tile img { width: 110px; height: 110px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.main-img { width: 100%; max-height: 360px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.gallery-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 2px solid transparent; cursor: pointer; }
.gallery-thumb.active { border-color: var(--brand); }
@media (max-width: 991.98px) { .sidebar { transform: translateX(-100%); } .sidebar.open { transform: none; } .app-main { margin-left: 0; } .content { padding: 1.1rem !important; } }
@media (max-width: 575.98px) { .auth-card .card-body { padding: 1.6rem !important; } .topbar { min-height: 66px; } .stat-card .card-body { padding: .9rem; gap: .65rem !important; } .stat-card .icon { width: 40px; height: 40px; border-radius: 12px; } .stat-card .h4 { font-size: 1.2rem; } }
