/* ============================================
   Moken License Server — Admin Panel CSS
   Premium Dark Theme with Gold Accents
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-primary: #07080a;
    --bg-secondary: #0d0f12;
    --bg-card: #111318;
    --bg-card-hover: #161921;
    --bg-input: #0d0f14;
    --bg-surface: #1a1d25;
    --bg-overlay: rgba(0, 0, 0, 0.7);

    --accent-gold: #c9a227;
    --accent-gold-light: #e0b830;
    --accent-gold-dim: rgba(201, 162, 39, 0.15);
    --accent-gold-glow: rgba(201, 162, 39, 0.25);

    --text-primary: #e8e6e3;
    --text-secondary: #8b8d93;
    --text-muted: #555860;
    --text-white: #ffffff;

    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    --success: #22c55e;
    --danger: #ef4444;
    --warning: #eab308;
    --info: #3b82f6;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.5);
    --shadow-gold: 0 4px 20px rgba(201, 162, 39, 0.15);

    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-ar: 'Cairo', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ar);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(201, 162, 39, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

::selection {
    background: var(--accent-gold-dim);
    color: var(--accent-gold-light);
}

a { color: var(--accent-gold); text-decoration: none; }
a:hover { color: var(--accent-gold-light); }

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(7, 8, 10, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

.navbar-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-gold), #e0b830);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.1rem;
    box-shadow: var(--shadow-gold);
}

.navbar-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--accent-gold-dim);
    color: var(--accent-gold);
    border: 1px solid rgba(201, 162, 39, 0.2);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ============ CARDS ============ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-hover);
}

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

.card-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-white);
}

.card-header-title i {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.card-body {
    padding: 1.5rem;
}

/* ============ STAT CARDS ============ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--stat-color, rgba(255,255,255,0.03)), transparent 70%);
    pointer-events: none;
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    font-family: var(--font-ar);
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent-gold), #d4a82a);
    color: #000;
    border: none;
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #d4a82a, #e0b830);
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(201, 162, 39, 0.3);
    color: #000;
}

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

.btn-dark:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-white);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

.btn-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.btn-success:hover {
    background: var(--success);
    color: #fff;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-sm);
}

.btn-block { width: 100%; }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============ FORMS ============ */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.form-control {
    width: 100%;
    padding: 0.65rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-ar);
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px var(--accent-gold-dim);
    background: var(--bg-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23888' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    background-size: 16px 12px;
    padding-left: 2.5rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.plan-summary {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.plan-summary-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-white);
}

.plan-summary-meta {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.plan-summary-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.plan-trial-badge {
    background: rgba(59,130,246,0.12);
    color: var(--info);
    border-color: rgba(59,130,246,0.24);
}

/* ============ TABLE ============ */
.table-wrapper {
    overflow-x: auto;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    padding: 0.85rem 1.25rem;
    text-align: right;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover td {
    background: rgba(255, 255, 255, 0.015);
}

/* ============ BADGES ============ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.badge-status {
    border: 1px solid;
}

.code-badge {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border-color);
    color: var(--accent-gold);
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.code-badge:hover {
    background: var(--accent-gold-dim);
    border-color: rgba(201, 162, 39, 0.3);
}

.blur-text {
    filter: blur(4px);
    transition: filter 0.3s;
    cursor: pointer;
}

.blur-text:hover {
    filter: none;
}

/* ============ STATUS DOT ============ */
.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0.2;
}

/* ============ FEATURE GRID ============ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 0.6rem;
}

.feature-item {
    position: relative;
}

.feature-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.feature-item label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.75rem 0.5rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.feature-item label i {
    font-size: 1.3rem;
    transition: var(--transition);
}

.feature-item input:checked + label {
    border-color: var(--accent-gold);
    background: var(--accent-gold-dim);
    color: var(--accent-gold);
}

.feature-item input:checked + label i {
    color: var(--accent-gold-light);
}

.feature-item label:hover {
    border-color: var(--border-hover);
    color: var(--text-secondary);
}

/* ============ MODAL ============ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease-out;
}

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

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

.modal-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title i {
    color: var(--accent-gold);
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.modal-close:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
}

/* ============ LAYOUT ============ */
.main-content {
    padding-top: 88px;
    padding-bottom: 2rem;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

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

.grid-2 {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }
}

.sticky-sidebar {
    position: sticky;
    top: 88px;
}

/* ============ LOGIN PAGE ============ */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: loginFadeIn 0.5s ease-out;
}

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

.login-header {
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
}

.login-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--accent-gold), #e0b830);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #000;
    box-shadow: var(--shadow-gold);
}

.login-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 0.3rem;
}

.login-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.login-body {
    padding: 1.5rem 2rem 2.5rem;
}

/* ============ TOAST ============ */
.toast-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toastIn 0.3s ease-out;
    box-shadow: var(--shadow-md);
    min-width: 300px;
}

.toast-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success);
}

.toast-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.toast-info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--info);
}

@keyframes toastIn {
    from { transform: translateY(-15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ============ EMPTY STATE ============ */
.empty-state {
    padding: 3rem 2rem;
    text-align: center;
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ============ UTILITIES ============ */
.text-gold { color: var(--accent-gold) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-white { color: var(--text-white) !important; }

.fw-bold { font-weight: 700; }
.fw-extra { font-weight: 800; }
.fs-sm { font-size: 0.8rem; }
.fs-xs { font-size: 0.7rem; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 0.75rem; }
.gap-3 { gap: 1rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

/* Row layout for form */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============ AUDIT LOG TABLE ============ */
.audit-action {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
}

/* ============ CHECKBOX ALL ============ */
.select-all-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-gold);
    transition: var(--transition);
}

.select-all-wrap:hover {
    color: var(--accent-gold-light);
}

.select-all-wrap input[type="checkbox"] {
    accent-color: var(--accent-gold);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ============ ANIMATIONS ============ */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

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

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

/* Row actions */
.row-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    opacity: 0.7;
    transition: var(--transition);
}

table tr:hover .row-actions {
    opacity: 1;
}

/* ============ FILTER BAR ============ */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
}

.filter-bar .form-control {
    flex: 1;
    min-width: 140px;
    max-width: 250px;
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
}

.filter-pill {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.filter-pill:hover,
.filter-pill.active {
    background: var(--accent-gold-dim);
    border-color: rgba(201, 162, 39, 0.3);
    color: var(--accent-gold);
}

/* ============ PAGINATION ============ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 1rem;
}

.pagination a,
.pagination span {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
    text-decoration: none;
}

.pagination a:hover {
    background: var(--accent-gold-dim);
    color: var(--accent-gold);
}

.pagination .current {
    background: var(--accent-gold);
    color: #000;
}

/* ============ RESPONSIVE ENHANCEMENTS ============ */
@media (max-width: 768px) {
    /* Navbar padding */
    .navbar {
        padding: 0 1rem;
    }
    
    /* Container padding */
    .container {
        padding: 0 1rem;
    }
    
    /* Stats grid */
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.4rem;
    }

    /* Modals padding */
    .modal-overlay {
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }
    .modal-header {
        padding: 1rem;
    }
    .modal-footer {
        padding: 1rem;
        flex-direction: column;
    }
    .modal-footer .btn {
        width: 100%;
    }

    /* Cards */
    .card-body {
        padding: 1rem;
    }
    .card-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
}
