/* =========================
   GLOBAL RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* =========================
   BODY
========================= */
body {
  background: linear-gradient(135deg, #1f1c2c, #928dab);
  color: white;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  background: white;
  color: black;
}

.logo {
  height: 70px;
}

.navbar nav a {
  margin-left: 20px;
  text-decoration: none;
  color: black;
  font-weight: 600;
  position: relative;
}

.navbar nav a::after {
  content: "";
  width: 0%;
  height: 2px;
  background: blue;
  position: absolute;
  left: 0;
  bottom: -5px;
  transition: 0.3s;
}

.navbar nav a:hover::after {
  width: 100%;
}

/* =========================
   HERO SECTION
========================= */
.hero {
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #3d17fb, #00f2fe);
  text-align: center;
}

.hero h1 {
  font-size: 45px;
}

.hero p {
  margin-top: 10px;
}

.hero button {
  margin-top: 20px;
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(45deg, #ff6a00, #ff007b);
  color: white;
  cursor: pointer;
}

.hero button:hover {
  transform: scale(1.1);
}

/* ABOUT PAGE */
.about-section {
  padding: 100px 20px;
  text-align: center;
}

.about-section h1 {
  font-size: 40px;
  margin-bottom: 20px;
}

.about-section p {
  max-width: 600px;
  margin: auto;
  margin-bottom: 40px;
  opacity: 0.9;
}

.about-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* CONTACT PAGE */
.contact-section {
  padding: 100px 20px;
  text-align: center;
}

.contact-form {
  max-width: 400px;
  margin: auto;
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  margin: 10px 0;
  padding: 12px;
  border-radius: 8px;
  border: none;
  outline: none;
}

.contact-form button {
  margin-top: 15px;
  padding: 12px;
  background: linear-gradient(45deg, #ff6a00, #ff3d77);
  border: none;
  color: white;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  transform: scale(1.05);
}

/* =========================
   LOGIN PAGE
========================= */
.login-section {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url("background.png") no-repeat center/cover;
  position: relative;
}

.login-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.login-box {
  position: relative;
  z-index: 2;
  width: 350px;
  padding: 40px;
  border-radius: 15px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(15px);
  text-align: center;
}

.login-box h2 {
  margin-bottom: 20px;
}

.login-box input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  border: none;
}

.login-box button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(45deg, #ff6a00, #ee0979);
  color: white;
  cursor: pointer;
}

.login-btn {
  position: relative;
  display: inline-block;
  margin-top: 30px;
  padding: 14px 35px;
  border-radius: 30px;
  background: linear-gradient(45deg, #ff6a00, #ff3d77);
  color: white;
  text-decoration: none;
  font-weight: 500;
  overflow: hidden;
  transition: 0.3s;
}

/* Glow Effect */
.login-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: 0.5s;
}

.login-btn:hover::before {
  left: 100%;
}

.login-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(255, 80, 120, 0.8);
}

/* =========================
   DASHBOARD
========================= */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #667eea, #764ba2);
}

/* Layout */
.dashboard {
  display: flex;
  height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 220px;
  background: #0f172a;
  color: white;
  display: flex;
  flex-direction: column;
  padding: 20px;
  z-index: 10;
}

.logo {
  font-size: 18px;
  font-weight: 600;
}

/* Profile */
.profile {
  text-align: center;
  margin: 20px 0;
}

.profile-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

/* Menu */
.top-menu {
  list-style: none;
  padding: 0;
}

.top-menu li {
  padding: 10px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
}

.top-menu li:hover {
  background: #1e293b;
  border-radius: 8px;
}

/* Bottom */
.bottom-menu {
  list-style: none;
  padding: 0;
  margin-top: auto;
}

.icon-only {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  padding: 12px;
  cursor: pointer;
}

.icon-only:hover {
  background: #1e293b;
  border-radius: 10px;
}

.logout:hover {
  background: rgba(255,0,0,0.2);
}

/* Main */
.main-content {
  flex: 1;
  padding: 30px;
  color: white;
}

/* Progress */
.progress-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 15px;
  width: 250px;
}

/* Courses */
.course-grid {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.card {
  background: white;
  color: black;
  padding: 20px;
  border-radius: 15px;
  width: 220px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

button {
  padding: 10px;
  border: none;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 8px;
  background: #667eea;
  color: white;
}

button:hover {
  opacity: 0.85;
}

/* =========================
   COURSE PAGE
========================= */
.course-page {
  display: flex;
  height: 100vh;
}

.course-sidebar {
  width: 250px;
  background: #222;
  padding: 20px;
}

.course-sidebar ul {
  list-style: none;
  margin-top: 20px;
}

.course-sidebar ul li {
  padding: 10px;
  cursor: pointer;
}

.course-sidebar ul li:hover {
  background: #444;
}

.video-section {
  flex: 1;
  padding: 20px;
  background: #f5f5f5;
  color: black;
}

.video-section video {
  width: 100%;
  border-radius: 10px;
}

/* =========================
   ADMIN PANEL
========================= */
.admin-box {
  background: rgba(255,255,255,0.1);
  padding: 20px;
  margin-top: 20px;
  border-radius: 10px;
}

.admin-box input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
}

.admin-box button {
  padding: 10px 15px;
  background: linear-gradient(45deg, #ff6a00, #ee0979);
  color: white;
  border: none;
  cursor: pointer;
}

/* Table */
table {
  width: 100%;
  margin-top: 15px;
  border-collapse: collapse;
}

td, th {
  padding: 10px;
  text-align: center;
}