/* === GLOBAL THEME COLORS === */
:root {
  --primary: #5dade2;        /* Matches logo accent */
  --primary-light: #cfe8ff; /* Soft blue glow like logo */
  --primary-dark: #3498db;  /* Deeper blue for hover */
  --secondary: #f4f9ff;     /* Gentle background */
  --text: #111;             /* Dark text for contrast */
  --border: #dceaf7;
  --success: #4caf50;
  --danger: #e74c3c;
  --white: #fff;
  --radius: 14px;
}

/* === RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", Arial, sans-serif;
}

body {
  background: var(--secondary);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

/* === NAVBAR === */
.navbar {
  background: var(--primary-light);
  color: #000;
  display: flex;
  justify-content: space-between; 
  align-items: center;
  height: 80px;
  padding: 0 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-bottom: 3px solid var(--primary-dark);
  gap: 20px;
}

/* LOGO AREA */
.logo-area {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo-area .logo {
  height: 65px;          
  max-height: 80px;      
  width: auto;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.08));
  transition: transform 0.3s ease;
}

.logo-area .logo:hover {
  transform: scale(1.05);
}

/* Responsive scaling */
@media (max-width: 768px) {
  .logo-area .logo {
    height: 55px;
  }
}

@media (max-width: 480px) {
  .logo-area .logo {
    height: 45px;
  }
}

/* Links wrapper */
.navbar-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Navbar links - UPDATED STYLE */
.navbar-links a {
  color: #000;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 15px;
  border-radius: var(--radius);
  position: relative;
  transition: color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* Hover underline + soft background + glow */
.navbar-links a:hover,
.navbar-links a:focus {
  color: var(--primary-dark);
  background-color: rgba(90, 168, 230, 0.15);
  box-shadow: 0 2px 8px rgba(90, 168, 230, 0.3);
  outline: none;
}

.navbar-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  background: var(--primary-dark);
  left: 50%;
  bottom: 5px;
  border-radius: 2px;
  transition: width 0.3s ease, left 0.3s ease;
}

.navbar-links a:hover::after,
.navbar-links a:focus::after {
  width: 70%;
  left: 15%;
}

/* Navbar button (login, etc.) */
.navbar button {
  background: #fff;
  border: 2px solid var(--primary-dark);
  padding: 10px 18px;
  border-radius: var(--radius);
  color: #000;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: center;
}
.navbar button:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* === HERO SECTION (Landing page) === */
.hero {
  background: linear-gradient(to bottom right, var(--primary-light), var(--white));
  text-align: center;
  padding: 80px 20px;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  color: var(--text);
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: auto;
  margin-bottom: 25px;
}

.cta-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}
.cta-btn:hover {
  background: var(--primary-dark);
}

/* === FEATURES SECTION (Landing page) === */
.features {
  padding: 60px 20px;
  text-align: center;
}

.features h2 {
  margin-bottom: 40px;
}

.feature-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.feature-card {
  background: var(--white);
  padding: 25px;
  flex: 1 1 250px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

/* === ABOUT SECTION (Landing page) === */
.about {
  background: var(--white);
  padding: 50px 20px;
  text-align: center;
}

.about p {
  max-width: 700px;
  margin: auto;
}

/* === FOOTER (Landing page) === */
.footer {
  text-align: center;
  padding: 20px;
  background: var(--primary-light);
  font-size: 0.9rem;
  color: var(--text);
}

/* === CONTAINER (forms, content) === */
.container {
  max-width: 800px;
  margin: 50px auto;
  background: #fff;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  border: 2px solid var(--border);
}

h2 {
  margin-bottom: 20px;
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  color: #000;
  text-shadow: 1px 1px #cce7ff;
}

/* === FORM ELEMENTS === */
input, select, textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-size: 14px;
  transition: all 0.3s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary-dark);
  outline: none;
  box-shadow: 0 0 6px rgba(90, 168, 230, 0.4);
}

/* === BUTTONS === */
button {
  background: var(--primary);
  color: #000;
  padding: 14px;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  transition: background 0.3s ease, transform 0.2s ease;
}
button:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* === TABLES === */
.table-wrapper {
  margin-top: 20px;
  overflow-x: auto;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  padding: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table thead {
  background: var(--primary);
  color: #000;
  font-weight: 700;
}

table th, table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
}

table tbody tr:hover {
  background: #f0f8ff;
}

/* === BUTTON VARIANTS === */
.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-success:hover { background: #3e9b47; }

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover { background: #c0392b; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 15px;
    height: auto;
    padding: 20px;
  }

  .logo-container {
    justify-content: center;
    width: 100%;
  }

  .navbar-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 50%;
  }

  .navbar a {
    display: block;
    width: 100%;
    text-align: center;
    margin: 5px 0;
  }

  .navbar button {
    display: block;
    margin: 10px auto 0;
    width: 80%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    margin: 25px auto;
    padding: 18px;
  }
  h2 {
    font-size: 22px;
  }
}