@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@700;800&display=swap');

:root {
    /* Color Palette - OKLCH */
    --brand-primary: oklch(38% 0.13 240);
    --brand-primary-light: oklch(55% 0.14 240);
    --brand-accent: oklch(65% 0.18 42);
    --brand-success: oklch(55% 0.15 145);
    --brand-danger: oklch(52% 0.21 25);
    --brand-warning: oklch(75% 0.17 75);

    --surface-0: oklch(98% 0.005 240);
    --surface-1: oklch(94% 0.01 240);
    --surface-white: oklch(100% 0 0);

    --text-primary: oklch(18% 0.02 240);
    --text-muted: oklch(52% 0.03 240);
    --text-white: oklch(100% 0 0);

    /* Spacing & Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    /* Shadows */
    --shadow-sm: 0 2px 12px oklch(18% 0.02 240 / 0.08);
    --shadow-md: 0 8px 30px oklch(18% 0.02 240 / 0.12);
    --shadow-lg: 0 12px 40px oklch(18% 0.02 240 / 0.15);

    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-primary);
    background-color: var(--surface-0);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    color: var(--brand-primary);
}

/* Utilities */
.glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card {
    background: var(--surface-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    border: none;
    transition: var(--transition-normal);
}

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

.btn-brand {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
    color: var(--text-white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 10px oklch(38% 0.13 240 / 0.2);
}

.btn-brand:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px oklch(38% 0.13 240 / 0.3);
    filter: brightness(1.1);
}

.btn-accent {
    background: linear-gradient(135deg, var(--brand-accent), oklch(75% 0.18 42));
    color: var(--text-white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 4px 10px oklch(65% 0.18 42 / 0.2);
}

.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--surface-1);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
    background-color: var(--surface-0);
}

.input-field:focus {
    outline: none;
    border-color: var(--brand-primary);
    background-color: var(--surface-white);
    box-shadow: 0 0 0 4px oklch(38% 0.13 240 / 0.1);
}

/* Bootstrap Overrides for consistency in content loads */
.table {
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.table thead th {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 1rem;
}

.table tbody tr {
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.table tbody td {
    border: none;
    padding: 1rem;
    vertical-align: middle;
}

.table tbody td:first-child {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.table tbody td:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--surface-1);
    background: var(--surface-white);
}

/* Dashboard specific cards from admin_queries.php */
.stats-card {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

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

.stats-card .card-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}