/* ── Admin Styles — EVA Property Valuation System ── */
/* Color palette: #886e35 gold | #46381a dark | #818260 muted | #f7f3ea cream */
/* ── Page Background ────────────────────── */
body {
    min-height: 100vh;
    /* background: radial-gradient(125% 125% at 50% 10%, #fafaf8 40%, #2e2510 100%) !important; */
    background-attachment: fixed !important;
}


/* ── Sidebar ─────────────────────────────── */
.admin-sidebar {
    background: linear-gradient(160deg, #46381a 0%, #2e2510 100%);
    min-height: calc(100vh - 64px);
    box-shadow: 2px 0 12px rgba(0,0,0,0.18);
}
.sidebar-header {
    background: #886e35;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.sidebar-header h4 { color: #fff; margin: 0; font-size: 1rem; font-weight: 700; }
.sidebar-nav { padding: 0.75rem 0; }
.sidebar-nav .nav-link {
    color: rgba(255,255,255,0.82) !important;
    padding: 0.7rem 1.25rem;
    border: none;
    border-radius: 0;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-right: 3px solid transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-nav .nav-link i { width: 18px; text-align: center; opacity: .9; }
.sidebar-nav .nav-link:hover { background: rgba(255,255,255,0.08); color: #fff !important; border-right-color: #886e35; }
.sidebar-nav .nav-link.active { background: rgba(136,110,53,0.2); color: #fff !important; border-right-color: #886e35; font-weight: 700; }
@media (max-width: 767px) {
    .admin-sidebar { min-height: auto; }
    .sidebar-nav .nav { flex-direction: row; flex-wrap: wrap; }
    .sidebar-nav .nav-item { flex: 1 1 50%; }
    .sidebar-nav .nav-link { padding: 0.5rem 0.75rem; font-size: 0.82rem; }
}

/* ── Content Area ─────────────────────────── */
.admin-content { padding: 2rem; background: #f7f3ea; min-height: calc(100vh - 64px); }
@media (max-width: 767px) { .admin-content { padding: 1rem; } }

/* ── Page Title ──────────────────────────── */
.section-title, .admin-title {
    color: #46381a;
    border-bottom: 3px solid #886e35;
    padding-bottom: 0.5rem;
    margin-bottom: 1.75rem;
    font-weight: 700;
    font-size: 1.3rem;
}

/* ── Cards ────────────────────────────────── */
.admin-card {
    background: #fff;
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(70,56,26,0.08);
    padding: 24px;
    margin-bottom: 20px;
    transition: box-shadow 0.2s;
}
.admin-card:hover { box-shadow: 0 8px 28px rgba(70,56,26,0.13); transform: none; }
.admin-card-header {
    background: #f7f3ea;
    border-bottom: 2px solid #e8ddc8;
    padding: 14px 24px;
    margin: -24px -24px 24px;
    border-radius: 14px 14px 0 0;
}
.admin-card-header h2, .admin-card-header h5 { color: #46381a; font-weight: 700; margin: 0; font-size: 1.05rem; }
.admin-card-icon { width: 72px; height: 72px; margin: 0 auto 1rem; background: linear-gradient(135deg,#886e35,#b8964a); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.8rem; }

/* Bootstrap card overrides */
.card { border-radius: 12px !important; border: 1px solid #e8ddc8 !important; }
.card-header { background: #f7f3ea !important; border-bottom: 1px solid #e8ddc8 !important; font-weight: 700; color: #46381a; padding: 12px 18px; }
.card-header h5 { margin: 0; font-size: 0.95rem; color: #46381a; }
.card-body { padding: 18px; }

/* ── Buttons ─────────────────────────────── */
.btn-admin-primary, .btn-primary {
    background: #886e35 !important;
    border-color: #886e35 !important;
    color: white !important;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
}
.btn-admin-primary:hover, .btn-primary:hover {
    background: #46381a !important;
    border-color: #46381a !important;
    box-shadow: 0 4px 14px rgba(70,56,26,0.22);
}
.btn-secondary { background: #818260 !important; border-color: #818260 !important; color: white !important; font-weight: 600; border-radius: 8px; }
.btn-secondary:hover { background: #6b6c50 !important; border-color: #6b6c50 !important; }
.btn-danger { border-radius: 8px; font-weight: 600; }
.btn-outline-primary { color: #886e35 !important; border-color: #886e35 !important; border-radius: 8px; font-weight: 600; }
.btn-outline-primary:hover { background: #886e35 !important; color: white !important; }
.btn-outline-danger { border-radius: 8px; font-weight: 600; }
.btn-sm { padding: 5px 12px; font-size: 0.82rem; }

/* ── Tables ─────────────────────────────── */
.admin-table, .table { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(70,56,26,0.06); font-size: 0.88rem; }
.admin-table th, .table thead th { background: #46381a !important; color: white !important; font-weight: 600; padding: 13px 15px; border: none !important; white-space: nowrap; }
.table-dark { background: #46381a !important; }
.admin-table td, .table td { padding: 11px 15px; border-bottom: 1px solid #f0ebe0; vertical-align: middle; }
.admin-table tbody tr:hover, .table tbody tr:hover { background: #fdf8ef !important; }
.table-striped tbody tr:nth-of-type(odd) { background: #fdf8ef; }

/* ── Forms ───────────────────────────────── */
.form-control, .form-select {
    border: 1.5px solid #e8ddc8;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 0.9rem;
    font-family: 'Cairo', sans-serif;
    background: #fafaf8;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
    border-color: #886e35 !important;
    box-shadow: 0 0 0 3px rgba(136,110,53,0.12) !important;
    background: white;
    outline: none;
}
.form-label { font-weight: 600; color: #46381a; margin-bottom: 6px; font-size: 0.87rem; }
.form-text { color: #818260; font-size: 0.8rem; }
.form-check-input:checked { background-color: #886e35; border-color: #886e35; }

/* ── Nav Tabs ────────────────────────────── */
.nav-tabs { border-bottom: 2px solid #e8ddc8; }
.nav-tabs .nav-link { color: #818260; border: none; padding: 9px 18px; font-weight: 600; font-size: 0.9rem; border-bottom: 3px solid transparent; margin-bottom: -2px; border-radius: 8px 8px 0 0; transition: all 0.2s; }
.nav-tabs .nav-link:hover { color: #46381a; background: #f7f3ea; }
.nav-tabs .nav-link.active { color: #886e35 !important; background: white; border-bottom-color: #886e35; font-weight: 700; }

/* ── Modals ──────────────────────────────── */
.modal-content { border-radius: 14px; border: none; box-shadow: 0 20px 60px rgba(0,0,0,0.18); }
.modal-header { background: #46381a; color: white; border-radius: 14px 14px 0 0; padding: 16px 24px; border-bottom: none; }
.modal-title { font-weight: 700; font-size: 1rem; color: white; }
.modal-header .btn-close { filter: invert(1); opacity: 0.8; }
.modal-body { padding: 24px; }
.modal-footer { border-top: 1px solid #e8ddc8; padding: 14px 24px; gap: 8px; }

/* ── Alerts ──────────────────────────────── */
.alert { border-radius: 10px; border: none; font-weight: 600; font-size: 0.9rem; }
.alert-success { background: #ecf7ed; color: #1a5c2a; border-right: 4px solid #28a745; }
.alert-danger  { background: #fdf1f1; color: #8b1a1a; border-right: 4px solid #dc3545; }
.alert-warning { background: #fffaec; color: #7a5c00; border-right: 4px solid #f0ad00; }
.alert-info    { background: #edf5ff; color: #0a3d7a; border-right: 4px solid #3b82f6; }

/* ── Badges ──────────────────────────────── */
.badge { padding: 5px 10px; border-radius: 20px; font-weight: 600; font-size: 0.78rem; }
.bg-success { background: #28a745 !important; }
.bg-secondary { background: #818260 !important; }
.bg-primary { background: #886e35 !important; }
.bg-danger { background: #dc3545 !important; }

/* ── List Group ──────────────────────────── */
.list-group-item { border-color: #e8ddc8; font-size: 0.9rem; padding: 10px 14px; }
.list-group-item:hover { background: #fdf8ef; }

/* ── Misc ────────────────────────────────── */
.text-muted { color: #818260 !important; }
.price-input { max-width: 160px; font-weight: 600; }
.table-actions { white-space: nowrap; }
.btn-group { gap: 4px; }
.save-success { color: #28a745; }
.save-error   { color: #dc3545; }
.is-invalid { border-color: #dc3545 !important; }
.invalid-feedback { display: block; color: #dc3545; font-size: 0.82rem; }
.input-group-text { background: #f7f3ea; border-color: #e8ddc8; }
