@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #4361ee;
  --secondary-color: #3f37c9;
  --accent-color: #4895ef;
  --success-color: #4cc9f0;
  --warning-color: #f72585;
  --text-primary: #2b2d42;
  --text-secondary: #8d99ae;
  --bg-body: #f8f9fa;
  --bg-card: #ffffff;
  --sidebar-width: 250px;
  --header-height: 70px;
  --border-radius: 16px;
  --box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Layout Structure */
.wrapper {
  display: flex;
  width: 100%;
}

/* Sidebar */
#sidebar {
  min-width: var(--sidebar-width);
  max-width: var(--sidebar-width);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: var(--transition);
  height: 100vh;
  position: fixed;
  z-index: 1000;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

#sidebar .sidebar-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--header-height);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#sidebar .logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

#sidebar ul.components {
  padding: 20px 0;
  flex-grow: 1;
}

#sidebar ul li {
  padding: 5px 15px;
}

#sidebar ul li a {
  padding: 12px 15px;
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 12px;
  transition: var(--transition);
  font-weight: 500;
}

#sidebar ul li a i {
  margin-right: 15px;
  font-size: 1.25rem;
  min-width: 25px;
  text-align: center;
}

#sidebar ul li a:hover,
#sidebar ul li.active a {
  background-color: rgba(67, 97, 238, 0.1);
  color: var(--primary-color);
}

#sidebar .sidebar-footer {
  padding: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Main Content */
#content {
  width: calc(100% - var(--sidebar-width));
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

/* Navbar */
.navbar {
  padding: 0 30px;
  background: var(--bg-card);
  border: none;
  border-radius: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-btn {
  box-shadow: none;
  outline: none !important;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* Dashboard Cards */
.card-premium {
  background: var(--bg-card);
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  padding: 25px;
  height: 100%;
}

.card-premium:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.15);
}

.stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.bg-primary-soft {
  background-color: rgba(67, 97, 238, 0.15);
  color: var(--primary-color);
}

.bg-success-soft {
  background-color: rgba(76, 201, 240, 0.15);
  color: var(--success-color);
}

.bg-warning-soft {
  background-color: rgba(247, 37, 133, 0.15);
  color: var(--warning-color);
}

.stat-details h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat-details p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-weight: 500;
}

/* Calendar */
.calendar-container {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--box-shadow);
}

/* Login Page Details */
.login-bg {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-bg::before,
.login-bg::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.login-bg::before {
  top: -50px;
  left: -50px;
}

.login-bg::after {
  bottom: -50px;
  right: -50px;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.form-control-premium {
  background: #f1f3f5;
  border: none;
  border-radius: 10px;
  padding: 12px 15px;
  height: 50px;
  transition: var(--transition);
}

.form-control-premium:focus {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
  outline: none;
}

.btn-premium {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border: none;
  color: white;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  width: 100%;
  transition: var(--transition);
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  #sidebar {
    margin-left: calc(var(--sidebar-width) * -1);
  }

  #sidebar.active {
    margin-left: 0;
  }

  #content {
    width: 100%;
    margin-left: 0;
  }

  /* #sidebar.active ~ #content rule removed as it was empty */
}

@media (min-width: 769px) {
  #sidebar.active {
    margin-left: calc(var(--sidebar-width) * -1);
  }

  #sidebar.active+#content {
    margin-left: 0;
    width: 100%;
  }
}