@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

h1, h2, h3, h4 {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

.bg-card {
    background-color: oklch(1 0 0);
}

/* Mobile menu */
.mobile-menu {
    display: none;
}

.mobile-menu.active {
    display: block;
}

/* Progress bar */
.progress-bar {
    background: linear-gradient(to right, oklch(0.48 0.27 27) var(--progress), oklch(0.9 0.01 85) var(--progress));
}

/* Calendar dots */
.calendar-dot {
    position: relative;
}

.calendar-dot::after {
    left: 50%;
    width: 5px;
    height: 5px;
    content: '';
    bottom: -4px;
    position: absolute;
    border-radius: 50%;
    transform: translateX(-50%);
    background: oklch(0.637 0.237 25.331);
}

/* =====================
   Card hover effects
   ===================== */
.card-hover {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px -8px rgba(0, 0, 0, 0.13), 0 4px 10px -4px rgba(0, 0, 0, 0.06);
}

/* Image zoom on hover */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.4s ease;
    will-change: transform;
}

.img-zoom:hover img {
    transform: scale(1.06);
}

/* =====================
   Admin sidebar layout
   ===================== */
.admin-sidebar {
    transition: transform 0.28s ease;
}

@media (max-width: 1023px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0 !important;
    }
}

/* Admin overlay for mobile */
.admin-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 25;
    backdrop-filter: blur(2px);
}

.admin-overlay.active {
    display: block;
}

/* Admin nav active state */
.admin-nav-link.is-active {
    background-color: oklch(0.95 0.04 27);
    color: oklch(0.38 0.22 27);
    font-weight: 600;
}

.admin-nav-link.is-active svg {
    color: oklch(0.48 0.27 27) !important;
}

/* =====================
   Button utilities
   ===================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.375rem;
    background-color: oklch(0.48 0.27 27);
    color: oklch(0.99 0.005 85);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0 1rem;
    height: 2.25rem;
    transition: opacity 0.15s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

.btn-primary:hover {
    opacity: 0.88;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.375rem;
    background-color: transparent;
    color: oklch(0.25 0.01 85);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0 1rem;
    height: 2.25rem;
    border: 1px solid oklch(0.88 0.01 85);
    transition: background-color 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

.btn-outline:hover {
    background-color: oklch(0.96 0.008 85);
    border-color: oklch(0.80 0.01 85);
}

.btn-ghost-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    color: oklch(0.40 0.01 85);
    width: 2.25rem;
    height: 2.25rem;
    transition: background-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    flex-shrink: 0;
}

.btn-ghost-icon:hover {
    background-color: oklch(0.93 0.01 85);
    color: oklch(0.25 0.01 85);
}

.btn-destructive {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.375rem;
    background-color: oklch(0.577 0.245 27.325);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0 1rem;
    height: 2.25rem;
    transition: opacity 0.15s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    line-height: 1;
}

.btn-destructive:hover {
    opacity: 0.88;
}

.btn-sm {
    height: 2rem;
    font-size: 0.8125rem;
    padding: 0 0.75rem;
    gap: 0.375rem;
}

/* =====================
   Form field utilities
   ===================== */
.form-input {
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid oklch(0.88 0.01 85);
    background: white;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    height: 2.25rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
    color: oklch(0.25 0.01 85);
    font-family: inherit;
}

.form-input:focus {
    border-color: oklch(0.54 0.27 27);
    box-shadow: 0 0 0 3px oklch(0.48 0.27 27 / 0.15);
}

.form-textarea {
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid oklch(0.88 0.01 85);
    background: white;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
    color: oklch(0.25 0.01 85);
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

.form-textarea:focus {
    border-color: oklch(0.54 0.27 27);
    box-shadow: 0 0 0 3px oklch(0.48 0.27 27 / 0.15);
}

.form-select {
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid oklch(0.88 0.01 85);
    background: white;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    height: 2.25rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
    color: oklch(0.25 0.01 85);
    font-family: inherit;
    cursor: pointer;
}

.form-select:focus {
    border-color: oklch(0.54 0.27 27);
    box-shadow: 0 0 0 3px oklch(0.48 0.27 27 / 0.15);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: oklch(0.30 0.01 85);
    margin-bottom: 0.375rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

/* =====================
   Admin card styles
   ===================== */
.admin-card {
    background: white;
    border: 1px solid oklch(0.91 0.01 85);
    border-radius: 0.75rem;
    overflow: hidden;
}

.admin-card-header {
    padding: 1.125rem 1.5rem;
    border-bottom: 1px solid oklch(0.93 0.01 85);
}

.admin-card-body {
    padding: 1.5rem;
}

/* Nav card used on dashboard */
.nav-card {
    background: white;
    border: 1px solid oklch(0.91 0.01 85);
    border-radius: 0.75rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    text-decoration: none;
}

.nav-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.10);
    border-color: oklch(0.80 0.10 27);
}

/* =====================
   Badge utilities
   ===================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1875rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.badge-green {
    background-color: #dcfce7;
    color: #15803d;
}

.badge-gray {
    background-color: #f3f4f6;
    color: #6b7280;
}

.badge-primary {
    background-color: oklch(0.48 0.27 27 / 0.10);
    color: oklch(0.38 0.22 27);
}

.badge-amber {
    background-color: #fef3c7;
    color: #92400e;
}

/* =====================
   Page header section
   ===================== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid oklch(0.93 0.01 85);
    gap: 1rem;
    flex-wrap: wrap;
}

.page-header-left {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

/* =====================
   Modal overlay
   ===================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    z-index: 40;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
    overflow-y: auto;
}

.modal-card {
    background: white;
    border-radius: 0.875rem;
    box-shadow: 0 24px 64px -10px rgba(0, 0, 0, 0.20);
    width: 100%;
    max-width: 42rem;
    margin: auto;
}

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

.modal-card-body {
    padding: 1.5rem;
}

/* =====================
   Error / alert boxes
   ===================== */
.alert-error {
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 0.5rem;
    color: #991b1b;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* =====================
   Table styles
   ===================== */
.data-table {
    width: 100%;
    font-size: 0.875rem;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: oklch(0.45 0.01 85);
    border-bottom: 1px solid oklch(0.91 0.01 85);
    white-space: nowrap;
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid oklch(0.95 0.005 85);
    vertical-align: middle;
}

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

.data-table tr:hover td {
    background-color: oklch(0.985 0.004 85);
}

/* =====================
   Hero section enhancements
   ===================== */
.hero-gradient {
    background: radial-gradient(ellipse 80% 60% at 50% -10%, oklch(0.48 0.27 27 / 0.07) 0%, transparent 70%);
}

/* =====================
   Scrollbar styling (Chrome/Edge)
   ===================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: oklch(0.82 0.01 85);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: oklch(0.65 0.01 85);
}
