/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --font-primary: 'Inter', sans-serif;
    --primary-color: #0d9488;
    /* Teal */
    --primary-hover: #0f766e;
    --secondary-color: #64748b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --light-bg: #f3f4f6;
    --sidebar-bg: #ffffff;
    --sidebar-width: 280px;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

body {
    font-family: var(--font-primary);
    background-color: var(--light-bg);
    color: var(--text-dark);
}

/* Layout */
.sidebar {
    background-color: var(--sidebar-bg);
    min-height: 100vh;
    width: var(--sidebar-width);
    border-right: 1px solid #e2e8f0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    background-color: var(--light-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Sidebar Styling */
.sidebar-brand {
    padding: 1.5rem 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 1rem;
}

.sidebar-brand-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 1rem;
}

.sidebar-brand-text {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.2;
}

.sidebar-brand-subtext {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    /* Spacious padding */
    margin: 0.25rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: #f0fdfa;
    /* Very light teal */
}

.nav-link.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(13, 148, 136, 0.2);
}

.nav-link i {
    width: 24px;
    margin-right: 12px;
    font-size: 1.1rem;
    text-align: center;
}

/* User Profile Section (Bottom Sidebar) */
.user-profile {
    margin-top: auto;
    padding: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.user-card {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    margin-right: 0.75rem;
}

.user-info h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.user-info small {
    font-size: 0.75rem;
    color: var(--text-light);
    display: block;
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Topbar */
.topbar {
    background-color: white;
    padding: 0.75rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Cards */
.card-dashboard {
    border: none;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s;
}

.card-dashboard:hover {
    transform: translateY(-3px);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Compact Stat Cards */
.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.card-dashboard .text-xs {
    letter-spacing: 0.5px;
}

/* Utilities for Compact UI */
.tracking-wide {
    letter-spacing: 0.05em;
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}

.hover-success:hover {
    color: #1cc88a !important;
}

.z-1 {
    z-index: 1;
}

.lh-0 {
    line-height: 0;
}