@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #033687;
  --secondary-color: #3173B4;
  --tertiary-color: #ffffff;
  --bg-color: #f4f7f9;
  --text-main: #333333;
  --text-muted: #6c757d;
  --border-color: #e2e8f0;
  --sidebar-width: 260px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: var(--primary-color);
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-color);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(49, 115, 180, 0.2);
}

/* Auth Pages (Login, Forgot, Reset) */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-color) 0%, #e0e8f5 100%);
  padding: 2rem;
}

.auth-card {
  background-color: var(--tertiary-color);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(3, 54, 135, 0.08);
  width: 100%;
  max-width: 550px;
  padding: 3rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.auth-logo img {
  max-height: 120px;
}

.auth-title {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.form-control {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.25rem rgba(49, 115, 180, 0.15);
}

.form-label {
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

/* Dashboard Layout */
.wrapper {
  display: flex;
  width: 100%;
  align-items: stretch;
}

/* Sidebar */
#sidebar {
  min-width: var(--sidebar-width);
  max-width: var(--sidebar-width);
  background: var(--tertiary-color);
  color: var(--text-main);
  transition: all 0.3s;
  border-right: 1px solid var(--border-color);
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

#sidebar.active {
  margin-left: calc(var(--sidebar-width) * -1);
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-color);
}

.sidebar-header img {
  max-height: 80px;
}

.sidebar-nav {
  padding: 1rem 0;
  list-style: none;
  margin: 0;
}

.sidebar-nav li {
  padding: 0.25rem 1rem;
  margin-bottom: 0.25rem;
}

.sidebar-nav li a {
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.sidebar-nav li a i {
  margin-right: 14px;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.sidebar-nav li a:hover {
  background-color: rgba(49, 115, 180, 0.05);
  color: var(--primary-color);
  transform: translateX(4px);
}

.sidebar-nav li.active a {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(3, 54, 135, 0.2);
}

.sidebar-nav li.active a i {
  color: white;
}

.sidebar-footer {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.sidebar-footer a {
  font-weight: 600;
  color: var(--primary-color);
}

/* Page Content */
#content {
  width: 100%;
  min-height: 100vh;
  transition: all 0.3s;
}

/* Navbar */
.top-navbar {
  background-color: var(--tertiary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 999;
}

.sidebar-toggler {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  padding: 0;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

/* Dashboard Widgets */
.dashboard-content {
  padding: 2.5rem;
  max-width: 1600px;
  margin: 0 auto;
}

.stat-card {
  background: var(--tertiary-color);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(49, 115, 180, 0.03) 100%);
  z-index: -1;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(3, 54, 135, 0.08);
  border-color: rgba(49, 115, 180, 0.2);
}

.stat-info h3 {
  font-size: 2rem;
  margin: 0;
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.stat-info p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: rgba(3, 54, 135, 0.08);
  color: var(--primary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.card-widget {
  background: var(--tertiary-color);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(226, 232, 240, 0.8);
  margin-top: 2rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.card-widget:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}

.card-widget-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(251, 252, 253, 0.5);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-widget-header h5 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
}

.card-widget-body {
  padding: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  #sidebar {
    margin-left: calc(var(--sidebar-width) * -1);
    position: fixed;
  }

  #sidebar.active {
    margin-left: 0;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
    top: 0;
    left: 0;
  }

  .sidebar-overlay.active {
    display: block;
  }

  .dashboard-content {
    padding: 1rem;
  }
}