/* ============================================
   PNT RMMS PORTAL — UNIFIED DESIGN SYSTEM
   Ported from PNT-Website site.css + admin.css
   ============================================ */

/* ============================================
   KEYFRAMES
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes pulse-danger {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3); }
    50% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
}

@keyframes pulse-warning {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
    /* Primary Colors - Deep Blue/Purple Gradient Theme */
    --pnt-primary: #6366f1;
    --pnt-primary-dark: #4f46e5;
    --pnt-primary-light: #818cf8;
    --pnt-secondary: #8b5cf6;
    --pnt-accent: #06b6d4;

    /* Neutral Colors */
    --pnt-dark: #0f172a;
    --pnt-dark-light: #1e293b;
    --pnt-dark-lighter: #334155;
    --pnt-gray: #64748b;
    --pnt-gray-light: #94a3b8;
    --pnt-light: #f1f5f9;
    --pnt-white: #ffffff;

    /* Semantic Colors */
    --pnt-success: #10b981;
    --pnt-warning: #f59e0b;
    --pnt-danger: #ef4444;
    --pnt-info: #3b82f6;

    /* Gradients */
    --pnt-gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --pnt-gradient-dark: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    --pnt-gradient-card: linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    --pnt-gradient-glow: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);

    /* v1.6.2 (F-515): stat-card icon gradients extracted from inline styles
       in customer/admin dashboards. Centralizing here means a brand
       palette change touches one file instead of every dashboard. */
    --pnt-gradient-stat-cyan:    linear-gradient(135deg, #00b4ff, #0077cc);
    --pnt-gradient-stat-blue:    linear-gradient(135deg, #3b82f6, #1d4ed8);
    --pnt-gradient-stat-green:   linear-gradient(135deg, #10b981, #059669);
    --pnt-gradient-stat-purple:  linear-gradient(135deg, #8b5cf6, #6d28d9);
    --pnt-gradient-stat-red:     linear-gradient(135deg, #ef4444, #dc2626);
    --pnt-gradient-stat-amber:   linear-gradient(135deg, #eab308, #ca8a04);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Poppins', var(--font-primary);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Site Edge Padding */
    --site-edge-padding: 1.5rem;
    --site-edge-padding-md: 2rem;
    --site-edge-padding-lg: 3rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

/* ============================================
   BASE STYLES
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--pnt-dark);
    color: var(--pnt-light);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--pnt-gradient-glow);
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--pnt-white);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.display-4 {
    font-size: 3rem;
    font-weight: 700;
    background: var(--pnt-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   LINKS
   ============================================ */
a {
    color: var(--pnt-primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--pnt-accent);
}

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announcement-bar {
    background: var(--pnt-gradient-primary);
    color: var(--pnt-white);
    text-align: center;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
    font-weight: 500;
}

.announcement-bar i {
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   NAVBAR
   ============================================ */
.pnt-navbar {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    padding: var(--space-md) 0;
    transition: all var(--transition-normal);
}

.pnt-navbar.scrolled {
    padding: var(--space-sm) 0;
    box-shadow: var(--shadow-lg);
}

/* Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.brand-logo {
    width: 45px;
    height: 45px;
    background: var(--pnt-gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--pnt-white);
    box-shadow: var(--shadow-glow);
    transition: transform var(--transition-normal);
}

.navbar-brand:hover .brand-logo {
    transform: rotate(-5deg) scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--pnt-white);
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--pnt-gray-light);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Nav Links */
.pnt-navbar .nav-link {
    color: var(--pnt-gray-light) !important;
    font-weight: 500;
    padding: var(--space-sm) var(--space-md) !important;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.pnt-navbar .nav-link:hover {
    color: var(--pnt-white) !important;
    background: rgba(99, 102, 241, 0.1);
}

.pnt-navbar .nav-link.admin-link {
    color: var(--pnt-warning) !important;
}

.pnt-navbar .nav-link.admin-link:hover {
    background: rgba(245, 158, 11, 0.1);
}

/* Auth Buttons in Navbar */
.nav-auth-btn {
    padding: var(--space-sm) var(--space-lg) !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
    transition: all var(--transition-normal) !important;
}

.nav-auth-btn.btn-login {
    background: transparent;
    border: 2px solid var(--pnt-primary);
    color: var(--pnt-primary-light) !important;
}

.nav-auth-btn.btn-login:hover {
    background: var(--pnt-primary);
    color: var(--pnt-white) !important;
}

.nav-auth-btn.btn-register {
    background: var(--pnt-gradient-primary);
    border: none;
    color: var(--pnt-white) !important;
}

.nav-auth-btn.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    flex: 1;
    padding: var(--space-xl) 0;
    padding-left: var(--site-edge-padding);
    padding-right: var(--site-edge-padding);
}

.main-content > .container,
.main-content > .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

/* Full-width sections */
.full-width-section {
    margin-left: calc(-1 * var(--site-edge-padding));
    margin-right: calc(-1 * var(--site-edge-padding));
    padding-left: var(--site-edge-padding);
    padding-right: var(--site-edge-padding);
}

.edge-to-edge {
    margin-left: calc(-1 * var(--site-edge-padding));
    margin-right: calc(-1 * var(--site-edge-padding));
    width: calc(100% + (2 * var(--site-edge-padding)));
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    font-weight: 600;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--pnt-gradient-primary);
    color: var(--pnt-white);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    background: var(--pnt-gradient-primary);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--pnt-white);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--pnt-primary);
    color: var(--pnt-primary-light);
}

.btn-outline-primary:hover {
    background: var(--pnt-primary);
    color: var(--pnt-white);
    border-color: var(--pnt-primary);
}

.btn-outline-secondary {
    background: transparent;
    border: 2px solid var(--pnt-gray);
    color: var(--pnt-gray-light);
}

.btn-outline-secondary:hover {
    background: var(--pnt-dark-lighter);
    border-color: var(--pnt-gray-light);
    color: var(--pnt-white);
}

.btn-outline-danger {
    background: transparent;
    border: 2px solid var(--pnt-danger);
    color: #f87171;
}

.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--pnt-danger);
    color: #f87171;
}

.btn-outline-warning {
    background: transparent;
    border: 2px solid var(--pnt-warning);
    color: #fbbf24;
}

.btn-outline-warning:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--pnt-warning);
    color: #fbbf24;
}

.btn-outline-info {
    background: transparent;
    border: 2px solid var(--pnt-accent);
    color: var(--pnt-accent);
}

.btn-outline-info:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--pnt-accent);
    color: var(--pnt-accent);
}

.btn-outline-success {
    background: transparent;
    border: 2px solid var(--pnt-success);
    color: #34d399;
}

.btn-outline-success:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--pnt-success);
    color: #34d399;
}

.btn-danger {
    background-color: var(--pnt-danger);
    border-color: var(--pnt-danger);
    color: var(--pnt-white);
    transition: all var(--transition-normal);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-warning {
    background-color: var(--pnt-warning);
    border-color: var(--pnt-warning);
    color: #000;
    transition: all var(--transition-normal);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
    background-color: var(--pnt-dark-light);
    border-color: rgba(99, 102, 241, 0.15);
    color: var(--pnt-light);
    transition: all var(--transition-normal);
}

.btn-secondary:hover {
    background-color: var(--pnt-dark-lighter);
    border-color: rgba(99, 102, 241, 0.25);
    color: var(--pnt-white);
}

.btn-lg {
    padding: var(--space-md) var(--space-2xl);
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

/* RMMS Devices Button */
.btn-rmms {
    background: linear-gradient(135deg, #0078D4 0%, #106EBE 100%);
    border: none;
    color: white;
    padding: 0.65rem 1.15rem;
    border-radius: 0.5rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-rmms:hover {
    background: linear-gradient(135deg, #106EBE 0%, #0078D4 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 120, 212, 0.4);
}

.rmms-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 500;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--pnt-gradient-card);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
    overflow: hidden;
    color: var(--pnt-light);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-glow), var(--shadow-xl);
}

.card-body {
    padding: var(--space-xl);
}

.card-title {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--pnt-white);
    margin-bottom: var(--space-md);
}

.card-text {
    color: var(--pnt-gray-light);
}

.card .card-text strong {
    color: var(--pnt-accent);
}

.card-header {
    background: rgba(30, 41, 59, 0.6);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    color: var(--pnt-white);
}

.card-footer {
    background: rgba(15, 23, 42, 0.4);
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.card.shadow-sm {
    box-shadow: var(--shadow-md) !important;
}

/* ============================================
   FORMS
   ============================================ */
.form-control,
.form-select {
    background: var(--pnt-dark-light);
    border: 2px solid var(--pnt-dark-lighter);
    border-radius: var(--radius-md);
    color: var(--pnt-white);
    padding: var(--space-md);
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    background: var(--pnt-dark-light);
    border-color: var(--pnt-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    color: var(--pnt-white);
}

.form-control::placeholder {
    color: var(--pnt-gray);
}

.form-label {
    color: var(--pnt-gray-light);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.form-floating > .form-control {
    height: calc(3.5rem + 4px);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--pnt-primary-light);
}

.form-check-input {
    background-color: var(--pnt-dark-light);
    border-color: var(--pnt-dark-lighter);
    transition: all var(--transition-fast);
}

.form-check-input:checked {
    background-color: var(--pnt-primary);
    border-color: var(--pnt-primary);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
}

.form-check-label {
    color: var(--pnt-gray-light);
}

.form-control:disabled,
.form-select:disabled {
    background-color: rgba(15, 23, 42, 0.5);
    color: var(--pnt-gray);
}

.input-group-text {
    background-color: rgba(99, 102, 241, 0.1);
    border-color: var(--pnt-dark-lighter);
    color: var(--pnt-gray-light);
}

/* ============================================
   VALIDATION (Blazor)
   ============================================ */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--pnt-success);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.15);
}

.invalid {
    outline: 1px solid var(--pnt-danger);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.15);
}

.validation-message {
    color: var(--pnt-danger);
    font-size: 0.85rem;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-left: 4px solid var(--pnt-success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-left: 4px solid var(--pnt-danger);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-left: 4px solid var(--pnt-warning);
}

.alert-info {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-left: 4px solid var(--pnt-info);
}

.alert-secondary {
    background: rgba(30, 41, 59, 0.5);
    border-left: 4px solid var(--pnt-gray);
    color: var(--pnt-gray-light);
}

.alert a, .alert .alert-link {
    color: var(--pnt-primary-light);
}

.alert-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

/* ============================================
   TABLES
   ============================================ */
.table {
    color: var(--pnt-light);
    --bs-table-bg: transparent;
    --bs-table-color: var(--pnt-light);
    border-color: rgba(99, 102, 241, 0.1);
}

.table > :not(caption) > * > * {
    border-bottom-color: rgba(99, 102, 241, 0.08);
    background-color: transparent;
    color: var(--pnt-light);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(99, 102, 241, 0.03);
    color: var(--pnt-light);
}

.table-hover > tbody > tr:hover > * {
    background-color: rgba(99, 102, 241, 0.06);
    color: var(--pnt-light);
    transition: background-color 0.2s ease;
}

.table-dark, .table thead.table-dark {
    --bs-table-bg: rgba(30, 41, 59, 0.6);
    --bs-table-color: var(--pnt-light);
    --bs-table-border-color: rgba(99, 102, 241, 0.1);
}

.table-dark th {
    background-color: rgba(30, 41, 59, 0.6) !important;
    color: var(--pnt-light) !important;
    border-color: rgba(99, 102, 241, 0.1) !important;
    font-weight: 600;
}

.table-danger {
    --bs-table-bg: rgba(239, 68, 68, 0.08);
    --bs-table-color: var(--pnt-light);
}

.table-warning {
    --bs-table-bg: rgba(245, 158, 11, 0.08);
    --bs-table-color: var(--pnt-light);
}

.table-sm td, .table-sm th {
    padding: 0.4rem 0.5rem;
}

/* ============================================
   BADGES
   ============================================ */
.badge.bg-primary {
    background-color: var(--pnt-primary) !important;
}

.badge.bg-success {
    background-color: var(--pnt-success) !important;
    color: #fff !important;
}

.badge.bg-danger {
    background-color: var(--pnt-danger) !important;
}

.badge.bg-warning {
    background-color: var(--pnt-warning) !important;
    color: #000 !important;
}

.badge.bg-info {
    background-color: var(--pnt-info) !important;
    color: #fff !important;
}

.badge.bg-secondary {
    background-color: rgba(99, 102, 241, 0.15) !important;
    color: var(--pnt-gray-light) !important;
}

/* ============================================
   MODALS
   ============================================ */
.modal-content {
    background: var(--pnt-gradient-card);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: var(--pnt-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.modal-footer {
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.modal-header .btn-close {
    filter: invert(1);
}

/* ============================================
   PAGINATION
   ============================================ */
.page-link {
    background: var(--pnt-dark-light);
    border-color: rgba(99, 102, 241, 0.1);
    color: var(--pnt-primary-light);
    transition: all var(--transition-fast);
}

.page-link:hover {
    background-color: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
    color: var(--pnt-white);
}

.page-item.active .page-link {
    background: var(--pnt-gradient-primary);
    border-color: var(--pnt-primary);
    color: #fff;
}

.page-item.disabled .page-link {
    background-color: rgba(15, 23, 42, 0.5);
    border-color: rgba(99, 102, 241, 0.05);
    color: var(--pnt-gray);
}

/* ============================================
   PROGRESS BARS
   ============================================ */
.progress {
    background-color: rgba(30, 41, 59, 0.5);
    border-radius: 4px;
    overflow: hidden;
}

/* ============================================
   CODE
   ============================================ */
code {
    color: var(--pnt-accent);
    background-color: rgba(6, 182, 212, 0.1);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.85em;
}

pre {
    background-color: rgba(15, 23, 42, 0.9) !important;
    border: 1px solid rgba(99, 102, 241, 0.1);
    color: var(--pnt-light);
    border-radius: 6px;
}

/* ============================================
   DROPDOWN / SELECT
   ============================================ */
option {
    background-color: var(--pnt-dark-light);
    color: var(--pnt-light);
}

/* ============================================
   BORDER UTILITIES (dark theme overrides)
   ============================================ */
.border-bottom { border-color: rgba(99, 102, 241, 0.1) !important; }
.border-primary { border-color: var(--pnt-primary) !important; }
.border-success { border-color: var(--pnt-success) !important; }
.border-danger { border-color: var(--pnt-danger) !important; }
.border-warning { border-color: var(--pnt-warning) !important; }
.border-info { border-color: var(--pnt-info) !important; }

/* ============================================
   TEXT COLOR UTILITIES (dark theme overrides)
   ============================================ */
.text-primary { color: var(--pnt-primary-light) !important; }
.text-success { color: var(--pnt-success) !important; }
.text-danger { color: var(--pnt-danger) !important; }
.text-warning { color: var(--pnt-warning) !important; }
.text-info { color: var(--pnt-info) !important; }
.text-muted { color: var(--pnt-gray) !important; }
.text-dark { color: var(--pnt-light) !important; }

/* ============================================
   BACKGROUND UTILITIES
   ============================================ */
.bg-light { background-color: var(--pnt-dark-lighter) !important; color: var(--pnt-light) !important; }
.bg-dark { background-color: var(--pnt-dark) !important; }

/* ============================================
   NAV PILLS / TABS
   ============================================ */
.nav-link {
    color: var(--pnt-gray-light);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--pnt-white);
}

.nav-link.active {
    color: var(--pnt-primary-light);
}

/* ============================================
   ACCORDION
   ============================================ */
.accordion-button {
    background-color: var(--pnt-dark-light);
    color: var(--pnt-light);
    transition: all var(--transition-fast);
}

.accordion-button:not(.collapsed) {
    background-color: rgba(99, 102, 241, 0.08);
    color: var(--pnt-primary-light);
}

.accordion-body {
    background-color: var(--pnt-dark-light);
}

/* ============================================
   HR
   ============================================ */
hr {
    border-color: rgba(99, 102, 241, 0.1);
    opacity: 0.5;
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: var(--pnt-primary);
    color: var(--pnt-white);
}

/* ============================================
   SPINNER
   ============================================ */
.spinner-border {
    color: var(--pnt-primary);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-gradient {
    background: var(--pnt-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow {
    box-shadow: var(--shadow-glow);
}

/* Section Utilities */
.section {
    padding: var(--space-3xl) 0;
}

.section-light {
    background: var(--pnt-dark-light);
}

.section-dark {
    background: var(--pnt-dark);
}

.page-header {
    background: var(--pnt-gradient-card);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-2xl);
    margin-bottom: var(--space-xl);
}

/* ============================================
   MAINTENANCE CARD
   ============================================ */
.maintenance-card {
    background: var(--pnt-gradient-card);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-2xl);
    max-width: 500px;
    margin: 0 auto;
}

.maintenance-icon {
    font-size: 4rem;
    color: var(--pnt-primary);
    animation: spin 10s linear infinite;
}

/* ============================================
   FOOTER
   ============================================ */
.pnt-footer,
.site-footer {
    background: var(--pnt-dark);
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    margin-top: auto;
    padding: var(--space-2xl) 0;
    color: var(--pnt-gray);
}

.footer-main {
    padding: var(--space-3xl) 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-brand .brand-logo {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
}

.footer-description {
    color: var(--pnt-gray);
    font-size: 0.9rem;
    margin-top: var(--space-md);
    max-width: 300px;
}

.footer-heading {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--pnt-white);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--pnt-gray);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--pnt-primary-light);
    transform: translateX(3px);
}

.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--pnt-dark-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pnt-gray-light);
    font-size: 1.1rem;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--pnt-primary);
    color: var(--pnt-white);
    transform: translateY(-3px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: var(--space-lg) 0;
    font-size: 0.875rem;
    color: var(--pnt-gray);
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(16, 185, 129, 0.1);
    color: var(--pnt-success);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
}

/* ============================================
   HERO SECTION (Landing page)
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0f172a 70%, #1e293b 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 15%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 20%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    background: var(--pnt-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section .lead {
    color: var(--pnt-gray-light);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   FEATURE CARDS (Landing page)
   ============================================ */
.feature-card {
    background: var(--pnt-gradient-card);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all var(--transition-normal);
    animation: fadeInUp 0.4s ease;
}

.feature-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--pnt-primary-light);
}

/* ============================================
   STEP NUMBER (Landing page)
   ============================================ */
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--pnt-gradient-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

/* ============================================
   BLAZOR ERROR UI
   ============================================ */
.blazor-error-boundary {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    color: #f87171;
}

#blazor-error-ui {
    background: var(--pnt-danger);
    color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 1.5rem;
    display: none;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 0.3rem;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--pnt-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--pnt-dark-lighter);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--pnt-gray);
}

/* ============================================
   FOCUS STATES (Accessibility)
   ============================================ */
.btn:focus-visible,
.form-control:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid var(--pnt-primary-light);
    outline-offset: 2px;
}


/* ==============================================================
   ADMIN DESIGN SYSTEM (from admin.css)
   ============================================================== */

/* ============================================
   ADMIN LAYOUT (Sidebar + Content)
   ============================================ */
.admin-wrapper {
    display: flex;
    min-height: calc(100vh - 200px);
    gap: 0;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.85) 100%);
    border-right: 1px solid rgba(99, 102, 241, 0.1);
    padding: 1.5rem 0;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--pnt-dark-lighter) transparent;
    z-index: 10;
}

.admin-sidebar::-webkit-scrollbar {
    width: 4px;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: var(--pnt-dark-lighter);
    border-radius: 4px;
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    margin-bottom: 1rem;
    text-decoration: none;
    color: inherit;
}

.admin-sidebar-brand:hover {
    color: inherit;
}

.admin-sidebar-brand-icon {
    width: 36px;
    height: 36px;
    background: var(--pnt-gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
}

.admin-sidebar-brand-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--pnt-white);
}

.admin-sidebar-brand-text small {
    display: block;
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--pnt-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sidebar Navigation Groups */
.sidebar-nav-group {
    margin-bottom: 0.5rem;
}

.sidebar-nav-label {
    padding: 0.5rem 1.25rem 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--pnt-gray);
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 1.25rem;
    color: var(--pnt-gray-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-nav-item:hover {
    color: var(--pnt-white);
    background: rgba(99, 102, 241, 0.08);
    border-left-color: rgba(99, 102, 241, 0.3);
}

.sidebar-nav-item.active {
    color: var(--pnt-white);
    background: rgba(99, 102, 241, 0.12);
    border-left-color: var(--pnt-primary);
}

.sidebar-nav-item.active .sidebar-nav-icon {
    color: var(--pnt-primary-light);
}

.sidebar-nav-icon {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
    opacity: 0.7;
}

.sidebar-nav-item:hover .sidebar-nav-icon,
.sidebar-nav-item.active .sidebar-nav-icon {
    opacity: 1;
}

.sidebar-nav-badge {
    margin-left: auto;
    background: rgba(99, 102, 241, 0.2);
    color: var(--pnt-primary-light);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
}

.sidebar-nav-badge.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.sidebar-nav-badge.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.sidebar-nav-badge.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

/* Admin Content Area */
.admin-content {
    flex: 1;
    min-width: 0;
    padding: 1.5rem 2rem;
    background: #0c1220;
}

/* Mobile Sidebar Toggle */
.admin-sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1050;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--pnt-gradient-primary);
    border: none;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Sidebar Overlay for Mobile */
.admin-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1039;
}

/* ============================================
   ADMIN PAGE HEADER
   ============================================ */
.admin-header {
    background: var(--pnt-gradient-card);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.admin-icon {
    width: 56px;
    height: 56px;
    background: var(--pnt-gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.admin-icon-main {
    width: 56px;
    height: 56px;
    background: var(--pnt-gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.admin-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.15rem;
}

.admin-header p {
    color: var(--pnt-gray-light);
    font-size: 0.875rem;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ============================================
   STAT CARDS (Admin)
   ============================================ */
.stat-card {
    background: var(--pnt-gradient-card);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 0.75rem;
    padding: 1.15rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateY(-1px);
}

.stat-card.stat-warning {
    border-color: rgba(239, 68, 68, 0.35);
}

.stat-card-link {
    cursor: pointer;
}

.stat-card-link:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: white;
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--pnt-white);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--pnt-gray-light);
    font-weight: 500;
}

/* ============================================
   ICON COLOR VARIANTS (Gradient backgrounds)
   ============================================ */
.icon-purple { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); }
.icon-blue { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.icon-green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.icon-orange { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.icon-cyan { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); }
.icon-pink { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }
.icon-yellow { background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%); }
.icon-red { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.icon-teal { background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); }
.icon-indigo { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); }

/* Subtle / muted icon variants for stat-icon */
.stat-icon.icon-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.stat-icon.icon-red { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.stat-icon.icon-green { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.stat-icon.icon-purple { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.stat-icon.icon-orange { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.stat-icon.icon-cyan { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.stat-icon.icon-teal { background: rgba(20, 184, 166, 0.15); color: #2dd4bf; }
.stat-icon.icon-pink { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
.stat-icon.icon-indigo { background: rgba(99, 102, 241, 0.15); color: #818cf8; }

/* Solid icon variants for section-icon / admin-card-icon */
.section-icon, .admin-card-icon {
    color: white;
}

.bg-purple { background: linear-gradient(135deg, #6366f1, #8b5cf6) !important; }

/* ============================================
   ADMIN SECTIONS & CARDS
   ============================================ */
.admin-section {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.section-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
}

.section-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--pnt-white);
}

.section-header p {
    font-size: 0.8rem;
    color: var(--pnt-gray);
    margin-bottom: 0;
}

/* Admin navigation cards */
.admin-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    background: var(--pnt-gradient-card);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.25s ease;
    height: 100%;
}

.admin-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.admin-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.admin-card-content {
    flex: 1;
    min-width: 0;
}

.admin-card-content h5 {
    color: var(--pnt-white);
    margin-bottom: 0.15rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.admin-card-content p {
    color: var(--pnt-gray);
    font-size: 0.8rem;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-card-arrow {
    color: var(--pnt-gray);
    font-size: 1rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.admin-card:hover .admin-card-arrow {
    transform: translateX(4px);
    color: var(--pnt-primary-light);
}

.admin-card-dev {
    border-color: rgba(239, 68, 68, 0.2);
}

.admin-card-dev:hover {
    border-color: rgba(239, 68, 68, 0.4);
}

.dev-badge {
    display: inline-block;
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 0.1rem 0.4rem;
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 700;
    margin-top: 0.2rem;
}

/* ============================================
   QUICK STATS (Pill badges)
   ============================================ */
.quick-stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    color: var(--pnt-gray-light);
    font-size: 0.85rem;
}

.stat-pill i {
    color: var(--pnt-primary-light);
}

.stat-pill strong {
    color: white;
    margin-right: 0.25rem;
}

.stat-pill-warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
}

.stat-pill-warning i { color: #fbbf24; }

.stat-pill-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.stat-pill-success i { color: #34d399; }

.stat-pill-danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    animation: pulse-danger 2s infinite;
}

.stat-pill-danger i { color: #f87171; }

/* ============================================
   MAINTENANCE TOGGLE
   ============================================ */
.maintenance-toggle {
    flex-shrink: 0;
}

.maintenance-toggle .btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    animation: pulse-warning 2s infinite;
}

/* ============================================
   ADMIN PANELS (Forms, detail cards)
   ============================================ */
.admin-panel {
    background: var(--pnt-gradient-card);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 0.75rem;
    overflow: hidden;
}

.panel-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    background: rgba(99, 102, 241, 0.05);
}

.panel-header h5 {
    margin: 0;
    font-weight: 600;
    color: var(--pnt-white);
    font-size: 0.95rem;
}

.panel-body {
    padding: 1.25rem;
}

.bg-dark-card {
    background: var(--pnt-gradient-card) !important;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.bg-darker {
    background: rgba(0, 0, 0, 0.3) !important;
}

/* ============================================
   ADMIN FILTER BAR
   ============================================ */
.filter-bar {
    background: var(--pnt-gradient-card);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
}

.filter-bar .form-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

/* ============================================
   ADMIN TABLES
   ============================================ */
.admin-table {
    font-size: 0.875rem;
}

.admin-table thead th,
.table-dark th {
    color: var(--pnt-gray-light);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-color: rgba(99, 102, 241, 0.1);
    white-space: nowrap;
}

.admin-table tbody td,
.table-dark td {
    color: #e2e8f0;
    border-color: rgba(99, 102, 241, 0.08);
    vertical-align: middle;
}

.row-error {
    background: rgba(239, 68, 68, 0.05) !important;
}

/* ============================================
   ADMIN FORMS (Dark overrides)
   ============================================ */
.admin-content .form-control,
.admin-content .form-select,
.admin-panel .form-control,
.admin-panel .form-select {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(99, 102, 241, 0.25);
    color: #e2e8f0;
}

.admin-content .form-control:focus,
.admin-content .form-select:focus,
.admin-panel .form-control:focus,
.admin-panel .form-select:focus {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(99, 102, 241, 0.5);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.2);
}

.admin-content .input-group-text {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.25);
    color: #e2e8f0;
}

/* ============================================
   BADGE VARIANTS (Method, Status)
   ============================================ */
.method-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
}

.method-get { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.method-post { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.method-put { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.method-delete { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
}

.badge-success { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.badge-error { background: rgba(239, 68, 68, 0.15); color: #f87171; }

/* ============================================
   LOG VIEWER
   ============================================ */
.log-table {
    font-size: 0.875rem;
}

.log-table thead th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom-width: 2px;
}

.log-pre {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    max-height: 300px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.log-error {
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ============================================
   SUPPORT MANAGEMENT
   ============================================ */
.ticket-number {
    font-family: monospace;
    font-size: 0.85rem;
}

.ticket-message {
    padding: 1rem;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid rgba(99, 102, 241, 0.5);
}

.ticket-message.admin-message {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.ticket-message.internal-message {
    border-left-color: #6b7280;
    background: rgba(107, 114, 128, 0.1);
    border-style: dashed;
}

/* ============================================
   DATABASE HEALTH
   ============================================ */
.health-banner {
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.health-banner.health-good {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.health-banner.health-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.health-banner.health-critical {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.health-icon {
    font-size: 2rem;
}

/* ============================================
   STATUS CARDS
   ============================================ */
.status-card {
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid;
    background: var(--pnt-gradient-card);
    transition: all 0.2s ease;
}

.status-card.status-good {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.status-card.status-warn {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.status-card.status-bad {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.status-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-good .status-icon { background: rgba(16, 185, 129, 0.15); color: var(--pnt-success); }
.status-warn .status-icon { background: rgba(245, 158, 11, 0.15); color: var(--pnt-warning); }
.status-bad .status-icon { background: rgba(239, 68, 68, 0.15); color: var(--pnt-danger); }

.status-label {
    font-size: 0.7rem;
    color: var(--pnt-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pnt-white);
}

.status-banner {
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-banner.status-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-banner.status-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

/* ============================================
   SETTINGS CARDS
   ============================================ */
.settings-card {
    background: var(--pnt-gradient-card);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-normal);
}

/* Equal height only inside grid columns */
.col-lg-6 > .settings-card,
.col-md-6 > .settings-card {
    height: 100%;
}

.settings-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-glow);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: rgba(30, 41, 59, 0.5);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.settings-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.settings-body {
    padding: 1.5rem;
}

.settings-footer {
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.current-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.badge-good {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warn {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-bad {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.debug-active-card {
    border-color: rgba(245, 158, 11, 0.4);
}

.security-list {
    padding-left: 1.25rem;
    color: var(--pnt-gray-light);
    font-size: 0.9rem;
}

.security-list li {
    margin-bottom: 0.5rem;
}

/* ============================================
   LOGIN CARD
   ============================================ */
.login-card {
    background: var(--pnt-gradient-card);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   UPLOAD OVERLAY
   ============================================ */
.upload-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-overlay-card {
    background: var(--pnt-gradient-card);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    width: 100%;
    max-width: 480px;
    text-align: center;
}

.upload-overlay-card h5 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.upload-progress-bar-track {
    width: 100%;
    height: 12px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.upload-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--pnt-gradient-primary);
    border-radius: 6px;
    transition: width 0.3s ease;
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.language-switcher {
    font-size: 0.875rem;
}

.language-switcher a {
    color: var(--pnt-gray-light);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.language-switcher a:hover {
    color: var(--pnt-white);
    background: rgba(255, 255, 255, 0.1);
}

.language-switcher a.active {
    color: var(--pnt-primary-light);
    font-weight: 500;
}


/* ==============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================== */

/* Responsive edge padding */
@media (min-width: 768px) {
    .main-content {
        padding-left: var(--site-edge-padding-md);
        padding-right: var(--site-edge-padding-md);
    }

    .full-width-section {
        margin-left: calc(-1 * var(--site-edge-padding-md));
        margin-right: calc(-1 * var(--site-edge-padding-md));
        padding-left: var(--site-edge-padding-md);
        padding-right: var(--site-edge-padding-md);
    }

    .edge-to-edge {
        margin-left: calc(-1 * var(--site-edge-padding-md));
        margin-right: calc(-1 * var(--site-edge-padding-md));
        width: calc(100% + (2 * var(--site-edge-padding-md)));
    }
}

@media (min-width: 1200px) {
    .main-content {
        padding-left: var(--site-edge-padding-lg);
        padding-right: var(--site-edge-padding-lg);
    }

    .full-width-section {
        margin-left: calc(-1 * var(--site-edge-padding-lg));
        margin-right: calc(-1 * var(--site-edge-padding-lg));
        padding-left: var(--site-edge-padding-lg);
        padding-right: var(--site-edge-padding-lg);
    }

    .edge-to-edge {
        margin-left: calc(-1 * var(--site-edge-padding-lg));
        margin-right: calc(-1 * var(--site-edge-padding-lg));
        width: calc(100% + (2 * var(--site-edge-padding-lg)));
    }
}

/* Navbar responsive */
@media (max-width: 991.98px) {
    .pnt-navbar .navbar-collapse {
        background: var(--pnt-dark-light);
        padding: var(--space-lg);
        border-radius: var(--radius-lg);
        margin-top: var(--space-md);
    }

    .pnt-navbar .nav-link {
        padding: var(--space-md) !important;
    }

    .display-4 {
        font-size: 2rem;
    }
}

/* Admin layout responsive */
@media (max-width: 991.98px) {
    .admin-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        z-index: 1040;
        transition: left 0.3s ease;
        padding-top: 1rem;
    }

    .admin-sidebar.show {
        left: 0;
    }

    .admin-sidebar-overlay.show {
        display: block;
    }

    .admin-sidebar-toggle {
        display: flex;
    }

    .admin-content {
        padding: 1rem;
    }

    .admin-header {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    .admin-header-content {
        flex-direction: column;
        text-align: center;
    }

    .admin-header-actions {
        justify-content: center;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .quick-stats {
        justify-content: center;
    }

    /* Admin section cards stack */
    .admin-section .row {
        flex-direction: column;
    }

    .admin-section .section-header {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767.98px) {
    .admin-content {
        padding: 0.75rem;
    }

    .stat-card {
        padding: 0.85rem 1rem;
    }

    .stat-value {
        font-size: 1.15rem;
    }

    .admin-header {
        padding: 1rem;
    }

    .admin-icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
        border-radius: 10px;
    }

    .admin-header h1 {
        font-size: 1.25rem;
    }

    /* Full width cards on mobile */
    .col-md-3, .col-md-4, .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Stack header elements vertically */
    .d-flex.justify-content-between {
        flex-direction: column !important;
        gap: 1rem;
    }

    .btn-group {
        flex-wrap: wrap;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-card {
        padding: 0.75rem;
    }

    .admin-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .d-none-mobile {
        display: none !important;
    }

    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .card-body {
        padding: 1rem;
    }

    canvas {
        max-height: 250px;
    }

    /* Footer mobile */
    .footer-main {
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-description {
        margin: var(--space-md) auto;
    }

    .social-links {
        justify-content: center;
    }

    .footer-links a:hover {
        transform: none;
    }

    .footer-bottom .row > div {
        padding: 0.5rem 0;
    }

    .language-switcher {
        margin: 0.5rem 0;
    }

    /* Table column priority */
    .table th:nth-child(n+4),
    .table td:nth-child(n+4) {
        display: none;
    }

    .table th:last-child,
    .table td:last-child {
        display: table-cell;
    }

    .table .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    h1.h3, .h1, .h2, .h3 {
        font-size: 1.25rem;
    }

    .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .dropdown-menu {
        width: 100%;
        max-width: 280px;
    }

    .modal-dialog {
        margin: 0.5rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.25em 0.5em;
    }
}

/* Touch-friendly targets */
@media (hover: none) and (pointer: coarse) {
    .btn, .nav-link, .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .dropdown-item {
        padding: 0.75rem 1rem;
    }
}

/* Print styles */
@media print {
    .navbar, .footer, .btn, .dropdown, .admin-sidebar {
        display: none !important;
    }

    .main-content, .admin-content {
        padding: 0 !important;
    }

    .card {
        break-inside: avoid;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }
}
