@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

/* Sidebar Navigation Link Styling */
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    color: #475569; /* slate-600 */
    transition: background-color 0.2s, color 0.2s;
}
.nav-link:hover {
    background-color: #f1f5f9; /* slate-100 */
}
.nav-link.active {
    background-color: #eff6ff; /* blue-50 */
    color: #2563eb; /* blue-600 */
}
.nav-link span {
    font-size: 1.25rem;
}

/* KPI Card Styling */
.kpi-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.kpi-title {
    font-weight: 600;
    color: #64748b; /* slate-500 */
}
.kpi-value {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
    color: #1e293b; /* slate-800 */
    margin-top: 0.5rem;
}

/* Chart Container Styling */
.chart-container {
    background-color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    position: relative; /* This is crucial for Chart.js responsiveness */
    height: 400px;      /* This gives the container a fixed height */
}
.chart-title {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 700;
    color: #1e293b; /* slate-800 */
    margin-bottom: 1rem;
}

/* Specific styling for doughnut/pie charts to make them more square */
.doughnut-chart-container {
    height: 350px; /* A slightly smaller height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 100px;
}

/* Fullscreen Loader */
.loader-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3b82f6; /* blue-500 */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Styles for the User Management Table */
.user-table {
    width: 100%;
    text-align: left;
    font-size: 0.875rem;
    color: #64748b; /* slate-500 */
}

.user-table thead {
    font-size: 0.75rem;
    color: #334155; /* slate-700 */
    text-transform: uppercase;
    background-color: #f8fafc; /* slate-50 */
}

.user-table th,
.user-table td {
    padding: 1rem 1.5rem;
}

.user-table tbody tr {
    background-color: white;
    border-bottom: 1px solid #f1f5f9; /* slate-100 */
}

.user-table tbody tr:last-child {
    border-bottom: none;
}

.user-table .user-info {
    font-weight: 600;
    color: #1e293b; /* slate-800 */
}

.user-table .user-email {
    color: #64748b; /* slate-500 */
}

.user-table .status-badge {
    padding: 0.25rem 0.75rem;
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 9999px;
    display: inline-block;
}

.user-table .status-active {
    background-color: #dcfce7; /* green-100 */
    color: #166534; /* green-800 */
}

.user-table .status-disabled {
    background-color: #fee2e2; /* red-100 */
    color: #991b1b; /* red-800 */
}

.user-table .action-link {
    font-weight: 600;
    color: #2563eb; /* blue-600 */
}

.user-table .action-link:hover {
    text-decoration: underline;
}

/* Action Menu */
.action-menu-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: #334155;
    text-align: left;
}

.action-menu-item:hover {
    background-color: #f1f5f9;
}

.action-menu-item.delete-user-btn:hover {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Make sidenav visible and ready for transform on mobile */
@media (max-width: 1023px) {
   
    main {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}