/* ZAIKA Business Management App — theme (matches the dashboard design) */
:root {
    --nd-black: #111111;
    --nd-black-2: #1a1a1a;
    --nd-gold: #c9a24b;
    --nd-gold-dark: #b8923f;
    --nd-cream: #f6f1e7;
    --nd-cream-2: #efe8d8;
    --nd-text: #222222;
    --nd-muted: #6c757d;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--nd-cream);
    color: var(--nd-text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Sidebar ---------- */
.nd-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 250px;
    background: var(--nd-black);
    color: #f5f5f5;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
}
.nd-brand { padding: 22px 18px 14px; text-align: center; border-bottom: 1px solid #222; }
.nd-logo { max-width: 190px; width: 100%; height: auto; }
.nd-logo-pill {
    display: inline-block; background: #fff; border-radius: 10px; padding: 8px 14px;
}
.nd-logo-pill img { max-width: 160px; max-height: 56px; width: auto; height: auto; display: block; }
.nd-nav { padding: 10px 0; flex: 1; }
.nd-nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 20px; color: #d8d8d8; text-decoration: none;
    font-size: 14.5px; border-left: 3px solid transparent;
}
.nd-nav-item svg { width: 19px; height: 19px; flex: 0 0 19px; color: var(--nd-gold); }
.nd-nav-item:hover { background: #1d1d1d; color: #fff; }
.nd-nav-item.active {
    background: linear-gradient(90deg, #c9a24b, #a9853a);
    color: #111; font-weight: 600; border-left-color: #fff;
}
.nd-nav-item.active svg { color: #111; }
.nd-sidebar-foot {
    padding: 16px; text-align: center; color: var(--nd-gold);
    font-style: italic; font-size: 13px; border-top: 1px solid #222;
}

/* ---------- Main / topbar ---------- */
.nd-main { margin-left: 250px; min-height: 100vh; display: flex; flex-direction: column; }
.nd-topbar {
    position: sticky; top: 0; z-index: 900;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px 26px; background: var(--nd-cream);
    border-bottom: 1px solid #e3dcc9;
}
.nd-search {
    display: flex; align-items: center; gap: 10px; flex: 1; max-width: 560px;
    background: #111; color: #eee; border-radius: 999px; padding: 8px 18px;
}
.nd-search svg { width: 18px; height: 18px; color: var(--nd-gold); flex: 0 0 18px; }
.nd-search input {
    flex: 1; background: transparent; border: 0; outline: 0; color: #eee; font-size: 14.5px;
}
.nd-search input::placeholder { color: #999; }
.nd-search kbd {
    background: #2a2a2a; color: #bbb; border: 1px solid #444; border-radius: 6px;
    font-size: 11px; padding: 2px 7px;
}
.nd-user-btn { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; }
.nd-user-btn strong, .nd-user-btn small { display: block; line-height: 1.2; text-align: left; }
.nd-user-btn small { color: var(--nd-muted); font-weight: 400; }
.nd-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--nd-gold); color: #111; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; font-size: 17px;
}

.nd-content { padding: 26px; flex: 1; }
.nd-footer {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    flex-wrap: wrap; padding: 14px 26px;
    border-top: 1px solid #e3dcc9; font-size: 13px; color: #555;
}
.nd-footer .nd-credit { font-size: 12px; color: #8a8378; }
.nd-footer .nd-credit a { color: #8a8378; text-decoration: none; }
.nd-footer .nd-credit a:hover { color: #a5834a; text-decoration: underline; }

/* ---------- Cards / tables ---------- */
.card { border: 0; border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.card-header { background: transparent; border-bottom: 1px solid #eee; font-weight: 600; }

.stat-card {
    background: var(--nd-black-2); color: #fff; border-radius: 14px;
    padding: 20px; display: flex; gap: 16px; align-items: center; height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.stat-icon {
    width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%;
    border: 2px solid var(--nd-gold); color: var(--nd-gold);
    display: flex; align-items: center; justify-content: center;
}
.stat-icon svg { width: 26px; height: 26px; }
.stat-card .label { color: #cfcfcf; font-size: 13.5px; }
.stat-card .value { font-size: 26px; font-weight: 700; line-height: 1.15; }
.stat-card .sub { font-size: 12.5px; color: #9be09b; }
.stat-card .sub.muted-sub { color: #aaa; }

.table thead th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; color: #666; }
.badge-gold { background: var(--nd-gold); color: #111; }

.btn-gold { background: var(--nd-gold); border-color: var(--nd-gold); color: #111; font-weight: 600; }
.btn-gold:hover { background: var(--nd-gold-dark); border-color: var(--nd-gold-dark); color: #111; }
.btn-dark-nd { background: #111; border-color: #111; color: #fff; }
.btn-dark-nd:hover { background: #000; color: #fff; }

.nd-empty { text-align: center; color: var(--nd-muted); padding: 28px 10px; }

/* ---------- Auth pages ---------- */
.nd-auth-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, #111 0%, #1d1d1d 55%, #2a2113 100%);
    padding: 24px;
}
.nd-auth-card { width: 100%; max-width: 430px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.nd-auth-head { background: #111; text-align: center; padding: 28px 20px 20px; }
.nd-auth-head img { max-width: 210px; }
.nd-auth-head .tag { color: var(--nd-gold); letter-spacing: 3px; font-size: 11px; text-transform: uppercase; margin-top: 10px; }
.nd-auth-body { padding: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .nd-sidebar { width: 210px; }
    .nd-main { margin-left: 210px; }
}
@media (max-width: 768px) {
    .nd-sidebar {
        position: static; width: 100%; max-height: none;
    }
    .nd-nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; }
    .nd-nav-item { border: 1px solid #333; border-radius: 8px; padding: 8px 12px; }
    .nd-main { margin-left: 0; }
    .nd-topbar { flex-wrap: wrap; }
    .nd-search { max-width: none; }
}
