/* admin.css */
:root { --primary: #0d6efd; --bg: #f4f6f9; --text: #333; }
body { background: var(--bg); font-family: 'Segoe UI', system-ui, sans-serif; font-size: 0.9rem; color: var(--text); padding-bottom: 50px; }

/* LAYOUT */
.main-container { max-width: 100%; padding: 25px; }
.card { border: none; box-shadow: 0 4px 20px rgba(0,0,0,0.04); border-radius: 12px; margin-bottom: 25px; background: white; }
.card-header { background: white; border-bottom: 1px solid #eee; padding: 18px 25px; font-weight: 700; font-size: 1rem; border-radius: 12px 12px 0 0 !important; display: flex; justify-content: space-between; align-items: center; }
.card-body { padding: 25px; }

/* STATUS DOTS */
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.status-online { background-color: #28a745; box-shadow: 0 0 8px rgba(40, 167, 69, 0.4); }
.status-offline { background-color: #dc3545; opacity: 0.5; }
.status-pending { background-color: #ffc107; }

/* NAVIGATION */
.nav-pills { margin-bottom: 1.5rem; background: white; padding: 10px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); display: inline-flex; }
.nav-pills .nav-link { color: #64748b; font-weight: 600; margin-right: 5px; padding: 10px 20px; border-radius: 8px; transition: all 0.2s; }
.nav-pills .nav-link:hover { background: #f1f5f9; color: var(--primary); }
.nav-pills .nav-link.active { background-color: var(--primary); color: white; box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3); }
.nav-pills .nav-link i { margin-right: 8px; }

/* DATA TABLES */
.table-container { background: white; border-radius: 10px; }
table.dataTable thead th { background-color: #f8f9fa !important; border-bottom: 2px solid #eee; color: #64748b; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.5px; padding: 15px !important; }
table.dataTable tbody td { padding: 12px 15px !important; vertical-align: middle; }
.dataTables_wrapper .dataTables_filter input { border-radius: 20px; padding: 6px 15px; border: 1px solid #e2e8f0; outline: none; }
.dataTables_wrapper .dataTables_length select { border-radius: 20px; padding: 5px 30px 5px 10px; border: 1px solid #e2e8f0; }

/* BADGES & ICONS */
.app-icon-preview { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: #f1f5f9; border: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center; color: #cbd5e1; }
.badge-security { font-size: 0.7em; margin-right: 3px; cursor: help; padding: 5px 8px; border-radius: 6px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }
.license-key { font-family: 'Consolas', monospace; font-size: 0.95rem; letter-spacing: 1px; background: #f8fafc; padding: 6px 10px; border-radius: 6px; border: 1px solid #e2e8f0; cursor: pointer; color: #0f172a; transition: all 0.2s; font-weight: 600; }
.license-key:hover { background: #e2e8f0; border-color: #cbd5e1; color: var(--primary); }

/* SECURITY TOGGLES (Modal) */
.security-group { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 15px; margin-bottom: 15px; }
.security-group .form-check { margin-bottom: 10px; padding-left: 2.5em; }
.security-group .form-check-input { width: 2.5em; height: 1.25em; margin-left: -2.5em; cursor: pointer; }
.security-group .form-check-label { font-weight: 600; color: #334155; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.security-group small { display: block; margin-top: 2px; color: #64748b; font-size: 0.8em; }

/* TOASTS */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; }
.toast { background: white; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); border: none; overflow: hidden; }
.toast-header-custom { padding: 10px 15px; font-weight: 700; color: white; }
.toast-body { padding: 15px; color: #333; font-weight: 500; }
.bg-success-gradient { background: linear-gradient(135deg, #10b981, #059669); }
.bg-danger-gradient { background: linear-gradient(135deg, #ef4444, #dc2626); }

/* STATS BAR */
.stats-bar { display: flex; gap: 10px; margin-top: 5px; }
.stat-pill { padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; color: white; display: flex; align-items: center; gap: 5px; }