/* AdminX Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #f4f6fa;
    color: #1a1f36;
}

/* Sidebar */
.rz-sidebar {
    background: linear-gradient(180deg, #1a1f36 0%, #2d3561 100%) !important;
    min-width: 240px;
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
}

.rz-sidebar .rz-panelmenu .rz-panelmenu-header > a,
.rz-sidebar .rz-panelmenu-item > a {
    color: #c8cfe8 !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    margin: 2px 8px;
    transition: all 0.2s ease;
}

.rz-sidebar .rz-panelmenu-item > a:hover,
.rz-sidebar .rz-panelmenu-item > a.rz-menuitem-link-active {
    background: rgba(255,255,255,0.12) !important;
    color: #fff !important;
}

/* Header */
.rz-header {
    background: #ffffff !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
    border-bottom: 1px solid #e8ecf4;
    padding: 0 1.5rem;
}

.site-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1f36;
    letter-spacing: -0.3px;
}

.site-title span {
    color: #4f6ef7;
}

/* Content area */
.rz-body {
    padding: 1.5rem;
    overflow-y: auto;
}

/* Cards */
.admin-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.admin-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1f36;
    margin: 0 0 1rem 0;
}

/* Page headers */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1f36;
    margin: 0;
    letter-spacing: -0.3px;
}

/* Radzen grid overrides */
.rz-datatable {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.rz-datatable-thead th {
    background: #f8f9fc !important;
    color: #5a6080 !important;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badges */
.badge-success {
    background: #d1fae5;
    color: #065f46;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Utility */
.text-muted {
    color: #8892a4;
    font-size: 0.875rem;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #dc2626;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
