:root {
    --bg:       #0f1a0f;
    --bg2:      #152015;
    --bg3:      #1c2e1c;
    --border:   rgba(46,125,50,0.25);
    --green:    #2e7d32;
    --green2:   #4caf50;
    --text:     #f0f4f0;
    --muted:    #7a9a7a;
    --danger:   #f87171;
    --success:  #4ade80;
    --warning:  #fbbf24;
    --font-heading: 'Roboto Condensed', sans-serif;
    --font-body:    'Open Sans', sans-serif;
    --sidebar-width: 260px;
}

* { box-sizing: border-box; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.6; margin: 0; min-height: 100vh; }

/* ── Layout ── */
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg2);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
}
.admin-main {
    margin-left: var(--sidebar-width);
    padding: 2rem;
    min-height: 100vh;
}
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 1.2rem;
    cursor: pointer;
}

/* ── Sidebar Brand ── */
.sidebar-brand {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
}

/* ── Sidebar Nav ── */
.sidebar-nav { padding: 0.5rem 0; }
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.sidebar-link:hover, .sidebar-link.active {
    color: var(--green2);
    background: rgba(46,125,50,0.08);
    border-left-color: var(--green);
}
.sidebar-icon { font-size: 1.1rem; line-height: 1; }

/* ── Admin Header ── */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.admin-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    text-transform: uppercase;
    color: var(--text);
    margin: 0;
}

/* ── Cards ── */
.admin-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
}

/* ── Tables ── */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.admin-table thead th {
    text-align: left;
    padding: 0.75rem 1rem;
    color: var(--muted);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.admin-table tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.admin-table tbody tr:hover td {
    background: rgba(46,125,50,0.04);
}

/* ── Buttons ── */
.btn-admin-primary {
    background: var(--green);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.55rem 1.2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}
.btn-admin-primary:hover { background: var(--green-dark); color: #fff; }
.btn-admin-outline {
    background: transparent;
    color: var(--green2);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--green);
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}
.btn-admin-outline:hover { background: var(--green); color: #fff; }

/* ── Form Controls ── */
.form-control, .form-select {
    background: var(--bg2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 4px;
    padding: 0.6rem 0.85rem;
    font-size: 0.88rem;
    width: 100%;
    font-family: var(--font-body);
}
.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(46,125,50,0.15);
    background: var(--bg2);
    color: var(--text);
}
.form-control::placeholder { color: var(--muted); opacity: 0.6; }
.form-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.35rem; display: block; }

/* ── Settings Tabs ── */
.settings-tab {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.settings-tab:hover { color: var(--green2); }
.settings-tab.active { color: var(--green2); border-bottom-color: var(--green); }

/* ── Status Badges ── */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-new { background: rgba(46,125,50,0.2); color: #4ade80; }
.badge-contacted { background: rgba(6,182,212,0.15); color: #22d3ee; }
.badge-replied { background: rgba(74,222,128,0.15); color: #86efac; }
.badge-closed { background: rgba(120,113,108,0.15); color: #a8a29e; }

/* ── Alerts ── */
.alert { border-radius: 4px; padding: 0.75rem 1rem; margin-bottom: 1rem; font-size: 0.85rem; }
.alert-success { background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.3); color: #4ade80; }
.alert-danger { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.3); color: #f87171; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; padding: 1rem; padding-top: 4rem; }
    .sidebar-toggle { display: block; }
    .admin-header { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
}
