/* ================= GLOBAL ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', Arial, sans-serif;
}

body {
  background: #f4f6fb;
  color: #1e293b;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ================= HEADER ================= */
.header,
header {
  background: #1e293b;
  color: #fff;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.logo {
  font-size: 24px;
  font-weight: 700;
}

nav,
.nav-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

nav a,
.nav-links a {
  color: #fff;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.3s;
}

nav a:hover,
.nav-links a:hover {
  background: rgba(255,255,255,0.2);
}

/* ================= HERO ================= */
.hero {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
}

.hero-buttons .btn {
  padding: 12px 30px;
  font-weight: 600;
  margin: 0 10px;
}

/* ================= BUTTONS ================= */
button,
.btn {
  padding: 10px 20px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: 0.3s;
}

button:hover,
.btn:hover {
  background: #1e40af;
}

.btn.secondary {
  background: #facc15;
  color: #1e293b;
}

/* ================= FORMS ================= */
input,
select,
textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 6px rgba(37,99,235,0.3);
  outline: none;
}

textarea {
  resize: vertical;
}

/* ================= CARDS ================= */
.card {
  background: #fff;
  padding: 25px 20px;
  margin: 15px 0;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.15);
}

.card h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.card h3,
.card h4 {
  color: #1e40af;
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  margin: 5px 0;
}

/* ================= AUTH PAGES ================= */
.auth-card {
  max-width: 450px;
  margin: 80px auto;
}

/* ================= DASHBOARD ================= */
.dashboard,
section.dashboard {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

.dashboard h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #1e40af;
}

.dashboard h3 {
  font-size: 28px;
  margin: 20px 0 10px;
  color: #2563eb;
}

/* ================= TEST GRID ================= */
.test-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}

/* ================= RESULTS ================= */
.results-section {
  margin-top: 12px;
  background: #f8fafc;
  padding: 12px;
  border-radius: 8px;
}

/* ================= TABLE ================= */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th,
td {
  padding: 8px;
  border: 1px solid #e5e7eb;
  font-size: 13px;
}

th {
  background: #f1f5f9;
}

/* ================= SUBSCRIPTION ================= */
.subscription-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.subscription-cards .card {
  flex: 1;
  min-width: 220px;
  text-align: center;
}

/* ================= FOOTER ================= */
footer,
.footer {
  background: #1e293b;
  color: #fff;
  padding: 20px;
  text-align: center;
  margin-top: auto;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .header,
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .test-grid {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 18px;
  }
}
body {
  margin: 0;
  font-family: Arial;
  background: #f4f6fb;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  background: #1e40af;
  color: white;
}

.profile img {
  width: 30px;
  border-radius: 50%;
}

.exam-container {
  display: flex;
  padding: 20px;
}

.question-area {
  width: 70%;
  background: white;
  padding: 20px;
  border-radius: 8px;
}

.palette {
  width: 30%;
  margin-left: 20px;
  background: white;
  padding: 20px;
  border-radius: 8px;
}

.palette div button {
  margin: 5px;
  width: 40px;
  height: 40px;
}

.nav-btns {
  margin-top: 20px;
}

.submit {
  background: red;
  color: white;
}

.top-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:#111827;
  color:#fff;
  padding:10px 20px;
}

.profile{
  display:flex;
  align-items:center;
  gap:10px;
}

.profile img{
  width:42px;
  height:42px;
  border-radius:50%;
  border:2px solid #4f46e5;
  object-fit:cover;
}

.profile .info{
  line-height:1.2;
}

.profile span{
  font-weight:600;
}

.profile small{
  font-size:12px;
  color:#c7d2fe;
}

#timer{
  font-size:18px;
  font-weight:bold;
}

.mode{
  font-size:13px;
  background:#1f2933;
  padding:6px 10px;
  border-radius:6px;
}
