/* ===== Admin Panel Styles ===== */
.admin-body { background: #f1f5f9; }

.admin-wrapper { display: flex; min-height: 100vh; }

/* Sidebar */
.admin-sidebar {
    width: 250px;
    background: #0f172a;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 1000;
    overflow-y: auto;
    transition: transform .3s ease;
}
.sidebar-header {
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}
.sidebar-title { font-size: 1rem; }
.sidebar-nav { padding: 1rem 0; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .8rem 1.5rem;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: all .2s;
    border-left: 3px solid transparent;
}
.sidebar-nav a:hover {
    background: rgba(255,255,255,.05);
    color: #fff;
    border-left-color: var(--primary);
}
.sidebar-nav a i { font-size: 1.1rem; }
.logout-link:hover { border-left-color: var(--error) !important; color: #fca5a5 !important; }

/* Main area */
.admin-main { margin-left: 250px; flex: 1; }
.admin-topbar {
    background: #fff;
    padding: 1rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}
.admin-content { padding: 2rem 1.5rem; }

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}
.dash-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    gap: .5rem;
    position: relative;
    overflow: hidden;
}
.dash-icon { font-size: 2rem; }
.dash-primary .dash-icon { color: #0d6efd; }
.dash-success .dash-icon { color: #10b981; }
.dash-warning .dash-icon { color: #f59e0b; }
.dash-info .dash-icon { color: #06b6d4; }
.dash-number { font-size: 2rem; font-weight: 700; font-family: 'Poppins', sans-serif; }
.dash-label { color: #64748b; font-size: .85rem; }
.dash-link {
    color: var(--primary);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
    margin-top: .5rem;
}

/* Quick Links */
.quick-links h5 { font-weight: 600; }
.quick-link {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    padding: 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: #1e293b;
    font-size: .9rem;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    transition: all .2s;
}
.quick-link:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.08); color: var(--primary); }
.quick-link i { font-size: 1.2rem; color: var(--primary); }

/* Form Cards */
.admin-form-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.admin-form-card h5 { font-weight: 600; margin-bottom: 1rem; padding-bottom: .8rem; border-bottom: 1px solid #e2e8f0; }
.admin-form-card label { font-weight: 500; font-size: .9rem; color: #334155; }
.admin-form-card .form-control, .admin-form-card .form-select { border-radius: 8px; border-color: #e2e8f0; }
.admin-form-card .form-control:focus, .admin-form-card .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(13,110,253,.15); }

.form-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* Tables */
.admin-table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.admin-table table { margin: 0; }
.admin-table thead { background: #f8fafc; }
.admin-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: #64748b; font-weight: 600; padding: 1rem; }
.admin-table td { padding: .9rem 1rem; vertical-align: middle; font-size: .9rem; }
.action-buttons { display: flex; gap: .3rem; }

/* Messages */
.messages-list { display: flex; flex-direction: column; gap: 1rem; }
.message-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    border-left: 4px solid #e2e8f0;
}
.message-card.unread { border-left-color: var(--primary); background: #f8faff; }
.message-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; flex-wrap: wrap; gap: .5rem; }
.message-sender strong { font-size: 1rem; }
.message-email { color: #64748b; font-size: .85rem; }
.message-date { color: #94a3b8; font-size: .8rem; }
.message-subject { color: var(--primary); font-weight: 500; margin-bottom: .5rem; font-size: .9rem; }
.message-body { color: #475569; font-size: .9rem; margin-bottom: .8rem; }
.message-meta { color: #64748b; font-size: .85rem; margin-bottom: .8rem; }
.message-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Empty State */
.empty-state { text-align: center; padding: 3rem; color: #94a3b8; }
.empty-state i { font-size: 3rem; }

/* Responsive */
@media (max-width: 991px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
}
