/* ==========================================================================
   MAHARAJA INTERIOR — ADMIN LEAD CRM & CMS DASHBOARD STYLES
   ========================================================================== */

.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    background: #F8FAFC;
    color: #1E293B;
}

.admin-sidebar {
    background: #180306;
    border-right: 2px solid #D4AF37;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    margin-bottom: 24px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    color: #F4EFEB;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-nav-item:hover, .admin-nav-item.active {
    background: rgba(212, 175, 55, 0.2);
    color: #F5D061;
}

.admin-main {
    padding: 30px;
    overflow-y: auto;
}

.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: #1A0307;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CRM Table */
.crm-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.crm-toolbar {
    padding: 18px 24px;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.crm-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    padding: 8px 14px;
    min-width: 280px;
}

.crm-table-wrap {
    overflow-x: auto;
}

.crm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.crm-table th {
    background: #F8FAFC;
    padding: 14px 18px;
    font-weight: 700;
    color: #475569;
    border-bottom: 1px solid #E2E8F0;
    text-transform: uppercase;
    font-size: 0.76rem;
    letter-spacing: 0.5px;
}

.crm-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
}

.crm-table tr:hover {
    background: #F8FAFC;
}

/* Status Badges */
.status-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-new { background: #DBEAFE; color: #1E40AF; }
.status-contacted { background: #FEF3C7; color: #92400E; }
.status-qualified { background: #E0E7FF; color: #3730A3; }
.status-site-visit { background: #FCE7F3; color: #9D174D; }
.status-proposal { background: #EDE9FE; color: #5B21B6; }
.status-won { background: #DCFCE7; color: #166534; }
.status-lost { background: #FEE2E2; color: #991B1B; }

/* Action Buttons */
.crm-action-btn {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    transition: all 0.2s ease;
}

.crm-action-btn:hover {
    background: #F1F5F9;
}

.crm-action-btn.btn-wa {
    background: #25D366;
    color: #FFFFFF;
    border-color: #25D366;
}

.crm-action-btn.btn-wa:hover {
    background: #1FB855;
}

/* Settings Form */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 24px;
}
