/* 1. Import Poppins from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors */
    --primary: #1bc5bd;
    --primary-hover: #00a49d;
    --bg-body: #f3f4f6;
    --text-main: #111827;
    --text-muted: #6b7280;
    /* Layout */
    --sidebar-width: 260px;
    --sidebar-bg: #ffffff;
}

body {
    /* 2. Apply Poppins */
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    /* Poppins looks cleaner with slightly tighter text */
    letter-spacing: -0.2px;
}

/* --- Optional: Make Headers Stand Out --- */
h1, h2, h3, h4, h5, h6, .sidebar-header, .login-title {
    font-weight: 600; /* Semi-bold for headings looks great in Poppins */
}

/* --- Layout Structure (Sidebar + Main) --- */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    overflow-y: auto;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
}

    .nav-link:hover {
        background-color: #eef2ff; /* Light indigo bg */
        color: var(--primary);
    }

    .nav-link.active {
        background-color: #eef2ff;
        color: var(--primary);
        font-weight: 600;
    }

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width); /* Push content to right of sidebar */
    display: flex;
    flex-direction: column;
}

.top-navbar {
    background: white;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-content {
    padding: 2rem;
    flex: 1;
}

/* --- Login Page Specifics --- */
.login-body {
    background: linear-gradient(135deg, #1bc5bd 0%, #67f2ec 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255,255,255,0.2);
}

.login-title {
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

/* Form Controls */
.form-control {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
}

    .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    }

.btn-primary {
    background-color: var(--primary);
    border: none;
    padding: 0.75rem;
    font-weight: 600;
    border-radius: 0.5rem;
    width: 100%;
    transition: background 0.2s;
}

    .btn-primary:hover {
        background-color: var(--primary-hover);
    }

    .btn-primary:focus-visible, .btn-primary:active {
        color: var(--bs-btn-hover-color) !important;
        background-color: var(--primary) !important;
        border-color: var(--primary) !important;
    }
