/* Modern IAM System - Beautiful & Professional CSS */

:root {
    /* Primary Colors */
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #6366f1;
    --primary-lighter: #e0e7ff;
    
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Layout */
    --sidebar-width: 260px;
    --navbar-height: 64px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition: all 0.2s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
}

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    animation: fadeInUp 0.4s ease-out;
}

.banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 3rem 2rem;
    text-align: center;
    color: white;
}

.banner-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.banner-subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
}

.login-content {
    padding: 2.5rem 2rem;
}

.login-description {
    color: var(--gray-600);
    text-align: center;
    margin-bottom: 2rem;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--danger);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.google-signin-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: white;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    color: var(--gray-700);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.google-signin-button:hover {
    background: var(--gray-50);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.login-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */

.dashboard-body {
    background: var(--gray-100);
}

.navbar {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    height: var(--navbar-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 2rem;
    max-width: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.navbar-brand i {
    font-size: 1.5rem;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.navbar-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.navbar-link:hover {
    color: var(--primary);
    background: var(--gray-100);
}

.dashboard-main {
    margin-top: var(--navbar-height);
    min-height: calc(100vh - var(--navbar-height));
}

.dashboard-layout {
    display: flex;
    min-height: calc(100vh - var(--navbar-height));
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid var(--gray-200);
    padding: 2rem 0;
    position: fixed;
    top: var(--navbar-height);
    bottom: 0;
    left: 0;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-title {
    padding: 0 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    color: var(--gray-400);
}

.sidebar-link:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.sidebar-link:hover i {
    color: var(--primary);
}

.sidebar-link.active {
    background: var(--primary-lighter);
    color: var(--primary);
    border-right: 3px solid var(--primary);
}

.sidebar-link.active i {
    color: var(--primary);
}

/* Main Content */
.dashboard-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
}

/* ============================================
   COMMON COMPONENTS
   ============================================ */

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-subtitle {
    color: var(--gray-600);
    font-size: 1rem;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

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

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon-blue {
    background: #dbeafe;
    color: #2563eb;
}

.stat-icon-green {
    background: #d1fae5;
    color: #059669;
}

.stat-icon-yellow {
    background: #fef3c7;
    color: #d97706;
}

.stat-icon-purple {
    background: #ede9fe;
    color: #7c3aed;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.action-button i {
    font-size: 1.125rem;
}

.action-button-primary {
    background: var(--primary);
    color: white;
}

.action-button-primary:hover {
    background: var(--primary-dark);
    transform: translateX(4px);
}

.action-button-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.action-button-secondary:hover {
    background: var(--gray-200);
    transform: translateX(4px);
}

.action-button-warning {
    background: #fef3c7;
    color: #92400e;
}

.action-button-warning:hover {
    background: #fde68a;
    transform: translateX(4px);
}

.action-button-info {
    background: #dbeafe;
    color: #1e40af;
}

.action-button-info:hover {
    background: #bfdbfe;
    transform: translateX(4px);
}

/* Info List */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.info-value {
    font-weight: 600;
    color: var(--gray-900);
}

/* Role Badges */
.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.role-default {
    background: #dbeafe;
    color: #1e40af;
}

.role-admin {
    background: #fef3c7;
    color: #92400e;
}

/* Badge */
.badge {
    display: none;
    padding: 0.125rem 0.5rem;
    background: var(--danger);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: auto;
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table thead {
    background: var(--gray-50);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-200);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.data-table tbody tr:hover {
    background: var(--gray-50);
}

.data-table tbody tr[style*="cursor: pointer"]:hover {
    background: var(--primary-lighter);
}

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

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending, .badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.status-approved, .badge-success {
    background: #d1fae5;
    color: #065f46;
}

.status-rejected, .badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.status-expired, .badge-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.action-buttons-inline {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.service-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: var(--gray-50);
    padding: 1rem;
}

.service-image-placeholder {
    width: 100%;
    height: 180px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.service-info {
    padding: 1.5rem;
}

.service-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.service-description {
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.service-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: contain;
    background: var(--gray-50);
    padding: 4px;
}

/* Loading & Empty States */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--gray-500);
    font-size: 1rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--gray-500);
    font-size: 1rem;
}

.empty-state i {
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gray-300);
}

.error-state {
    text-align: center;
    padding: 3rem;
    color: var(--danger);
    font-size: 1rem;
}

/* Grant Type Badge */
.grant-type-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.action-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: var(--primary-lighter);
    color: var(--primary);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ============================================
   FORMS
   ============================================ */

.form {
    max-width: 800px;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.625rem;
    font-size: 0.9375rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background: white;
}

.form-control:hover {
    border-color: var(--gray-400);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-lighter);
}

.form-control:disabled {
    background: var(--gray-100);
    cursor: not-allowed;
}

input[type="file"].form-control {
    padding: 0.75rem;
    font-size: 0.9375rem;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-help {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-style: italic;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
    border: 2px solid var(--gray-200);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.checkbox-label:hover {
    background: var(--gray-50);
    border-color: var(--primary-light);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + span {
    color: var(--primary);
}

.text-muted {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.text-warning {
    color: var(--warning);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Button Variants */
.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Page Header with Actions */
.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

/* Service Actions */
.service-actions {
    margin-top: 1rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: block;
}

.service-link:hover {
    text-decoration: underline;
}

/* ============================================
   MODAL
   ============================================ */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

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

.modal {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: fadeInUp 0.3s ease-out;
}

.modal-sm {
    max-width: 480px;
}

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

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.modal-close:hover {
    color: var(--gray-600);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(80vh - 140px);
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 2px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.access-item {
    padding: 1.25rem;
    background: var(--gray-50);
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 2px solid var(--gray-200);
}

.access-item:last-child {
    margin-bottom: 0;
}

.access-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.access-item-title {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 1.125rem;
}

.access-item-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.access-detail {
    font-size: 0.875rem;
}

.access-detail-label {
    color: var(--gray-600);
    font-weight: 500;
}

.access-detail-value {
    color: var(--gray-900);
    font-weight: 600;
}

/* Tier Selection */
#tier-selection .tier-selection-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 1rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

#tier-selection .tier-option {
    position: relative !important;
    display: block !important;
    padding: 1.5rem !important;
    background: white !important;
    border: 3px solid var(--gray-300) !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-bottom: 0 !important;
}

#tier-selection .tier-option:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15) !important;
    transform: translateY(-2px) !important;
}

#tier-selection .tier-option input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

#tier-selection .tier-option input[type="radio"]:checked + .tier-content .tier-name {
    color: var(--primary) !important;
}

#tier-selection .tier-option:has(input:checked) {
    border-color: var(--primary) !important;
    background: var(--primary-lighter) !important;
    box-shadow: 0 0 0 4px rgba(224, 231, 255, 0.5) !important;
}

#tier-selection .tier-option:has(input:checked)::after {
    content: '✓' !important;
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 32px !important;
    height: 32px !important;
    background: var(--primary) !important;
    color: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    font-size: 1.125rem !important;
}

#tier-selection .tier-content {
    position: relative !important;
    pointer-events: none !important;
}

#tier-selection .tier-name {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--gray-900) !important;
    margin-bottom: 0.5rem !important;
}

#tier-selection .tier-description {
    font-size: 0.9375rem !important;
    color: var(--gray-600) !important;
    line-height: 1.5 !important;
}

#tier-selection .tier-custom {
    border-color: var(--warning) !important;
    background: #fffbeb !important;
}

#tier-selection .tier-custom:hover {
    border-color: var(--warning) !important;
    background: #fef3c7 !important;
}

#tier-selection .tier-custom:has(input:checked) {
    border-color: var(--warning) !important;
    background: #fef3c7 !important;
    box-shadow: 0 0 0 4px rgba(254, 243, 199, 0.5) !important;
}

#tier-selection .tier-custom:has(input:checked)::after {
    background: var(--warning) !important;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.loading-inline {
    font-size: 0.75rem;
    color: var(--gray-500);
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .dashboard-content {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1rem;
    }
    
    .navbar-brand span {
        display: none;
    }
    
    .navbar-user {
        font-size: 0.75rem;
    }
    
    .dashboard-content {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        font-size: 0.75rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}
