/* =============================================
   Realtor Mahi - Admin Dashboard Stylesheet
   Premium Dark Theme
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* =============================================
   CSS Custom Properties
   ============================================= */
:root {
    --admin-bg: #0a0e1a;
    --admin-surface: #111827;
    --admin-surface-2: #1a2332;
    --admin-surface-3: #243044;
    --admin-border: rgba(148, 163, 184, 0.08);
    --admin-border-hover: rgba(201, 163, 79, 0.2);
    --sidebar-width: 260px;
    --sidebar-collapsed: 72px;
    --topbar-height: 65px;
    --gold: #c9a34f;
    --gold-light: #d4b76a;
    --gold-dark: #a8853d;
    --text-white: #ffffff;
    --text-gray: #94a3b8;
    --text-muted: #64748b;
    --green: #22c55e;
    --red: #ef4444;
    --blue: #3b82f6;
    --orange: #f97316;
    --purple: #8b5cf6;
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
}

/* =============================================
   Reset & Base
   ============================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--admin-bg);
    color: var(--text-white);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }
input, select, textarea { font-family: inherit; outline: none; border: none; }
img { max-width: 100%; display: block; }

/* =============================================
   Admin Layout
   ============================================= */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* =============================================
   Sidebar
   ============================================= */
.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--admin-surface);
    border-right: 1px solid var(--admin-border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: width var(--transition), transform var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--admin-border);
    flex-shrink: 0;
}

.sidebar-logo {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--admin-bg);
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.sidebar-brand {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    white-space: nowrap;
}

.sidebar-nav {
    padding: 16px 12px;
    flex: 1;
}

.sidebar-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding: 8px 16px;
    margin-top: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-gray);
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition);
    margin-bottom: 4px;
    white-space: nowrap;
}

.sidebar-link i {
    font-size: 18px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-link:hover {
    background: var(--admin-surface-2);
    color: var(--text-white);
}

.sidebar-link.active {
    background: rgba(201, 163, 79, 0.12);
    color: var(--gold);
    font-weight: 600;
}

.sidebar-link.active i {
    color: var(--gold);
}

.sidebar-link .badge-count {
    margin-left: auto;
    background: var(--red);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    min-width: 22px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--admin-border);
    flex-shrink: 0;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.sidebar-user:hover {
    background: var(--admin-surface-2);
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--admin-bg);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-user-info {
    overflow: hidden;
}

.sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: capitalize;
}

/* =============================================
   Main Content Area
   ============================================= */
.admin-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    transition: margin-left var(--transition);
}

/* Topbar */
.admin-topbar {
    height: var(--topbar-height);
    background: var(--admin-surface);
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-toggle {
    width: 36px;
    height: 36px;
    background: transparent;
    color: var(--text-gray);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.topbar-toggle:hover {
    background: var(--admin-surface-2);
    color: var(--text-white);
}

.topbar-title h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
}

.topbar-title p {
    font-size: 12px;
    color: var(--text-muted);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-search {
    position: relative;
}

.topbar-search input {
    width: 240px;
    padding: 8px 16px 8px 38px;
    background: var(--admin-surface-2);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-size: 13px;
    transition: all var(--transition);
}

.topbar-search input:focus {
    border-color: var(--gold);
    width: 300px;
}

.topbar-search input::placeholder { color: var(--text-muted); }

.topbar-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.topbar-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-gray);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all var(--transition);
}

.topbar-btn:hover {
    background: var(--admin-surface-2);
    color: var(--text-white);
}

.topbar-btn .notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    border: 2px solid var(--admin-surface);
}

/* =============================================
   Page Content
   ============================================= */
.admin-content {
    padding: 28px;
}

/* =============================================
   Dashboard Stat Cards
   ============================================= */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.stat-card:hover {
    border-color: var(--admin-border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-card:nth-child(1)::before { background: var(--gold); }
.stat-card:nth-child(2)::before { background: var(--green); }
.stat-card:nth-child(3)::before { background: var(--blue); }
.stat-card:nth-child(4)::before { background: var(--purple); }

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stat-card-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.stat-card:nth-child(1) .stat-card-icon { background: rgba(201, 163, 79, 0.12); color: var(--gold); }
.stat-card:nth-child(2) .stat-card-icon { background: rgba(34, 197, 94, 0.12); color: var(--green); }
.stat-card:nth-child(3) .stat-card-icon { background: rgba(59, 130, 246, 0.12); color: var(--blue); }
.stat-card:nth-child(4) .stat-card-icon { background: rgba(139, 92, 246, 0.12); color: var(--purple); }

.stat-card-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card-change {
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-card-change.positive { color: var(--green); }
.stat-card-change.negative { color: var(--red); }

/* =============================================
   Dashboard Charts
   ============================================= */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.chart-card {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius);
    padding: 24px;
}

.chart-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.chart-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
}

.chart-card-actions {
    display: flex;
    gap: 4px;
}

.chart-card-actions button {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    background: transparent;
    color: var(--text-muted);
    border-radius: 6px;
    transition: all var(--transition);
}

.chart-card-actions button.active,
.chart-card-actions button:hover {
    background: rgba(201, 163, 79, 0.12);
    color: var(--gold);
}

.chart-container {
    position: relative;
    height: 300px;
}

/* =============================================
   Data Tables
   ============================================= */
.data-card {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.data-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--admin-border);
}

.data-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
}

.data-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.data-search {
    position: relative;
}

.data-search input {
    width: 220px;
    padding: 8px 14px 8px 36px;
    background: var(--admin-surface-2);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-size: 13px;
}

.data-search input:focus { border-color: var(--gold); }
.data-search input::placeholder { color: var(--text-muted); }

.data-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--admin-surface-2);
}

.data-table th {
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-align: left;
    white-space: nowrap;
}

.data-table td {
    padding: 14px 20px;
    font-size: 14px;
    color: var(--text-gray);
    border-bottom: 1px solid var(--admin-border);
    vertical-align: middle;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.table-property {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-property-img {
    width: 50px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.table-property-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.table-property-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 2px;
}

.table-property-info p {
    font-size: 12px;
    color: var(--text-muted);
}

.table-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--admin-surface-3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}

.table-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.table-actions {
    display: flex;
    gap: 6px;
}

.table-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--admin-surface-2);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--transition);
}

.table-action-btn:hover {
    color: var(--text-white);
}

.table-action-btn.edit:hover { background: rgba(59, 130, 246, 0.15); color: var(--blue); }
.table-action-btn.delete:hover { background: rgba(239, 68, 68, 0.15); color: var(--red); }
.table-action-btn.view:hover { background: rgba(201, 163, 79, 0.15); color: var(--gold); }

.data-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-top: 1px solid var(--admin-border);
}

.table-info {
    font-size: 13px;
    color: var(--text-muted);
}

.table-pagination {
    display: flex;
    gap: 4px;
}

.table-pagination a,
.table-pagination span {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
}

.table-pagination a {
    background: var(--admin-surface-2);
    color: var(--text-gray);
}

.table-pagination a:hover {
    background: var(--gold);
    color: var(--admin-bg);
}

.table-pagination .active {
    background: var(--gold);
    color: var(--admin-bg);
    font-weight: 600;
}

/* =============================================
   Admin Forms
   ============================================= */
.form-card {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 20px;
}

.form-card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--admin-border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 6px;
}

.form-group label .required {
    color: var(--red);
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--admin-surface-2);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-size: 14px;
    transition: all var(--transition);
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 163, 79, 0.1);
}

.form-control::placeholder { color: var(--text-muted); }

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

select.form-control option { background: var(--admin-surface-2); }

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 10px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
    cursor: pointer;
}

.form-check label {
    font-size: 14px;
    color: var(--text-gray);
    cursor: pointer;
    margin-bottom: 0;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--admin-border);
    margin-top: 8px;
}

/* =============================================
   Admin Buttons
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--admin-bg);
}

.btn-primary:hover {
    box-shadow: 0 4px 15px rgba(201, 163, 79, 0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--admin-surface-2);
    color: var(--text-gray);
    border: 1px solid var(--admin-border);
}

.btn-secondary:hover {
    background: var(--admin-surface-3);
    color: var(--text-white);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--red);
}

.btn-danger:hover {
    background: var(--red);
    color: white;
}

.btn-success {
    background: rgba(34, 197, 94, 0.12);
    color: var(--green);
}

.btn-success:hover {
    background: var(--green);
    color: white;
}

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* =============================================
   Image Upload Zone
   ============================================= */
.upload-zone {
    border: 2px dashed var(--admin-border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--admin-surface-2);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--gold);
    background: rgba(201, 163, 79, 0.05);
}

.upload-zone i {
    font-size: 36px;
    color: var(--gold);
    margin-bottom: 12px;
}

.upload-zone h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 4px;
}

.upload-zone p {
    font-size: 13px;
    color: var(--text-muted);
}

.upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.upload-preview-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.upload-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--transition);
}

.upload-preview-item .remove-btn:hover {
    transform: scale(1.1);
}

.upload-preview-item .primary-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    padding: 2px 8px;
    background: var(--gold);
    color: var(--admin-bg);
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

/* =============================================
   Amenities Checkbox Grid
   ============================================= */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.amenity-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--admin-surface-2);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.amenity-checkbox:hover {
    border-color: var(--gold);
}

.amenity-checkbox input:checked + .amenity-label {
    color: var(--gold);
}

.amenity-checkbox input {
    accent-color: var(--gold);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.amenity-label {
    font-size: 13px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.amenity-label i {
    color: var(--gold);
    font-size: 14px;
    width: 18px;
    text-align: center;
}

/* =============================================
   Modal
   ============================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: fadeInUp 0.3s ease-out;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--admin-border);
}

.modal-header h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-white);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--admin-surface-2);
    color: var(--text-muted);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--red);
    color: white;
}

.modal-body { padding: 24px; }

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--admin-border);
}

/* =============================================
   Alert / Flash Messages
   ============================================= */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    animation: fadeInDown 0.3s ease-out;
}

.alert-success { background: rgba(34, 197, 94, 0.12); color: var(--green); border: 1px solid rgba(34, 197, 94, 0.2); }
.alert-error { background: rgba(239, 68, 68, 0.12); color: var(--red); border: 1px solid rgba(239, 68, 68, 0.2); }
.alert-warning { background: rgba(249, 115, 22, 0.12); color: var(--orange); border: 1px solid rgba(249, 115, 22, 0.2); }
.alert-info { background: rgba(59, 130, 246, 0.12); color: var(--blue); border: 1px solid rgba(59, 130, 246, 0.2); }

.alert-close {
    margin-left: auto;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--transition);
}

.alert-close:hover { opacity: 1; }

/* =============================================
   Badge
   ============================================= */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success { background: rgba(34, 197, 94, 0.12); color: var(--green); }
.badge-danger { background: rgba(239, 68, 68, 0.12); color: var(--red); }
.badge-warning { background: rgba(249, 115, 22, 0.12); color: var(--orange); }
.badge-info { background: rgba(59, 130, 246, 0.12); color: var(--blue); }
.badge-primary { background: rgba(201, 163, 79, 0.12); color: var(--gold); }
.badge-secondary { background: rgba(148, 163, 184, 0.12); color: var(--text-gray); }

/* =============================================
   Status Toggle
   ============================================= */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--admin-surface-3);
    border-radius: 999px;
    transition: all var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: all var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--green);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* =============================================
   Empty State
   ============================================= */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* =============================================
   Login Page
   ============================================= */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--admin-bg);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 163, 79, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.login-page::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius);
    padding: 40px;
    position: relative;
    z-index: 1;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo .logo-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 22px;
    font-weight: 800;
    color: var(--admin-bg);
}

.login-logo h1 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 4px;
}

.login-logo p {
    font-size: 14px;
    color: var(--text-muted);
}

.login-form .form-group { margin-bottom: 18px; }

.login-form .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 6px;
}

.login-form .form-control {
    padding: 12px 14px;
}

.login-form .btn-primary {
    width: 100%;
    padding: 13px;
    font-size: 15px;
}

.login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--red);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
}

/* =============================================
   Animations
   ============================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .form-row-3 { grid-template-columns: 1fr; }
    .amenities-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .stats-row { grid-template-columns: 1fr; }

    .admin-content { padding: 16px; }

    .data-card-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .topbar-search { display: none; }

    .data-table { display: block; overflow-x: auto; }

    .modal { margin: 10px; }
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

@media (max-width: 768px) {
    .sidebar-overlay.active {
        display: block;
    }
}

/* =============================================
   Utility Classes
   ============================================= */
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.hidden { display: none !important; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-10 { gap: 10px; }
.w-full { width: 100%; }
