* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f7fa; color: #333; } .admin-container { display: flex; min-height: 100vh; } .sidebar { width: 240px; background: #1a1a2e; color: #fff; padding: 20px 0; position: fixed; height: 100vh; overflow-y: auto; } .logo { font-size: 20px; font-weight: 700; padding: 0 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 20px; } .sidebar nav a { display: block; padding: 12px 20px; color: rgba(255,255,255,0.7); text-decoration: none; transition: all 0.3s; } .sidebar nav a:hover, .sidebar nav a.active { background: rgba(34, 197, 94, 0.2); color: #22c55e; } .content { flex: 1; margin-left: 240px; padding: 30px; } h1 { font-size: 28px; margin-bottom: 30px; color: #1a1a2e; } h2 { font-size: 20px; margin: 30px 0 15px; color: #333; } .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; } .stat-card { background: #fff; padding: 24px; border-radius: 12px; display: flex; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.05); } .stat-icon { font-size: 40px; margin-right: 20px; } .stat-value { font-size: 32px; font-weight: 700; color: #22c55e; } .stat-label { color: #666; font-size: 14px; } .table { width: 100%; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); border-collapse: collapse; } .table th, .table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid #eee; } .table th { background: #f8f9fa; font-weight: 600; color: #555; } .table tr:last-child td { border-bottom: none; } .badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; } .badge-success { background: #dcfce7; color: #16a34a; } .badge-draft { background: #fef3c7; color: #d97706; } .badge-pending { background: #fef3c7; color: #d97706; } .badge-approved { background: #dcfce7; color: #16a34a; } .badge-rejected { background: #fee2e2; color: #dc2626; } .btn { display: inline-block; padding: 8px 16px; background: #22c55e; color: #fff; text-decoration: none; border-radius: 6px; font-size: 14px; transition: background 0.3s; border: none; cursor: pointer; } .btn:hover { background: #16a34a; } .btn-sm { padding: 6px 12px; font-size: 12px; } .btn-primary { background: #22c55e; } .btn-danger { background: #dc2626; } .btn-danger:hover { background: #b91c1c; } .btn-link { background: transparent; color: #22c55e; } .btn-link:hover { background: #f0fdf4; } .actions { margin-top: 20px; } .form-group { margin-bottom: 20px; } label { display: block; margin-bottom: 8px; font-weight: 500; color: #333; } input[type="text"], input[type="url"], input[type="number"], input[type="password"], textarea, select { width: 100%; padding: 12px 16px; border: 2px solid #e5e5e5; border-radius: 8px; font-size: 14px; transition: border-color 0.3s; font-family: inherit; } input:focus, textarea:focus, select:focus { outline: none; border-color: #22c55e; } textarea { min-height: 120px; resize: vertical; } .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; } .form-actions { display: flex; gap: 10px; margin-top: 20px; } .back-link { margin-bottom: 20px; } .back-link a { color: #666; text-decoration: none; font-size: 14px; } .back-link a:hover { color: #22c55e; } .success { background: #dcfce7; color: #16a34a; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; } .error { background: #fee2e2; color: #dc2626; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; } .search-box { margin-bottom: 20px; } .search-box input { max-width: 300px; } .status-toggle { display: flex; gap: 10px; margin-bottom: 20px; } .status-toggle label { display: flex; align-items: center; gap: 6px; cursor: pointer; } .switch { position: relative; width: 48px; height: 26px; } .switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #ccc; transition: 0.3s; border-radius: 26px; } .slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background: white; transition: 0.3s; border-radius: 50%; } input:checked + .slider { background: #22c55e; } input:checked + .slider:before { transform: translateX(22px); } @media (max-width: 768px) { .sidebar { width: 60px; } .logo { font-size: 14px; padding: 0 10px 10px; } .sidebar nav a { padding: 12px 10px; text-align: center; } .sidebar nav a span { display: none; } .content { margin-left: 60px; } }