/* Google Font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #6a5acd; /* Royal Purple */
    --primary-gradient: linear-gradient(135deg, #6a5acd, #836FFF);
    --light-purple: #f3f0ff;
    --white-color: #fff;
    --dark-color: #333;
    --text-color: #555;
    --border-color: #e9ecef;
    --sidebar-bg: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f7f7f9; /* Light grey background for content area */
    color: var(--text-color);
}

/* --- Authentication Pages (Login/Register) Styles --- */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-color: var(--light-purple);
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.auth-card-header,
.auth-card-body,
.auth-card-footer {
    padding: 2rem;
}

.auth-card-header {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.auth-title {
    color: var(--dark-color);
    font-weight: 600;
}

.auth-card-footer {
    background-color: #f8f9fa;
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
}

/* --- General Form and Button Styles --- */
.form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(106, 90, 205, 0.25);
}

.btn {
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(106, 90, 205, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(106, 90, 205, 0.4);
}


/* --- Dashboard Layout Styles --- */
.page-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100%;
    z-index: 1000;
    transition: margin-left 0.3s ease;
}

.sidebar-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.sidebar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.sidebar-nav {
    padding: 1rem;
    list-style: none;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    color: #6c757d;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-nav .nav-link i {
    font-size: 1.1rem;
    width: 30px;
    text-align: center;
}

.sidebar-nav .nav-link span {
    margin-left: 0.5rem;
}

.sidebar-nav .nav-link:hover {
    background-color: var(--light-purple);
    color: var(--primary-color);
}

.sidebar-nav .nav-link.active {
    background: var(--primary-gradient);
    color: var(--white-color);
    box-shadow: 0 4px 10px rgba(106, 90, 205, 0.4);
}

.main-panel {
    flex-grow: 1;
    margin-left: 260px;
    transition: margin-left 0.3s ease;
}

.navbar-header {
    background-color: var(--white-color);
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    font-weight: 500;
}
.user-profile i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.content-wrapper {
    padding: 2rem;
}

.welcome-banner {
    background: var(--primary-gradient);
    color: var(--white-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.welcome-banner h1 {
    font-weight: 600;
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Responsive Styles for Mobile */
@media (max-width: 767.98px) {
    .sidebar {
        margin-left: -260px; /* Sidebar ko hide karein */
    }
    .sidebar.active {
        margin-left: 0; /* Active hone par sidebar dikhayein */
    }
    .main-panel {
        margin-left: 0;
        width: 100%;
    }
}


/* Sidebar active state */
.sidebar .nav-link.active {
  background: var(--primary-100, #eef5ff);
  color: var(--primary-color, #0d6efd);
  font-weight: 600;
}
.sidebar .nav-link.active i { color: inherit; }

/* PAGE PILL (top center) */
.page-pill{
  position: sticky;
  top: 12px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #111827; /* gray-900 */
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  font-weight: 600;
}

/* compact left panel buttons */
.left-controls .btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:.5rem .75rem;border-radius:.5rem;font-weight:700;font-size:.875rem;
}
