/* CertiFried MultiTool - Unified Dark Theme
   Inspired by canna-friend.com design
   Version: 3.0
*/

/* ============================================
   CSS VARIABLES - Design System
   ============================================ */

:root {
    /* Background Colors */
    --bg-primary: #0b0f11;
    --bg-secondary: #0f1316;
    --bg-tertiary: #131920;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-elevated: rgba(255, 255, 255, 0.08);

    /* Border Colors */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.15);
    --border-accent: rgba(167, 139, 250, 0.3);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-disabled: rgba(255, 255, 255, 0.3);

    /* Accent Colors - Purple/Blue Theme */
    --accent-purple: #a78bfa;
    --accent-purple-dark: #7c3aed;
    --accent-purple-light: #c4b5fd;
    --accent-blue: #60a5fa;
    --accent-blue-dark: #3b82f6;
    --accent-cyan: #22d3ee;
    --accent-green: #34d399;
    --accent-green-dark: #10b981;
    --accent-yellow: #fbbf24;
    --accent-orange: #fb923c;
    --accent-red: #f87171;
    --accent-red-dark: #ef4444;
    --accent-pink: #f472b6;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --gradient-card: linear-gradient(135deg, rgba(167, 139, 250, 0.1) 0%, rgba(96, 165, 250, 0.1) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow-purple: 0 0 30px rgba(167, 139, 250, 0.3);
    --shadow-glow-blue: 0 0 30px rgba(96, 165, 250, 0.3);

    /* Card Background (for compatibility) */
    --card-bg: var(--bg-card);
    --card-border: var(--border-color);

    /* Legacy gradients for compatibility */
    --gradient-purple: var(--gradient-primary);
}

/* ============================================
   BASE STYLES
   ============================================ */

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Force dark mode on all elements */
body, html {
    background-color: var(--bg-primary) !important;
    color-scheme: dark;
}

/* Bootstrap text overrides */
.text-muted {
    color: var(--text-muted) !important;
}

.lead {
    color: var(--text-secondary);
}

small, .small {
    color: var(--text-secondary);
}

/* ============================================
   BACKGROUND EFFECTS (Floating Orbs)
   ============================================ */

.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: clamp(400px, 50vw, 700px);
    height: clamp(400px, 50vw, 700px);
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    top: -20%;
    right: -15%;
}

.orb-2 {
    width: clamp(350px, 45vw, 600px);
    height: clamp(350px, 45vw, 600px);
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    bottom: -15%;
    left: -15%;
    animation-delay: -10s;
}

.orb-3 {
    width: clamp(250px, 30vw, 450px);
    height: clamp(250px, 30vw, 450px);
    background: linear-gradient(135deg, #10b981, #34d399);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
    opacity: 0.2;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 15, 17, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-toggler {
    border-color: var(--border-color);
    background: var(--bg-card);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-link.active {
    color: var(--accent-purple);
    background: rgba(167, 139, 250, 0.15);
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-accent);
}

.card-header {
    background: var(--gradient-card);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
    padding: 1.25rem;
    border-radius: 16px 16px 0 0 !important;
}

.card-body {
    padding: 1.5rem;
    color: var(--text-secondary);
}

.card-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-footer {
    background: transparent;
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

/* Content Cards */
.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.content-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-accent);
}

/* Stat Cards */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
}

/* Legacy Manage Section Styling */
.manage-section {
    padding: 1.5rem;
    color: var(--text-primary);
}

.manage-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.manage-section .section-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.manage-section .section-header h1 i {
    color: var(--accent-purple);
}

.manage-section .section-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.25rem 0 0 0;
}

.manage-section .card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.manage-section .card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem 0;
}

.manage-section .card h3 i {
    color: var(--accent-purple);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    border-radius: 10px;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(167, 139, 250, 0.5);
    background: linear-gradient(135deg, #8b5cf6 0%, #c4b5fd 100%);
    color: white;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    color: var(--text-primary);
    border-color: var(--border-color-hover);
}

.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 211, 153, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 211, 153, 0.45);
    color: white;
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
    box-shadow: 0 4px 15px rgba(248, 113, 113, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(248, 113, 113, 0.45);
    color: white;
}

.btn-warning {
    background: var(--gradient-warning);
    color: white;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.45);
    color: white;
}

.btn-info {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.45);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--accent-purple);
}

.btn-outline-primary {
    background: transparent;
    color: var(--accent-purple);
    border: 1px solid var(--accent-purple);
}

.btn-outline-primary:hover {
    background: rgba(167, 139, 250, 0.15);
    color: var(--accent-purple-light);
}

/* ============================================
   FORM CONTROLS - Dark Theme
   ============================================ */

.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="search"],
textarea,
select {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px;
    color: var(--text-primary) !important;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
    background: rgba(0, 0, 0, 0.5) !important;
    border-color: var(--accent-purple) !important;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2) !important;
    color: var(--text-primary) !important;
    outline: none !important;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--text-muted) !important;
}

.form-control:disabled,
.form-select:disabled,
input:disabled,
textarea:disabled {
    background: rgba(255, 255, 255, 0.02) !important;
    color: var(--text-disabled) !important;
    cursor: not-allowed;
}

/* Select dropdown options */
.form-select option,
select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-text {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Form Check (Checkboxes & Radio) */
.form-check-input {
    background-color: rgba(0, 0, 0, 0.4);
    border-color: var(--border-color);
}

.form-check-input:checked {
    background-color: var(--accent-purple);
    border-color: var(--accent-purple);
}

.form-check-input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

.form-check-label {
    color: var(--text-secondary);
}

/* Input Groups */
.input-group-text {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* ============================================
   TABLES
   ============================================ */

.table {
    color: var(--text-primary);
    --bs-table-bg: transparent;
}

.table thead th {
    background: var(--bg-card);
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    padding: 1rem;
}

.table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: var(--bg-card-hover);
}

.table td, .table th {
    vertical-align: middle;
    padding: 1rem;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.table-dark {
    --bs-table-bg: var(--bg-card);
    --bs-table-color: var(--text-primary);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* ============================================
   MODALS
   ============================================ */

body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
}

.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
    background: rgba(0, 0, 0, 0.8);
}

.modal-dialog {
    z-index: 1056 !important;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

.modal-title {
    color: var(--text-primary);
    font-weight: 600;
}

.modal-body {
    color: var(--text-secondary);
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    gap: 0.5rem;
}

/* Modal Form Controls */
.modal .form-control,
.modal .form-select,
.modal textarea,
.modal input,
.modal select {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid var(--border-color);
    color: var(--text-primary) !important;
}

.modal .form-control:focus,
.modal .form-select:focus,
.modal input:focus,
.modal textarea:focus {
    background: rgba(0, 0, 0, 0.6) !important;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

.btn-close {
    filter: invert(1);
    opacity: 0.7;
}

.btn-close:hover {
    opacity: 1;
}

/* ============================================
   DROPDOWNS
   ============================================ */

.dropdown-menu {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
}

.dropdown-item {
    color: var(--text-secondary);
    transition: all 0.2s ease;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.dropdown-item.active {
    background: var(--gradient-primary);
    color: white;
}

.dropdown-divider {
    border-color: var(--border-color);
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-primary, .bg-primary {
    background: var(--gradient-primary) !important;
    color: white;
}

.badge-success, .bg-success {
    background: var(--gradient-success) !important;
    color: white;
}

.badge-danger, .bg-danger {
    background: var(--gradient-danger) !important;
    color: white;
}

.badge-warning, .bg-warning {
    background: var(--gradient-warning) !important;
    color: white;
}

.badge-info, .bg-info {
    background: var(--gradient-secondary) !important;
    color: white;
}

.badge-secondary, .bg-secondary {
    background: var(--bg-card) !important;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 1rem 1.25rem;
}

.alert-success {
    border-left: 4px solid var(--accent-green);
    background: rgba(52, 211, 153, 0.1);
}

.alert-danger {
    border-left: 4px solid var(--accent-red);
    background: rgba(248, 113, 113, 0.1);
}

.alert-warning {
    border-left: 4px solid var(--accent-yellow);
    background: rgba(251, 191, 36, 0.1);
}

.alert-info {
    border-left: 4px solid var(--accent-blue);
    background: rgba(96, 165, 250, 0.1);
}

/* ============================================
   LIST GROUPS
   ============================================ */

.list-group {
    border-radius: 12px;
    overflow: hidden;
}

.list-group-item {
    background: var(--bg-card);
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background: var(--bg-card-hover);
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item.active {
    background: var(--gradient-primary);
    border-color: transparent;
}

/* ============================================
   PROGRESS BARS
   ============================================ */

.progress {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
}

.progress-bar {
    background: var(--gradient-primary);
    border-radius: 10px;
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    gap: 0.25rem;
}

.page-link {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 0.5rem 0.875rem;
    transition: all 0.2s ease;
}

.page-link:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-color-hover);
}

.page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.page-item.disabled .page-link {
    background: transparent;
    color: var(--text-disabled);
    border-color: var(--border-color);
}

/* ============================================
   TOOLTIPS
   ============================================ */

.tooltip .tooltip-inner {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
    box-shadow: var(--shadow-lg);
}

.tooltip .tooltip-arrow::before {
    border-top-color: var(--bg-secondary);
}

/* ============================================
   ACCORDION
   ============================================ */

.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px !important;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.accordion-button {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background: var(--gradient-card);
    color: var(--text-primary);
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
    border-color: var(--accent-purple);
}

.accordion-body {
    background: var(--bg-card);
    color: var(--text-secondary);
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.4);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(167, 139, 250, 0.6);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-purple {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: var(--shadow-md);
}

.shadow-custom-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-glow {
    box-shadow: var(--shadow-glow-purple);
}

/* Text colors */
.text-purple { color: var(--accent-purple) !important; }
.text-blue { color: var(--accent-blue) !important; }
.text-green { color: var(--accent-green) !important; }
.text-yellow { color: var(--accent-yellow) !important; }
.text-red { color: var(--accent-red) !important; }
.text-cyan { color: var(--accent-cyan) !important; }

/* Background colors */
.bg-purple { background: rgba(167, 139, 250, 0.15) !important; }
.bg-blue { background: rgba(96, 165, 250, 0.15) !important; }
.bg-green-light { background: rgba(52, 211, 153, 0.15) !important; }

/* ============================================
   PAGE HEADERS
   ============================================ */

.page-header {
    background: var(--gradient-card);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.page-header h1, .page-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.page-header .lead, .page-description {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ============================================
   CONTAINERS
   ============================================ */

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer, .footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 2rem 0;
}

footer a, .footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover, .footer a:hover {
    color: var(--text-primary);
}

footer .text-muted {
    color: var(--text-muted) !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

.slide-in {
    animation: slideIn 0.4s ease-out;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .container-fluid,
    .page-container {
        padding: 1rem;
    }

    .page-header {
        padding: 1.5rem;
    }

    .page-header h1, .page-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }

    .content-card {
        padding: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card .stat-value {
        font-size: 1.5rem;
    }

    .modal-dialog {
        margin: 0.5rem;
    }
}

/* ============================================
   DARK MODE ENFORCEMENT
   ============================================ */

/* Ensure all Bootstrap components respect dark theme */
.bg-white, .bg-light {
    background: var(--bg-card) !important;
}

.text-dark {
    color: var(--text-primary) !important;
}

.border-light {
    border-color: var(--border-color) !important;
}

/* Remove any white backgrounds that might slip through */
.bg-body {
    background: var(--bg-primary) !important;
}

[data-theme="dark"] {
    background: var(--bg-primary);
    color: var(--text-primary);
}
