:root { --primary: #1a5f4a; --primary-light: #2d8f6f; --primary-dark: #0d4535; --secondary: #d4a853; --accent: #e85d04; --success: #10b981; --warning: #f59e0b; --danger: #ef4444; --info: #3b82f6; /* Dark Theme */ --sidebar-bg: #0f172a; --sidebar-hover: #1e293b; --sidebar-active: #1a5f4a; --sidebar-text: #94a3b8; --sidebar-text-active: #ffffff; --body-bg: #f1f5f9; --card-bg: #ffffff; --card-border: #e2e8f0; --text-primary: #1e293b; --text-secondary: #64748b; --text-muted: #94a3b8; --sidebar-width: 280px; --topbar-height: 70px; --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05); --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1); --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25); } * { margin: 0; padding: 0; box-sizing: border-box; } html, body { height: 100%; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--body-bg); color: var(--text-primary); overflow-x: hidden; } /* ============ SIDEBAR ============ */ .sidebar { position: fixed; top: 0; left: 0; width: var(--sidebar-width); height: 100vh; background: var(--sidebar-bg); z-index: 1000; transition: all 0.3s ease; display: flex; flex-direction: column; overflow-y: auto; } .sidebar-header { padding: 24px 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); } .sidebar-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; } .sidebar-logo-icon { width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 1.2rem; } .sidebar-logo-text { font-weight: 700; font-size: 1.25rem; color: white; } .sidebar-logo-text span { color: var(--secondary); } .sidebar-nav { flex: 1; padding: 20px 12px; } .sidebar-section { margin-bottom: 24px; } .sidebar-section-title { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); padding: 0 12px; margin-bottom: 8px; } .sidebar-link { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 10px; color: var(--sidebar-text); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: all 0.2s ease; margin-bottom: 4px; } .sidebar-link:hover { background: var(--sidebar-hover); color: white; } .sidebar-link.active { background: var(--sidebar-active); color: white; } .sidebar-link i { font-size: 1.2rem; width: 24px; text-align: center; } .sidebar-link .badge { margin-left: auto; padding: 4px 10px; font-size: 0.75rem; font-weight: 600; border-radius: 20px; } .sidebar-link .badge.bg-danger { background: var(--danger) !important; } .sidebar-link .badge.bg-success { background: var(--success) !important; } .sidebar-footer { padding: 20px 24px; border-top: 1px solid rgba(255,255,255,0.1); } .sidebar-user { display: flex; align-items: center; gap: 12px; } .sidebar-user-avatar { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; border: 2px solid var(--primary); } .sidebar-user-info { flex: 1; } .sidebar-user-name { color: white; font-weight: 600; font-size: 0.9rem; } .sidebar-user-role { color: var(--text-muted); font-size: 0.8rem; } .sidebar-user-action { color: var(--text-muted); font-size: 1.1rem; cursor: pointer; transition: color 0.2s; } .sidebar-user-action:hover { color: white; } /* ============ MAIN CONTENT ============ */ .main-wrapper { margin-left: var(--sidebar-width); min-height: 100vh; transition: margin-left 0.3s ease; } /* ============ TOPBAR ============ */ .topbar { position: sticky; top: 0; height: var(--topbar-height); background: var(--card-bg); border-bottom: 1px solid var(--card-border); display: flex; align-items: center; justify-content: space-between; padding: 0 32px; z-index: 100; } .topbar-left { display: flex; align-items: center; gap: 20px; } .topbar-toggle { width: 40px; height: 40px; border: none; background: var(--body-bg); border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; } .topbar-toggle:hover { background: var(--card-border); } .topbar-toggle i { font-size: 1.2rem; color: var(--text-secondary); } .topbar-search { position: relative; width: 350px; } .topbar-search input { width: 100%; height: 42px; padding: 10px 16px 10px 44px; border: 1px solid var(--card-border); border-radius: 10px; font-size: 0.9rem; background: var(--body-bg); transition: all 0.2s; } .topbar-search input:focus { outline: none; border-color: var(--primary); background: white; box-shadow: 0 0 0 3px rgba(26,95,74,0.1); } .topbar-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); } .topbar-right { display: flex; align-items: center; gap: 16px; } .topbar-btn { width: 42px; height: 42px; border: none; background: var(--body-bg); border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; position: relative; } .topbar-btn:hover { background: var(--card-border); } .topbar-btn i { font-size: 1.2rem; color: var(--text-secondary); } .topbar-btn .badge { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; padding: 0; font-size: 0.7rem; display: flex; align-items: center; justify-content: center; } .topbar-lang { display: flex; gap: 4px; background: var(--body-bg); border-radius: 10px; padding: 4px; } .topbar-lang button { padding: 8px 14px; border: none; background: transparent; border-radius: 8px; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.2s; color: var(--text-secondary); } .topbar-lang button.active { background: white; color: var(--primary); box-shadow: var(--shadow-sm); } .topbar-profile { display: flex; align-items: center; gap: 12px; padding: 6px 12px 6px 6px; background: var(--body-bg); border-radius: 12px; cursor: pointer; transition: all 0.2s; } .topbar-profile:hover { background: var(--card-border); } .topbar-profile img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; } .topbar-profile-info { display: flex; flex-direction: column; } .topbar-profile-name { font-weight: 600; font-size: 0.85rem; color: var(--text-primary); } .topbar-profile-role { font-size: 0.75rem; color: var(--text-muted); } /* ============ PAGE CONTENT ============ */ .page-content { padding: 32px; } .page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; } .page-title { font-size: 1.75rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; } .page-subtitle { font-size: 0.9rem; color: var(--text-secondary); } /* ============ STATS CARDS ============ */ .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 32px; } .stat-card { background: var(--card-bg); border-radius: 16px; padding: 24px; border: 1px solid var(--card-border); transition: all 0.3s ease; } .stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); } .stat-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; } .stat-card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; } .stat-card-icon.green { background: rgba(16,185,129,0.1); color: var(--success); } .stat-card-icon.blue { background: rgba(59,130,246,0.1); color: var(--info); } .stat-card-icon.orange { background: rgba(245,158,11,0.1); color: var(--warning); } .stat-card-icon.red { background: rgba(239,68,68,0.1); color: var(--danger); } .stat-card-trend { display: flex; align-items: center; gap: 4px; font-size: 0.85rem; font-weight: 600; padding: 4px 10px; border-radius: 20px; } .stat-card-trend.up { background: rgba(16,185,129,0.1); color: var(--success); } .stat-card-trend.down { background: rgba(239,68,68,0.1); color: var(--danger); } .stat-card-value { font-size: 2rem; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; line-height: 1; } .stat-card-label { font-size: 0.9rem; color: var(--text-secondary); } /* ============ CHARTS ============ */ .charts-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-bottom: 32px; } .chart-card { background: var(--card-bg); border-radius: 16px; padding: 24px; border: 1px solid var(--card-border); } .chart-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; } .chart-card-title { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); } .chart-card-actions { display: flex; gap: 8px; } .chart-period-btn { padding: 8px 16px; border: 1px solid var(--card-border); background: transparent; border-radius: 8px; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.2s; color: var(--text-secondary); } .chart-period-btn.active, .chart-period-btn:hover { background: var(--primary); border-color: var(--primary); color: white; } .chart-container { position: relative; height: 300px; } /* ============ TABLES ============ */ .table-card { background: var(--card-bg); border-radius: 16px; border: 1px solid var(--card-border); overflow: hidden; } .table-card-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--card-border); } .table-card-title { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); } .table-card-action { padding: 8px 16px; background: var(--primary); color: white; border: none; border-radius: 8px; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; } .table-card-action:hover { background: var(--primary-dark); color: white; } .table-wrapper { padding: 0; } table.dataTable { border-collapse: collapse !important; } table.dataTable thead th { background: var(--body-bg); color: var(--text-secondary); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; padding: 14px 16px; border-bottom: 1px solid var(--card-border); } table.dataTable tbody td { padding: 16px; vertical-align: middle; font-size: 0.9rem; } table.dataTable tbody tr:hover { background: var(--body-bg); } .table-property { display: flex; align-items: center; gap: 12px; } .table-property-img { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; } .table-property-info h6 { font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; } .table-property-info span { font-size: 0.8rem; color: var(--text-muted); } .table-badge { display: inline-flex; padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; } .table-badge.new { background: rgba(59,130,246,0.1); color: var(--info); } .table-badge.pending { background: rgba(245,158,11,0.1); color: var(--warning); } .table-badge.completed { background: rgba(16,185,129,0.1); color: var(--success); } .table-badge.cancelled { background: rgba(239,68,68,0.1); color: var(--danger); } .table-user { display: flex; align-items: center; gap: 10px; } .table-user-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; } .table-user-info { font-weight: 500; } .table-user-info small { display: block; color: var(--text-muted); font-weight: 400; } .table-actions { display: flex; gap: 8px; } .table-action-btn { width: 32px; height: 32px; border: none; background: var(--body-bg); border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; color: var(--text-secondary); } .table-action-btn:hover { background: var(--primary); color: white; } .table-action-btn.danger:hover { background: var(--danger); } .table-action-btn.view { color: var(--info); } .table-action-btn.edit { color: var(--warning); } .table-action-btn.delete { color: var(--danger); } /* ============ ROWS GRID ============ */ .rows-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; } .row-card { background: var(--card-bg); border-radius: 16px; padding: 24px; border: 1px solid var(--card-border); } .row-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; } .row-card-title { font-size: 1rem; font-weight: 600; color: var(--text-primary); } /* ============ QUICK ACTIONS ============ */ .quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; } .quick-action { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px; background: var(--body-bg); border-radius: 12px; cursor: pointer; transition: all 0.2s; text-decoration: none; color: var(--text-primary); } .quick-action:hover { background: var(--primary); color: white; transform: translateY(-2px); } .quick-action-icon { width: 48px; height: 48px; background: white; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--primary); transition: all 0.2s; } .quick-action:hover .quick-action-icon { background: rgba(255,255,255,0.2); color: white; } .quick-action span { font-size: 0.85rem; font-weight: 500; } /* ============ PAGE SECTIONS ============ */ .page-section { display: none; } .page-section.active { display: block; } /* ============ PROPERTY CARDS GRID ============ */ .properties-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; } .property-admin-card { background: var(--card-bg); border-radius: 16px; overflow: hidden; border: 1px solid var(--card-border); transition: all 0.3s; } .property-admin-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); } .property-admin-card-image { position: relative; height: 180px; } .property-admin-card-image img { width: 100%; height: 100%; object-fit: cover; } .property-admin-card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; } .property-admin-card-badge { padding: 4px 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; } .property-admin-card-badge.active { background: var(--success); color: white; } .property-admin-card-badge.inactive { background: var(--text-muted); color: white; } .property-admin-card-badge.urban { background: #4a90d9; color: white; } .property-admin-card-badge.agricultural { background: var(--primary); color: white; } .property-admin-card-badge.house { background: #9b59b6; color: white; } .property-admin-card-badge.apartment { background: var(--secondary); color: var(--dark); } .property-admin-card-badge.ruins { background: var(--danger); color: white; } .property-admin-card-actions { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; } .property-admin-card-action { width: 32px; height: 32px; background: white; border: none; border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; color: var(--text-secondary); text-decoration: none; } .property-admin-card-action:hover { background: var(--primary); color: white; } .property-admin-card-action.delete:hover { background: var(--danger); } .property-admin-card-content { padding: 20px; } .property-admin-card-title { font-size: 1rem; font-weight: 600; margin-bottom: 6px; } .property-admin-card-location { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; display: flex; align-items: center; gap: 4px; } .property-admin-card-stats { display: flex; gap: 16px; padding-top: 12px; border-top: 1px solid var(--card-border); } .property-admin-card-stat { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-secondary); } .property-admin-card-stat i { color: var(--primary); } .property-admin-card-price { font-size: 1.25rem; font-weight: 700; color: var(--primary); } /* ============ MODAL ============ */ .modal-content { border: none; border-radius: 16px; overflow: hidden; } .modal-header { padding: 20px 24px; border-bottom: 1px solid var(--card-border); } .modal-title { font-weight: 700; } .modal-body { padding: 24px; } .modal-footer { padding: 16px 24px; border-top: 1px solid var(--card-border); } /* ============ FORM STYLES ============ */ .form-label { font-weight: 500; font-size: 0.9rem; color: var(--text-primary); margin-bottom: 8px; } .form-control, .form-select { padding: 12px 16px; border-radius: 10px; border: 1px solid var(--card-border); font-size: 0.9rem; transition: all 0.2s; } .form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,95,74,0.1); } .form-check-input:checked { background-color: var(--primary); border-color: var(--primary); } .btn-primary { background: var(--primary); border-color: var(--primary); padding: 12px 24px; border-radius: 10px; font-weight: 600; } .btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); } .btn-outline-primary { border-color: var(--primary); color: var(--primary); padding: 12px 24px; border-radius: 10px; font-weight: 600; } .btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); } /* ============ FILE UPLOAD ============ */ .file-upload { border: 2px dashed var(--card-border); border-radius: 12px; padding: 40px; text-align: center; cursor: pointer; transition: all 0.2s; background: var(--body-bg); } .file-upload:hover { border-color: var(--primary); background: rgba(26,95,74,0.05); } .file-upload i { font-size: 3rem; color: var(--text-muted); margin-bottom: 16px; } .file-upload h6 { font-weight: 600; margin-bottom: 8px; } .file-upload p { font-size: 0.85rem; color: var(--text-muted); margin: 0; } /* ============ PAGINATION ============ */ .dataTables_wrapper .pagination { justify-content: center; margin-top: 20px; } .dataTables_wrapper .page-item.active .page-link { background: var(--primary); border-color: var(--primary); } .dataTables_wrapper .page-link { color: var(--text-secondary); padding: 10px 16px; } .dataTables_wrapper .page-link:hover { color: var(--primary); } /* ============ RESPONSIVE ============ */ @media (max-width: 1400px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .charts-grid { grid-template-columns: 1fr; } .rows-grid { grid-template-columns: repeat(2, 1fr); } .properties-grid { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 1200px) { :root { --sidebar-width: 80px; } .sidebar-logo-text, .sidebar-section-title, .sidebar-link span, .sidebar-link .badge, .sidebar-user-info, .sidebar-footer { display: none; } .sidebar-link { justify-content: center; padding: 14px; } .sidebar-link i { margin: 0; } .sidebar-logo { justify-content: center; } .sidebar-user { justify-content: center; } .main-wrapper { margin-left: var(--sidebar-width); } } @media (max-width: 992px) { .topbar-search { display: none; } .topbar-lang { display: none; } .stats-grid { grid-template-columns: 1fr; } .properties-grid { grid-template-columns: 1fr; } .rows-grid { grid-template-columns: 1fr; } } @media (max-width: 768px) { .page-content { padding: 20px; } .page-header { flex-direction: column; align-items: flex-start; gap: 16px; } .quick-actions { grid-template-columns: repeat(2, 1fr); } } /* ============ ANIMATIONS ============ */ @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .animate-fade-in { animation: fadeIn 0.3s ease; } /* Loading Skeleton */ .skeleton { background: linear-gradient(90deg, var(--body-bg) 25%, #e2e8f0 50%, var(--body-bg) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; } @keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }