@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;700;800&display=swap');

:root {
  --bg-color: #0b0c10;
  --bg-gradient: radial-gradient(circle at 10% 20%, rgb(0, 0, 0) 0%, rgb(20, 25, 45) 90%);
  --primary: #45f3ff;
  --secondary: #ff2770;
  --text-main: #ffffff;
  --text-muted: #8c9099;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-neon: 0 0 15px rgba(69, 243, 255, 0.5);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-gradient);
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Base Utility Classes */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--glass-border);
  border-left: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
}

/* Background animated elements */
.bg-bubbles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary) 0%, rgba(0,0,0,0) 70%);
  opacity: 0.15;
  filter: blur(20px);
  animation: float 10s infinite alternate cubic-bezier(0.5, 0, 0.5, 1);
}

.bubble:nth-child(1) { width: 300px; height: 300px; top: 10%; left: 15%; animation-duration: 12s;}
.bubble:nth-child(2) { width: 400px; height: 400px; bottom: 10%; right: 10%; background: radial-gradient(circle, var(--secondary) 0%, rgba(0,0,0,0) 70%); animation-duration: 16s;}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -50px) scale(1.1); }
}

/* Login Container */
.login-container {
  position: relative;
  width: 400px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  padding: 40px;
  z-index: 10;
}

.logo-container {
  text-align: center;
  margin-bottom: 30px;
}

.logo-container h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 5px;
}

.logo-container p {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-box {
  position: relative;
  width: 100%;
}

.input-box input {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  outline: none;
  padding: 15px 20px;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
  transition: var(--transition);
  border: 1px solid transparent;
}

.input-box input:focus {
  border: 1px solid var(--primary);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.2), 0 0 10px rgba(69, 243, 255, 0.2);
}

.input-box i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
}

.input-box input:focus + i {
  color: var(--primary);
}

.btn-submit {
  background: linear-gradient(45deg, var(--primary), #007bff);
  color: #000;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  padding: 15px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 10px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-neon);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(69, 243, 255, 0.8);
}

.btn-submit::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: 0.5s;
}

.btn-submit:hover::after {
  left: 100%;
}

/* Sidebar for dashboard */
.dashboard-layout {
  display: flex;
  width: 100%;
  height: 100vh;
  background: var(--bg-color);
  color: #fff;
}

.sidebar {
  width: 250px;
  height: 100%;
  background: rgba(20, 25, 45, 0.8);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--glass-border);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 40px;
  text-align: center;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 15px;
  border-radius: 12px;
  transition: var(--transition);
}

.nav-links li a:hover, .nav-links li a.active {
  background: var(--glass-bg);
  color: var(--primary);
  border: 1px solid rgba(69, 243, 255, 0.2);
}

.nav-links li a i {
  font-size: 1.2rem;
}

.main-content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
  position: relative;
}

/* Cards & Widgets */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border-color: rgba(69, 243, 255, 0.3);
}

.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title i {
  color: var(--primary);
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.btn-sm {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  align-self: flex-start;
  transition: var(--transition);
  font-weight: 500;
}

.btn-sm:hover {
  background: var(--primary);
  color: #000;
  box-shadow: var(--shadow-neon);
}

/* Specific module styles will follow */
