/* Professional Theme for Toa Multi Tech IT School */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@700;800&display=swap');

:root {
  /* Rich Color Palette */
  --primary: #0f172a;
  /* Slate 900 */
  --primary-light: #1e293b;
  /* Slate 800 */
  --accent: #3b82f6;
  /* Blue 500 */
  --accent-hover: #2563eb;
  /* Blue 600 */
  --secondary: #0ea5e9;
  /* Sky 500 */
  --success: #10b981;
  /* Emerald 500 */
  --warning: #f59e0b;
  /* Amber 500 */
  --danger: #ef4444;
  /* Red 500 */

  /* Neutral Palette */
  --bg-main: #f8fafc;
  /* Slate 50 */
  --bg-card: #ffffff;
  --text-main: #1e293b;
  /* Slate 800 */
  --text-muted: #64748b;
  /* Slate 500 */
  --text-white: #ffffff;

  /* Borders & Shadows */
  --border-color: #e2e8f0;
  /* Slate 200 */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-blur: blur(12px);

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Global Reset & Base */
body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* Navbar Enhancement */
.navbar {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar .navbar-brand {
  font-weight: 800;
  color: var(--primary) !important;
  font-size: 1.5rem;
}

.navbar .nav-link {
  color: var(--text-main) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.2s;
}

.navbar .nav-link:hover {
  color: var(--accent) !important;
}

/* Hero Section Refinement */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  background: radial-gradient(circle at top right, #e0f2fe, transparent),
    radial-gradient(circle at bottom left, #f1f5f9, transparent);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 40%;
  height: 60%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(14, 165, 233, 0.1));
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* Glass Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
}

/* Course Cards */
.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent);
}

.course-card img {
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-card:hover img {
  transform: scale(1.05);
}

.course-card .card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.course-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  display: inline-block;
  margin-bottom: 1rem;
}

/* Modern Buttons */
.btn {
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--accent);
  border: none;
  color: white;
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.23);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
}

/* Authentication Layouts */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.auth-wrapper::after {
  content: '';
  position: absolute;
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  bottom: -400px;
  left: -400px;
  z-index: -1;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: white;
  padding: 3rem;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
}

.auth-card h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.auth-card p.subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: block;
}

.form-control {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  transition: all 0.2s;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  background: white;
  outline: none;
}

/* Dashboard Sidebar */
.sidebar-nav {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 0.5rem;
  transition: all 0.2s;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
}

.sidebar-link i {
  width: 24px;
  margin-right: 12px;
  font-size: 1.1rem;
}

/* Footer Section */
footer {
  background: var(--primary);
  color: #94a3b8;
  padding: 5rem 0 2rem;
}

footer h5 {
  color: white;
  margin-bottom: 1.5rem;
}

footer a {
  color: #94a3b8;
  text-decoration: none;
}

footer a:hover {
  color: var(--accent);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-up {
  animation: fadeInUp 0.6s ease forwards;
}