@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --k2c-blue: #2E7BA6;
  --k2c-blue-dark: #1f5a7c;
  --k2c-orange: #F4511E;
  --k2c-orange-dark: #d84315;
  --k2c-teal: #3E8E8A;
  --k2c-bg: #f2f6f9;
  --k2c-text: #2b2b2b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

body {
  background: var(--k2c-bg);
  min-height: 100vh;
  color: var(--k2c-text);
}

/* ---------- Login page (glass card style) ---------- */

body.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url('../assets/ChatGPT Image Jul 22, 2026, 01_31_48 PM.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.login-box {
  background: rgba(15, 18, 22, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 45px 38px;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  width: 340px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
  color: white;
}

.login-box h1 {
  color: white;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.login-box .subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  margin-bottom: 16px;
}

.login-box .accent-line {
  width: 60px;
  height: 3px;
  margin: 0 auto 26px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--k2c-teal), var(--k2c-orange));
}

.login-box label {
  display: block;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 6px;
}

.login-box input[type="email"],
.login-box input[type="password"],
.login-box input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  font-size: 14px;
  background: rgba(255,255,255,0.06);
  color: white;
}

.login-box input::placeholder {
  color: rgba(255,255,255,0.4);
}

.login-box input:focus {
  outline: none;
  border-color: var(--k2c-blue);
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 40px;
}

#toggle-password {
  position: absolute;
  right: 12px;
  top: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  opacity: 0.6;
  color: white;
}

#toggle-password:hover {
  opacity: 1;
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 12.5px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0;
  cursor: pointer;
}

.remember-me input {
  width: auto;
  margin: 0;
  cursor: pointer;
}

.row-between a {
  color: #4fa3e3;
  text-decoration: none;
}

.row-between a:hover {
  text-decoration: underline;
}

.login-box button#login-btn {
  width: 100%;
  padding: 13px;
  background: var(--k2c-blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.login-box button#login-btn:hover {
  background: var(--k2c-blue-dark);
  transform: translateY(-1px);
}

#error-msg {
  font-size: 13px;
  margin-top: 12px;
  min-height: 16px;
  font-weight: 500;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  margin: 22px 0;
}

.divider::before, .divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.divider span {
  padding: 0 12px;
}

.create-account-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--k2c-blue);
  border-radius: 8px;
  color: #4fa3e3;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

.create-account-btn:hover {
  background: rgba(79, 163, 227, 0.1);
}

.footer-note {
  margin-top: 22px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

/* ---------- Dashboard pages (admin / learner) ---------- */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 40px;
  background: white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar img { height: 42px; }

.topbar button {
  background: var(--k2c-orange);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.topbar button:hover {
  background: var(--k2c-orange-dark);
}

.dashboard {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 24px;
}

.dashboard h1 {
  color: var(--k2c-blue);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 24px;
  border-left: 5px solid var(--k2c-orange);
  padding-left: 14px;
}

.dashboard h2 {
  color: var(--k2c-blue-dark);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.form-card {
  background: white;
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(46, 123, 166, 0.1);
  margin-bottom: 36px;
}

.form-card input, .form-card select {
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 12px;
  border: 1.5px solid #e0e6ea;
  border-radius: 8px;
  font-size: 14px;
  background: #fafcfd;
}

.form-card input:focus, .form-card select:focus {
  outline: none;
  border-color: var(--k2c-blue);
}

.form-card button {
  background: var(--k2c-blue);
  color: white;
  border: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.form-card button:hover {
  background: var(--k2c-blue-dark);
}

#form-msg {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(46, 123, 166, 0.1);
}

th, td {
  text-align: left;
  padding: 14px 16px;
  font-size: 14px;
}

th {
  background: var(--k2c-blue);
  color: white;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tbody tr {
  border-bottom: 1px solid #eef2f5;
  transition: background 0.15s;
}

tbody tr:hover {
  background: #f7fafc;
}

tbody tr:last-child {
  border-bottom: none;
}

.status-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.status-pending { background: #fff3e0; color: #e65100; }
.status-accepted { background: #e6f4ea; color: #1e7e34; }
.status-rejected { background: #fdecea; color: #c62828; }

.edit-btn, .delete-btn {
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 6px;
}

.edit-btn {
  background: #e3f2fd;
  color: var(--k2c-blue-dark);
}

.edit-btn:hover {
  background: #bbdefb;
}

.delete-btn {
  background: #fdecea;
  color: #c62828;
}

.delete-btn:hover {
  background: #f8c9c4;
}

.layout {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  gap: 24px;
  padding: 0 24px;
  align-items: flex-start;
}

.layout .dashboard {
  flex: 1;
  margin: 40px 0;
  padding: 0;
  max-width: none;
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: white;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(46, 123, 166, 0.1);
  padding: 20px;
  margin: 40px 0;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
}

.sidebar h2 {
  color: var(--k2c-blue-dark);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
}

.sidebar input {
  width: 100%;
  padding: 9px 12px;
  margin-bottom: 12px;
  border: 1.5px solid #e0e6ea;
  border-radius: 8px;
  font-size: 13px;
  background: #fafcfd;
}

.sidebar input:focus {
  outline: none;
  border-color: var(--k2c-blue);
}

.sidebar ul {
  list-style: none;
  overflow-y: auto;
  flex: 1;
  margin-bottom: 14px;
}

.sidebar li {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 4px;
  transition: background 0.15s;
}

.sidebar li:hover {
  background: #f2f6f9;
}

.sidebar li.active {
  background: var(--k2c-blue);
  color: white;
}

.sidebar li .learner-name {
  font-weight: 600;
  display: block;
}

.sidebar li .learner-email {
  font-size: 11px;
  opacity: 0.75;
  display: block;
}

.sidebar #show-all-btn {
  width: 100%;
  background: var(--k2c-orange);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.sidebar #show-all-btn:hover {
  background: var(--k2c-orange-dark);
}

/* Responsive: stack sidebar above content on small screens */
@media (max-width: 800px) {
  .layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    position: static;
    max-height: 300px;
  }
}
.form-card textarea {
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 12px;
  border: 1.5px solid #e0e6ea;
  border-radius: 8px;
  font-size: 14px;
  background: #fafcfd;
  font-family: inherit;
  resize: vertical;
}

.form-card textarea:focus {
  outline: none;
  border-color: var(--k2c-blue);
}

.hint-text {
  font-size: 12.5px;
  color: #7a8894;
  margin-bottom: 14px;
}

.unread-badge {
  display: inline-block;
  background: var(--k2c-orange);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
}

.no-updates {
  color: #8a97a3;
  font-size: 14px;
  margin-bottom: 24px;
}

.update-card {
  background: white;
  border-left: 4px solid #dfe6ea;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 3px 12px rgba(46, 123, 166, 0.06);
  cursor: pointer;
  transition: transform 0.1s;
}

.update-card:hover {
  transform: translateX(2px);
}

.update-card.unread {
  border-left-color: var(--k2c-orange);
  background: #fff9f6;
}

.update-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.update-university {
  font-size: 12px;
  font-weight: 700;
  color: var(--k2c-blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.new-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--k2c-orange);
}

.update-message {
  font-size: 14px;
  color: var(--k2c-text);
  margin-bottom: 6px;
}

.update-date {
  font-size: 11px;
  color: #a0acb5;
}