/* ================================
   BASE + GLOBAL STYLES
================================ */
body {
  font-family: 'Poppins', sans-serif;
  background: #f9f9fb;
  margin: 0;
  color: #333;
}

a {
  text-decoration: none !important;
  color: inherit;
}

/* ================================
   NAVBAR
================================ */
.navbar {
  background: #fff;
  color: #d4ad68;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.navbar img {
  width: 70px;
}

.navbar a {
  color: #d4ad68;
  font-weight: 700;
  margin: 0 10px;
}

/* ================================
   BUTTONS
================================ */
.btn {
  background-color: #800080;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover {
  background-color: #a020a0;
  transform: translateY(-2px);
}

.btn-primary {
  background-color: #007BFF;
  color: white;
  border-radius: 8px;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.btn-success {
  background: #28a745;
  color: white;
}

.btn-outline-secondary {
  border-radius: 8px;
}

/* Modern Create Button */
.btn-create-modern {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #6a0dad;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  margin-bottom: 12px;
  transition: 0.25s ease;
}

.btn-create-modern:hover {
  background: #5a0aa3;
  transform: translateY(-2px);
}

.btn-create-modern span {
  font-size: 1.4rem;
  font-weight: bold;
}

/* ================================
   DASHBOARD
================================ */
.dashboard-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-left: 50px;
  text-align: center;
}

.dashboard-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 20px;
  padding: 50px;
}

/* Card */
.card {
  background: #ffffff;
  padding: 22px;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

.card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 15px;
}

/* Lists */
.card ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.card li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card li:last-child {
  border-bottom: none;
}

/* Role tag */
.role-label {
  background: #ded3f4;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #5a2e9c;
  font-weight: 600;
}

/* List item sections */
.item-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.inline-form {
  display: inline;
}

/* Edit/Delete badges */
.action-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: 0.2s ease;
}

.action-btn.edit {
  background: #007bff;
  color: #fff;
}

.action-btn.edit:hover {
  background: #0056b3;
}

.action-btn.delete {
  background: #dc3545;
  color: #fff;
}

.action-btn.delete:hover {
  background: #b51f2f;
}

button:focus {
  outline: none;
}

/* ================================
   FORMS
================================ */
input[type="text"],
input[type="password"],
input[type="date"],
input[type="url"],
input[type="file"],
textarea {
  width: 100%;
  max-width: 500px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 15px;
  transition: 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #d4ad68;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.4);
}

/* ================================
   MINUTES PAGE
================================ */
.minutes-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  margin-bottom: 20px;
  transition: 0.2s ease;
}

.minutes-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.minutes-card b {
  font-size: 1.1rem;
}

.minutes-card small {
  color: #777;
}

.minutes-card p {
  color: #555;
  margin: 10px 0;
}

/* ================================
   LOGIN PAGE
================================ */
.login-container {
  max-width: 400px;
  margin: 50px auto;
  padding: 50px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  text-align: center;
}

.login-container h2 {
  margin-bottom: 25px;
  
}

.login-form .form-group {
  margin-bottom: 20px;
  text-align: left;
}

.input-field {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
}

/* LOGIN BUTTONS */
.btn-primary {
  background-color: #800080 !important;
  padding: 10px;
  border-radius: 8px;
  transition: 0.3s;
  
}

.btn-primary:hover {
  background-color: #a020a0 !important;
}

.info-text {
  margin-top: 15px;
  color: #666;
}

/* ================================
   ADMIN PAGES
================================ */
.admin-page {
  margin-top: 40px;
  max-width: 900px;
}

.page-title {
  font-weight: 700;
  color: #333;
}

.custom-card {
  border-radius: 10px;
  border: 1px solid #e2e2e2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.custom-table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.custom-table td {
  vertical-align: middle;
}

.form-card {
  max-width: 550px;
  margin: auto;
}



/* ================================
   LECTURES
================================ */

/* -------- Large Tablets (max-width: 1200px) -------- */
@media (max-width: 1200px) {
  .dashboard-container {
    padding: 30px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .dashboard-title {
    padding-left: 30px;
  }
}

/* -------- Tablets (max-width: 992px) -------- */
@media (max-width: 992px) {

  .navbar {
    padding: 12px 20px;
  }

  .navbar img {
    width: 55px;
  }

  .dashboard-container {
    padding: 20px;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .dashboard-title {
    font-size: 1.7rem;
    padding-left: 20px;
  }
}

/* -------- Mobile Landscape (max-width: 768px) -------- */
@media (max-width: 768px) {

  /* Navbar stacks */
  .navbar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .navbar a {
    margin: 5px 8px;
  }

  .dashboard-container {
    padding: 15px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .dashboard-title {
    font-size: 1.5rem;
    padding-left: 0;
    text-align: center;
  }

  .card {
    padding: 18px;
  }

  input,
  textarea {
    max-width: 100%;
  }
}

/* -------- Mobile Portrait (max-width: 576px) -------- */
@media (max-width: 576px) {

  .navbar img {
    width: 50px;
  }

  .dashboard-container {
    grid-template-columns: 1fr !important;
    padding: 10px;
  }

  .card {
    padding: 15px;
    border-radius: 12px;
  }

  .card h3 {
    font-size: 1.2rem;
  }

  .action-btn {
    padding: 4px 8px;
    font-size: 0.75rem;
  }

  .btn,
  .btn-create-modern {
    width: 100%;
    text-align: center;
  }
}


/* FILTER BAR LAYOUT (matches your old style but aligned) */
.filter-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  margin-top: 15px;
}

.filter-item {
  display: flex;
  flex-direction: column;
}

.filter-item label {
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.filter-item input {
  width: 220px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* Reset button alignment */
.reset-item {
  display: flex;
  align-items: flex-end;
}

.reset-item button {
  height: 45px;
}

/* Mobile fix */
@media (max-width: 600px) {
  .filter-item input {
    width: 100%;
  }
}


