/* Date: 2025-02-07 */
/* File: admin/styles.css */
/* Purpose: Admin dashboard styling */

:root {
  --primary: #4a90e2;
  --primary-dark: #357abd;
  --dark: #2c3e50;
  --light: #f8f9fa;
  --border: #dee2e6;
  --shadow: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 14px; line-height: 1.6; color: #333; background: var(--light); }

.sidebar { position: fixed; top: 0; left: 0; height: 100vh; width: 250px; background: var(--dark); z-index: 1000; transition: transform 0.3s; }
.sidebar .logo { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); color: white; font-size: 1.5rem; font-weight: bold; }
.sidebar .nav-link { color: rgba(255,255,255,0.8); padding: 12px 20px; display: flex; align-items: center; gap: 10px; transition: all 0.2s; text-decoration: none; }
.sidebar .nav-link:hover, .sidebar .nav-link.active { background: rgba(255,255,255,0.1); color: white; }
.main-content { margin-left: 250px; min-height: 100vh; background: var(--light); }
.top-bar { background: white; padding: 15px 30px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }

.stats-card { background: white; border-radius: 8px; padding: 20px; box-shadow: var(--shadow); transition: transform 0.2s; }
.stats-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stats-number { font-size: 2rem; font-weight: bold; color: var(--primary); }

.data-table { background: white; border-radius: 8px; box-shadow: var(--shadow); }
.data-table th { background: var(--light); font-weight: 600; text-align: left; padding: 12px; border-bottom: 2px solid var(--border); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: #6c757d; }
.data-table td { padding: 12px; border-bottom: 1px solid var(--border); }
.data-table tr:hover { background: rgba(0,0,0,0.02); }

.badge-status { display: inline-block; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.status-active { background: #d4edda; color: #155724; }
.status-pending { background: #fff3cd; color: #856404; }
.status-locked { background: #f8d7da; color: #721c24; }
.status-suspended { background: #e2e3e5; color: #383d41; }
.status-trial { background: #cce5ff; color: #004085; }

.loading { opacity: 0.6; pointer-events: none; }
.mobile-toggle { display: none; position: fixed; top: 15px; left: 15px; z-index: 1001; background: var(--primary); color: white; border: none; padding: 10px; border-radius: 4px; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 0.2rem rgba(74,144,226,0.25); }

/* Toast notifications */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; }
.toast { min-width: 280px; }

/* Key reveal */
.key-reveal { font-family: monospace; font-size: 13px; background: #f4f4f4; padding: 8px 12px; border-radius: 4px; word-break: break-all; }

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .mobile-toggle { display: block; }
}
@media print {
  .sidebar, .top-bar, .btn, .pagination { display: none !important; }
  .main-content { margin: 0 !important; }
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 4px; }
