/* =========================================
   GLOBAL VARIABLES — LIGHT & DARK MODE
========================================= */

/* Light Mode */
:root {
    --bg: #ffffff;
    --bg-alt: #f4f4f4;
    --text: #1e1e1e;
    --text-soft: #555555;
    --primary: #2a5fff;
    --verified: #2ecc71;
    --border: #e5e5e5;
    --card-radius: 6px;

    --header-height: 70px;
    --max-width: 900px;

    --shadow-light: 0 2px 8px rgba(0,0,0,0.06);
}

/* Dark Mode */
[data-theme="dark"] {
    --bg: #121212;
    --bg-alt: #1e1e1e;
    --text: #ffffff;
    --text-soft: #cccccc;
    --primary: #4c7dff;
    --verified: #2ecc71;
    --border: #2a2a2a;
    --card-radius: 6px;

    --shadow-light: 0 2px 8px rgba(0,0,0,0.3);
}

/* =========================================
   GLOBAL RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Roboto, Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-height);
    transition: background 0.3s ease, color 0.3s ease;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    opacity: 0.8;
}

/* =========================================
   HEADER
========================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    z-index: 100;
    transition: background 0.3s ease;
}

.header-inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
}

.nav a {
    margin-left: 20px;
    font-size: 0.95rem;
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.3rem;
    margin-left: 20px;
    user-select: none;
}

/* =========================================
   PAGE WRAPPER — CENTERED LAYOUT
========================================= */

.page-wrapper {
    max-width: var(--max-width);
    margin: 40px auto;
    padding: 0 20px;
}

/* =========================================
   CARD COMPONENT
========================================= */

.card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-light);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.card h1,
.card h2,
.card h3 {
    margin-bottom: 15px;
}

.card p {
    color: var(--text-soft);
}

/* CTA Button */
.cta-button {
    display: inline-block;
    margin-top: 20px;
    background: var(--primary);
    color: #fff;
    padding: 12px 25px;
    border-radius: var(--card-radius);
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.cta-button:hover {
    opacity: 0.85;
}

/* Benefits List */
.benefits-list {
    list-style: none;
    margin-top: 15px;
}

.benefits-list li {
    margin-bottom: 12px;
    color: var(--text-soft);
}

/* Steps List */
.steps-list {
    margin-top: 15px;
    padding-left: 20px;
}

.steps-list li {
    margin-bottom: 10px;
}

/* Form Styling */
.form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.form label {
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text);
}

.form input,
.form select {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form input:focus,
.form select:focus {
    border-color: var(--primary);
    outline: none;
}

/* Placeholder Box */
.placeholder-box {
    background: var(--bg);
    border: 1px dashed var(--border);
    padding: 20px;
    border-radius: var(--card-radius);
    margin-top: 15px;
    text-align: center;
    color: var(--text-soft);
}

/* Quick Action Buttons */
.action-buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-button.small {
    padding: 10px 18px;
    font-size: 0.9rem;
}

/* Profile Photo Box */
.profile-photo-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--border);
    object-fit: cover;
}

/* Textarea */
.form textarea {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    resize: vertical;
}

/* Results Grid */
.results-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* Member Card */
.member-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-light);
}

.member-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.member-info {
    color: var(--text-soft);
    margin-bottom: 15px;
}

/* Messaging Layout */
.messaging-wrapper {
    display: flex;
    gap: 20px;
}

/* Inbox Sidebar */
.inbox {
    width: 260px;
    border-right: 1px solid var(--border);
    padding-right: 20px;
}

.inbox h2 {
    margin-bottom: 15px;
}

.inbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--card-radius);
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.2s ease;
}

.inbox-item:hover {
    background: var(--bg);
}

.inbox-item.active {
    background: var(--bg);
    border: 1px solid var(--primary);
}

.inbox-photo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.preview {
    color: var(--text-soft);
    font-size: 0.85rem;
}

/* Conversation Panel */
.conversation {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.messages-area {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 20px;
    height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

/* Message Bubbles */
.msg {
    max-width: 70%;
    padding: 12px 15px;
    border-radius: var(--card-radius);
    margin-bottom: 12px;
    position: relative;
}

.msg-in {
    background: var(--bg-alt);
    color: var(--text);
}

.msg-out {
    background: var(--primary);
    color: #fff;
    margin-left: auto;
}

/* Timestamp */
.timestamp {
    display: block;
    font-size: 0.75rem;
    margin-top: 5px;
    opacity: 0.7;
}

/* Ticks */
.ticks {
    font-size: 0.85rem;
    margin-left: 6px;
    opacity: 0.9;
}

.ticks.delivered {
    color: #fff;
}

.ticks.read {
    color: #2ecc71;
}

/* Message Input */
.message-input {
    display: flex;
    gap: 10px;
}

.message-input input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    background: var(--bg);
    color: var(--text);
}

/* Sent Messages List */
.sent-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Sent Message Item */
.sent-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 20px;
    box-shadow: var(--shadow-light);
}

/* Header (photo + name + time) */
.sent-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.sent-photo {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

.sent-time {
    color: var(--text-soft);
    font-size: 0.85rem;
}

/* Message Body */
.sent-body p {
    margin-bottom: 10px;
}

/* Status (Delivered / Read) */
.sent-status {
    margin-top: 10px;
}

.sent-status .ticks {
    font-size: 0.9rem;
    font-weight: 600;
}

.sent-status .delivered {
    color: var(--primary);
}

.sent-status .read {
    color: var(--verified);
}

/* Conversation Header */
.conversation-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.conv-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.conv-status {
    color: var(--text-soft);
    font-size: 0.85rem;
}

/* Switch Label */
.switch-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    font-weight: 600;
}

/* Blocked Users */
.blocked-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.blocked-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: var(--card-radius);
}

.blocked-photo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

/* Blocked Users Page */
.blocked-info {
    flex: 1;
}

.blocked-reason {
    color: var(--text-soft);
    font-size: 0.85rem;
}

/* Notifications Page */
.switch-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    font-weight: 600;
}

/* Favourites Grid */
.favourites-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* Favourite Card */
.fav-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-light);
}

.fav-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.fav-info {
    color: var(--text-soft);
    margin-bottom: 15px;
}

/* Actions */
.fav-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.fav-actions .remove {
    background: #d9534f;
}

/* Admin Stats Grid */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--card-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 10px;
}

/* Quick Actions */
.admin-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Activity List */
.activity-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: var(--card-radius);
}

.activity-time {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--text-soft);
}

/* Admin Search Form */
.admin-search {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Table Wrapper */
.admin-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.admin-table th {
    font-weight: 700;
}

.table-photo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

/* Status Tags */
.status {
    padding: 4px 8px;
    border-radius: var(--card-radius);
    font-size: 0.85rem;
    font-weight: 600;
}

.status.verified {
    background: #2ecc71;
    color: #fff;
}

.status.pending {
    background: #f0ad4e;
    color: #fff;
}

.status.suspended {
    background: #d9534f;
    color: #fff;
}

/* Action Buttons */
.actions {
    display: flex;
    gap: 8px;
}

.cta-button.small.warn {
    background: #f0ad4e;
}

.cta-button.small.danger {
    background: #d9534f;
}

/* ID Preview */
.id-preview {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--card-radius);
    border: 1px solid var(--border);
}

/* Approve / Deny Buttons */
.cta-button.small.approve {
    background: #2ecc71;
}

.cta-button.small.deny {
    background: #d9534f;
}

/* Report Tags */
.tag {
    padding: 4px 8px;
    border-radius: var(--card-radius);
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.tag.abuse {
    background: #d9534f;
}

.tag.spam {
    background: #f0ad4e;
}

.tag.fake {
    background: #5bc0de;
}

.tag.photo {
    background: #9b59b6;
}

.tag.message {
    background: #3498db;
}

/* Report Details */
.report-details {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--card-radius);
    margin-top: 20px;
}

/* Message Tags */
.tag.explicit {
    background: #e74c3c;
}

.msg-preview {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: var(--card-radius);
    margin: 10px 0 20px;
    font-style: italic;
}

/* Action Buttons */
.cta-button.small.suspend {
    background: #f0ad4e;
}

.cta-button.small.danger {
    background: #d9534f;
}

/* Ban Details */
.ban-details {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--card-radius);
    margin-top: 20px;
}

/* Danger Button */
.cta-button.small.danger {
    background: #d9534f;
}

/* System Grid */
.system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.sys-box {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--card-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
}

.sys-value {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 10px;
}

/* API Status */
.api-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.api-box {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: var(--card-radius);
}

.api-ok {
    color: #2ecc71;
    font-weight: 700;
}

.api-warn {
    color: #f0ad4e;
    font-weight: 700;
}

.api-down {
    color: #d9534f;
    font-weight: 700;
}

/* Logs */
.log-box {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--card-radius);
    margin-top: 20px;
    overflow-x: auto;
}

/* Database Inspector */
.admin-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
}

.admin-table td,
.admin-table th {
    white-space: nowrap;
}

#table-select {
    padding: 10px;
    border-radius: var(--card-radius);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
}

/* Cron Job Tags */
.tag.ok {
    background: #2ecc71;
    color: #fff;
}

.tag.warn {
    background: #f0ad4e;
    color: #fff;
}

.tag.error {
    background: #d9534f;
    color: #fff;
}

/* Logs */
.log-box {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--card-radius);
    margin-top: 20px;
    overflow-x: auto;
}

.note {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-soft);
}

.note.danger {
    color: #d9534f;
}

.cta-button.small.warn {
    background: #f0ad4e;
}

.tag.ok {
    background: #2ecc71;
    color: #fff;
}

.log-box {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--card-radius);
    margin-top: 20px;
    overflow-x: auto;
}

/* File Browser Tags */
.tag.folder {
    background: #3498db;
    color: #fff;
}

.tag.file {
    background: #2ecc71;
    color: #fff;
}

/* File Preview */
.file-preview {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--card-radius);
    margin-top: 20px;
    overflow-x: auto;
}

/* Process Tags */
.tag.ok {
    background: #2ecc71;
    color: #fff;
}

.tag.warn {
    background: #f0ad4e;
    color: #fff;
}

.tag.stopped {
    background: #d9534f;
    color: #fff;
}

/* Logs */
.log-box {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--card-radius);
    margin-top: 20px;
    overflow-x: auto;
}

/* Firewall Tags */
.tag.block {
    background: #d9534f;
    color: #fff;
}

.tag.challenge {
    background: #9b59b6;
    color: #fff;
}

.tag.rate {
    background: #f0ad4e;
    color: #fff;
}

.tag.allow {
    background: #2ecc71;
    color: #fff;
}

/* Event Details */
.event-details {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--card-radius);
    margin-top: 20px;
}

/* Audit Log Tags */
.tag.login {
    background: #3498db;
    color: #fff;
}

.tag.suspend {
    background: #e67e22;
    color: #fff;
}

.tag.delete {
    background: #d9534f;
    color: #fff;
}

.tag.verify {
    background: #2ecc71;
    color: #fff;
}

.tag.ban {
    background: #9b59b6;
    color: #fff;
}

.tag.backup {
    background: #1abc9c;
    color: #fff;
}

.tag.cron {
    background: #f0ad4e;
    color: #fff;
}

.tag.process {
    background: #8e44ad;
    color: #fff;
}

.tag.firewall {
    background: #c0392b;
    color: #fff;
}

.tag.file {
    background: #7f8c8d;
    color: #fff;
}

/* Log Details */
.log-details {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--card-radius);
    margin-top: 20px;
}

/* Permissions Grid */
.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.permissions-grid label {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: var(--card-radius);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Admin Login Page */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: var(--bg);
}

.login-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 40px;
    width: 350px;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
}

.login-card h1 {
    margin-bottom: 10px;
}

.login-sub {
    color: var(--text-soft);
    margin-bottom: 25px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cta-button.full {
    width: 100%;
}

.login-note {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-soft);
}

/* Notifications List */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notif-item {
    padding: 20px;
    border-radius: var(--card-radius);
    border: 1px solid var(--border);
    background: var(--bg);
    box-shadow: var(--shadow-light);
}

.notif-item h3 {
    margin-bottom: 8px;
}

.notif-time {
    font-size: 0.85rem;
    color: var(--text-soft);
}

/* Notification Types */
.notif-item.info {
    border-left: 5px solid #3498db;
}

.notif-item.warning {
    border-left: 5px solid #f0ad4e;
}

.notif-item.critical {
    border-left: 5px solid #d9534f;
}

.notif-item.security {
    border-left: 5px solid #9b59b6;
}

.notif-item.process {
    border-left: 5px solid #1abc9c;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dash-box {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--card-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
}

.dash-value {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 10px;
}

/* System Health Grid */
.system-health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.sys-box {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: var(--card-radius);
    text-align: center;
}

.sys-value {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 8px;
}

/* Security Grid */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.sec-box {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: var(--card-radius);
    text-align: center;
}

.sec-value {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 8px;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

/* Notifications List */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notif-item {
    padding: 20px;
    border-radius: var(--card-radius);
    border: 1px solid var(--border);
    background: var(--bg);
    box-shadow: var(--shadow-light);
}

.notif-item h3 {
    margin-bottom: 8px;
}

.notif-time {
    font-size: 0.85rem;
    color: var(--text-soft);
}

/* Notification Types */
.notif-item.info {
    border-left: 5px solid #3498db;
}

.notif-item.warning {
    border-left: 5px solid #f0ad4e;
}

.notif-item.critical {
    border-left: 5px solid #d9534f;
}

.notif-item.security {
    border-left: 5px solid #9b59b6;
}

.notif-item.process {
    border-left: 5px solid #1abc9c;
}

/* Environment Variables Viewer */
.tag.ok {
    background: #2ecc71;
    color: #fff;
}

.tag.warn {
    background: #f0ad4e;
    color: #fff;
}

.note.danger {
    color: #d9534f;
}

/* API Key Manager */
.tag.ok {
    background: #2ecc71;
    color: #fff;
}

.tag.warn {
    background: #f0ad4e;
    color: #fff;
}

.tag.error {
    background: #d9534f;
    color: #fff;
}

.note.danger {
    color: #d9534f;
}

/* Session Monitor */
.tag.ok {
    background: #2ecc71;
    color: #fff;
}

.tag.warn {
    background: #f0ad4e;
    color: #fff;
}

.tag.idle {
    background: #9b59b6;
    color: #fff;
}

.note.danger {
    color: #d9534f;
}

/* Admin Settings */
.settings-row {
    margin: 12px 0;
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    display: flex;
    align-items: center;
    gap: 10px;
}

.system-info p {
    margin: 6px 0;
}

/* Admin Profile */
.profile-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--border);
}

.profile-details p {
    margin: 4px 0;
}

/* Global Admin Search Bar */
.admin-searchbar {
    position: relative;
    flex: 1;
    max-width: 300px;
    margin: 0 20px;
}

.admin-searchbar input {
    width: 100%;
    padding: 8px 12px;
    border-radius: var(--card-radius);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 0.95rem;
}

.admin-searchbar input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-light);
    display: none; /* JS will toggle */
    z-index: 50;
}

.search-results .result-item {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.search-results .result-item:last-child {
    border-bottom: none;
}

.search-results .result-item:hover {
    background: var(--bg-hover);
}


/* =========================================
   FOOTER
========================================= */

.site-footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-soft);
    font-size: 0.9rem;
}
