/* ====== RESET ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: #0f172a;
  color: #f8fafc;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
.login-body {
  background-color: #0f172a;
  color: #f8fafc;
  display: flex;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
}

/* ====== TYPOGRAPHY ====== */
h1, h2, h3 {
  color: #38bdf8;
  margin-bottom: 1rem;
}

p, span, label {
  color: #cbd5e1;
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-primary {
  background-color: #38bdf8;
  color: #0f172a;
}

.btn-primary:hover {
  background-color: #0ea5e9;
}

.btn-secondary {
  background-color: #22c55e;
  color: #fff;
}

.btn-secondary:hover {
  background-color: #16a34a;
}
.dashboard-container {
  display: flex;
  background-color: #334155;
  min-height: 100vh;



}

/* ====== HEADER ====== */
header {
  width: 100%;
  background-color: #1e293b;
  padding: 1rem 1rem;

  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
header h1 {
  font-size: 2rem;
  color: #38bdf8;
}
/* ====== SIDEBAR ====== */
.sidebar {
  width: 220px;
  background-color: #1e293b;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100vh;
}

.sidebar a {
  color: #f8fafc;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.sidebar a:hover {
  background-color: #334155;
}

/* ====== MAIN DASHBOARD CONTENT ====== */
.main-content {
  flex: 1;
  padding: 2rem;
  background-color: #0f172a;
  min-height: 100vh;
}

/* ====== CARDS ====== */
.card-container {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.card {
  flex: 1 1 200px;
  background-color: #1e293b;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-3px);
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: #38bdf8;
}

.card p {
  font-size: 1.25rem;
  font-weight: bold;
  color: #f8fafc;
}

/* ====== TABLES ====== */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: #1e293b;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

table th, table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #334155;
}

table th {
  background-color: #0f172a;
  color: #38bdf8;
  font-weight: 600;
}

table tr:hover {
  background-color: #334155;
}

/* ====== LOGIN / REGISTER ====== */
.login-container {
  background-color: #1e293b;
  padding: 2rem;
  border-radius: 10px;
  width: 350px;
  max-width: 90%;
  margin: 3rem auto;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.login-container input {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  border: 1px solid #334155;
  background-color: #0f172a;
  color: #f8fafc;
}
/* ...existing code... */
.user-agreement {
  display: flex;
  align-items: center;

  margin: 12px 0;
}
/* ...existing code... */
.login-container input:focus {
  outline: none;
  border-color: #38bdf8;
}

.login-container button {
  width: 100%;
  padding: 0.8rem;
  border-radius: 6px;
  border: none;
  background-color: #38bdf8;
  color: #0f172a;
  font-weight: bold;
  cursor: pointer;
}

.login-container button:hover {
  background-color: #0ea5e9;
}
.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0;
}


/* ====== SURF PAGE ====== */
#surfFrame {
  width: 100%;
  height: 500px;
  border-radius: 12px;
  border: 2px solid #334155;
  margin-bottom: 1rem;
}

#timer {
  font-size: 18px;
  font-weight: bold;
  color: #f87171;
  margin-bottom: 1rem;
}

#nextBtn {
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  border: none;
  background-color: #22c55e;
  color: #fff;
  cursor: pointer;
}

#nextBtn:hover {
  background-color: #16a34a;
}

/* ====== FOOTER ====== */
footer {
  width: 100%;
  text-align: center;
  padding: 12px;
  background-color: #1e293b;
  font-size: 0.85rem;
  color: #f8fafc;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
  body {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
    padding: 10px;
  }

  .card-container {
    flex-direction: column;
  }

  table th, table td {
    padding: 10px;
  }

  #surfFrame {
    height: 300px;
  }
}

.dashboard-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.add-btn {
  background-color: #3b82f6;
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}
.surf-btn {
  background-color: #10b981;
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}
/* Button styles */
.btn {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
.btn.primary { background: #3b82f6; color: #fff; }
.btn.secondary { background: #64748b; color: #fff; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #1e293b;
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 350px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.modal-content input {
  width: 100%;
  padding: 10px;
  margin: 12px 0;
  border-radius: 6px;
  border: none;
}
.close-btn {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 22px;
  cursor: pointer;
}
#linkMessage {
  font-size: 14px;
  margin-bottom: 10px;
}
#linkMessage.success { color: #22c55e; }
#linkMessage.error { color: #ef4444; }


.banner-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;

  margin: 15px;;


}
.banner-item {
  background: white;
  color: #0ea5e9;
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 2px 8px rgba(30,41,59,0.08);
  display: flex;
  flex-direction: column;
}
.banner-item {
  background: white;
  color: #0ea5e9;
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 2px 8px rgba(30,41,59,0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s;
}
.banner-item:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 4px 16px rgba(30,41,59,0.15);
}
.banner-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 6px;
}
.banner-link {
  color: #38bdf8;
  text-decoration: underline;
  word-break: break-all;
  margin-bottom: 4px;
}
.banner-desc {
  font-size: 0.98rem;
  color: #cbd5e1;
}

/* alerts toast */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.toast {
  position: relative;
  overflow: hidden;
}

.toast::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
}


