/* Admin Panel CSS - Uses variables.css for base variables */ /* Admin-specific layout variables */ :root { --sidebar-width: 260px; --topbar-height: 70px; --sidebar-bg: #1a1a2e; --body-bg: #f4f6fa; --card-bg: #ffffff; --sidebar-text: #94a3b8; --sidebar-text-active: #ffffff; --sidebar-hover: #1e293b; --sidebar-active: #1a5f4a; --card-border: #e2e8f0; --text-primary: #1e293b; --text-secondary: #64748b; } /* Layout */ body { background: var(--body-bg); font-family: 'Inter', sans-serif; } /* Sidebar */ .sidebar { position: fixed; left: 0; top: 0; width: var(--sidebar-width); height: 100vh; background: var(--sidebar-bg); color: white; z-index: 1000; transition: transform 0.3s ease; } .sidebar-brand { padding: 20px; font-size: 1.5rem; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.1); } .sidebar-nav { padding: 20px 0; } .sidebar-section { padding: 10px 20px; font-size: 0.75rem; text-transform: uppercase; color: rgba(255,255,255,0.5); letter-spacing: 1px; } .sidebar-link { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: rgba(255,255,255,0.8); transition: all 0.2s ease; } .sidebar-link:hover, .sidebar-link.active { background: rgba(255,255,255,0.1); color: white; } .sidebar-link i { font-size: 1.2rem; } /* Main Content */ .main-wrapper { margin-left: var(--sidebar-width); min-height: 100vh; } /* Topbar */ .topbar { position: sticky; top: 0; height: var(--topbar-height); background: var(--card-bg); box-shadow: 0 2px 10px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: space-between; padding: 0 30px; z-index: 900; } .topbar-search { position: relative; flex: 1; max-width: 400px; } .topbar-search input { width: 100%; padding: 10px 15px 10px 40px; border: 1px solid #e9ecef; border-radius: 8px; background: #f8f9fa; } .topbar-search i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--gray); } .topbar-user { display: flex; align-items: center; gap: 20px; } .topbar-notification { position: relative; cursor: pointer; } .topbar-notification i { font-size: 1.5rem; color: var(--gray); } .topbar-notification .badge { position: absolute; top: -5px; right: -5px; width: 18px; height: 18px; border-radius: 50%; background: #ef4444; color: white; font-size: 0.7rem; display: flex; align-items: center; justify-content: center; } .user-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; } /* Page Content */ .page-content { padding: 30px; } .page-header { margin-bottom: 30px; } .page-title { font-size: 1.5rem; font-weight: 700; color: var(--dark); } .page-subtitle { color: var(--gray); margin-top: 5px; } /* Stats Grid */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 30px; } .stat-card { background: var(--card-bg); border-radius: 12px; padding: 25px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); } .stat-card-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 15px; } .stat-card-icon.blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; } .stat-card-icon.green { background: rgba(16, 185, 129, 0.1); color: #10b981; } .stat-card-icon.purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; } .stat-card-icon.orange { background: rgba(245, 158, 11, 0.1); color: #f59e0b; } .stat-card-value { font-size: 2rem; font-weight: 700; margin-bottom: 5px; } .stat-card-label { color: var(--gray); font-size: 0.9rem; } /* Charts */ .charts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 30px; } .chart-card { background: var(--card-bg); border-radius: 12px; padding: 25px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); } .chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; } .chart-title { font-size: 1.1rem; font-weight: 600; } .chart-container { height: 300px; } /* Tables */ .table-wrapper { background: var(--card-bg); border-radius: 12px; padding: 25px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); overflow-x: auto; } .table { width: 100%; border-collapse: collapse; } .table th, .table td { padding: 15px; text-align: left; border-bottom: 1px solid #e9ecef; } .table th { font-weight: 600; color: var(--gray); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.5px; } .table tr:hover { background: #f8f9fa; } /* Properties Grid */ .properties-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; } .property-admin-card { background: var(--card-bg); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); } .property-admin-card img { width: 100%; height: 180px; object-fit: cover; } .property-admin-info { padding: 20px; } /* Modal */ .modal-backdrop { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1050; } .modal-content { background: var(--card-bg); border-radius: 12px; max-width: 600px; width: 100%; margin: auto; } .modal-header { padding: 20px; border-bottom: 1px solid #e9ecef; } .modal-body { padding: 20px; } .modal-footer { padding: 20px; border-top: 1px solid #e9ecef; display: flex; justify-content: flex-end; gap: 10px; } /* Animations */ @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } @keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } } .animate-fade-in { animation: fadeIn 0.3s ease; } .loading-skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; } /* Responsive */ @media (max-width: 991px) { .sidebar { transform: translateX(-100%); } .sidebar.open { transform: translateX(0); } .main-wrapper { margin-left: 0; } .charts-grid { grid-template-columns: 1fr; } } @media (max-width: 768px) { .stats-grid { grid-template-columns: 1fr; } .page-content { padding: 15px; } }