/* === Ümumi Stil === */
body {
  background-color: #f9fafb;
  font-family: 'Inter', sans-serif;
  margin: 0;
  color: #1e293b;
  line-height: 1.6;
}



a {
  text-decoration: none;
}

/* === Auth Səhifələri === */
.auth-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.auth-header {
  padding: 20px;
  font-size: 24px;
  font-weight: 600;
  background-color: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.logo {
  color: #1e293b;
}

.auth-container {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-box {
  background: #ffffff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  width: 100%;
  max-width: 400px;
}

.auth-form label {
  display: block;
  margin-bottom: 15px;
  font-size: 14px;
}

.auth-form input {
  width: 94%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  font-size: 14px;
}

.auth-form button {
  width: 100%;
  padding: 12px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s;
}

.auth-form button:hover {
  background: #1e40af;
}

.auth-footer {
  text-align: center;
  margin-top: 15px;
}

/* === Dashboard Layout === */
.dashboard {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 220px;
  background-color: #0f172a;
  color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sidebar .logo {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  margin-top: 10px;
}

.sidebar nav ul {
  list-style: none;
  padding: 0;
  width: 100%;
}

.sidebar nav ul li {
  margin-bottom: 5px;
}

.sidebar nav ul li a {
  color: #e0e7ff;
  text-decoration: none;
  padding: 2px 10px;
  display: block;
  border-radius: 6px;
  transition: background 0.2s;
}

.sidebar nav ul li a:hover {
  background-color: #1e293b;
}
.dashboard-page .content {
  padding: 40px;
}

.content {
  flex-grow: 1;
  background-color: #f1f5f9;
  padding: 30px;
  overflow-y: auto;
}

.content-header {
  margin-bottom: 30px;
}

.content-header h2 {
  font-size: 24px;
  color: #1e293b;
  margin-bottom: 5px;
}

.content-header p {
  color: #475569;
}

.lesson-overview {
  background: white;
  border: 1px solid #e2e8f0;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.lesson-overview ul {
  list-style: none;
  padding: 0;
}

.lesson-overview li {
  margin-bottom: 8px;
  font-size: 15px;
}

.crypto-testbox {
  background: white;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.crypto-testbox h3 {
  margin-top: 0;
}

.crypto-testbox textarea {
  width: 100%;
  height: 100px;
  margin-top: 10px;
  padding: 10px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

.crypto-testbox button {
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 600;
  margin-top: 10px;
  margin-right: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

.crypto-testbox button:hover {
  background-color: #1d4ed8;
}


.subtitle {
  font-size: 15px;
  color: #64748b;
  margin-bottom: 20px;
}

.user-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.stat-box {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  flex: 1 1 180px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.stat-box h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #475569;
}

.stat-box p {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}


.lesson-page {
  background-color: #f9fafb;
  color: #1e293b;
  font-family: 'Inter', sans-serif;
  padding: 40px;
}

.lesson-container {
  max-width: 800px;
  margin: auto;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.lesson-header h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.lesson-content h2, .lesson-content h3 {
  margin-top: 25px;
}

.lesson-content ul {
  padding-left: 20px;
}

.example-box {
  background: #f1f5f9;
  padding: 15px;
  border-radius: 8px;
  font-family: monospace;
  white-space: pre;
}

.lesson-action {
  margin-top: 30px;
  text-align: center;
}

.complete-btn {
  background-color: #10b981;
  color: white;
  padding: 12px 24px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.complete-btn:hover {
  background-color: #059669;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-btn {
  background: #e2e8f0;
  border: none;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: 0.2s;
}

.tab-btn.active {
  background-color: #2563eb;
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}



.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.tab-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 10px 18px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: 0.3s ease;
  color: #334155;
}

.tab-btn:hover {
  background-color: #e0e7ff;
}

.tab-btn.active {
  background-color: #2563eb;
  color: white;
  border-color: #2563eb;
}


.tab-content {
  display: none;
  background: white;
  padding: 30px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  margin-bottom: 30px;
}

.tab-content.active {
  display: block;
}



#testResult {
  margin-top: 15px;
  font-weight: bold;
}


.error-box {
  background-color: #fee2e2;
  color: #b91c1c;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}


main.lessons-page .tab-content textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  resize: vertical;
  min-height: 80px;
  transition: all 0.2s ease;
  box-sizing: border-box;
  margin-bottom: 16px;
}

main.lessons-page .tab-content label {
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  margin-bottom: 6px;
  display: block;
}

main.lessons-page .tab-content button {
  background-color: #2563eb;
  color: white;
  font-weight: 600;
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
  margin-bottom: 16px;
}

main.lessons-page .tab-content button:hover {
  background-color: #1e40af;
}

main.lessons-page #testAnswer {
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background-color: #f8fafc;
  color: #1e293b;
  height: 44px;
  box-sizing: border-box;
  transition: 0.2s ease;
  margin-right: 10px;
}

main.lessons-page #testAnswer:focus {
  border-color: #2563eb;
  background-color: #fff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}


.logout-button {
  width: 100%;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.logout-button a {
  display: block;
  color: #fff;
  font-weight: 500;
  padding: 2px 12px;
  text-align: left;
  border-radius: 6px;
  transition: background 0.3s;
}

.logout-button a:hover {
  background-color: rgba(255,255,255,0.1);
}


.complete-box {
 
  padding: 50px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  font-family: 'Inter', sans-serif;
}

.complete-box h1 {
  font-size: 28px;
  color: #16a34a;
  margin-bottom: 15px;
}

.complete-box p {
  font-size: 16px;
  color: #334155;
}


main.lessons-page input[type="text"],main.lessons-page input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background-color: #f8fafc;
  color: #1e293b;
  transition: all 0.2s ease;
  box-sizing: border-box;
  margin-bottom: 16px;
}

main.lessons-page input[type="text"]:focus {
  outline: none;
  border-color: #2563eb;
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}


/* === Responsive Stil === */
@media (max-width: 1024px) {
  .dashboard {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
  }

  .sidebar nav ul {
    display: flex;
    flex-direction: row;
    gap: 12px;
    flex-wrap: wrap;
  }

  .sidebar nav ul li {
    margin: 0;
  }

  .dashboard-page .content {
    padding: 20px;
  }

  .lesson-container {
    padding: 20px;
  }

  .tabs {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .auth-box {
    padding: 20px;
  }

  .auth-header {
    font-size: 20px;
  }

  .tabs {
    flex-direction: column;
  }

  .tab-btn {
    width: 100%;
    text-align: left;
  }

  .user-stats {
    flex-direction: column;
  }

  .stat-box {
    width: 100%;
  }

  .lesson-container {
    padding: 16px;
  }

  .tab-content {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .content-header h2 {
    font-size: 20px;
  }

  .auth-box {
    box-shadow: none;
    border: none;
    padding: 20px 10px;
  }

  .lesson-header h1 {
    font-size: 22px;
  }

  .complete-btn {
    width: 100%;
  }

  .sidebar {
    flex-direction: column;
    align-items: flex-start;
  }

  .sidebar nav ul {
    flex-direction: column;
    width: 100%;
  }

  .sidebar nav ul li {
    width: 100%;
  }

  .logout-button {
    width: 100%;
    padding-top: 10px;
    border-top: none;
  }

  .tab-btn {
    font-size: 14px;
    padding: 10px;
  }
}

.menu-toggle {
  display: none;
  background: #0f172a;
  color: white;
  font-size: 18px;
  padding: 10px 16px;
  border: none;
  cursor: pointer;
  margin: 10px;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .sidebar {
    display: none;
    position: absolute;
    top: 55px;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: #0f172a;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }

  .sidebar.active {
    display: block;
  }

  .dashboard {
    flex-direction: column;
  }
}


a.lessoncheck,
a.lessoncheck:visited,
a.lessoncheck:active,
a.lessoncheck:hover {
  color: #000 !important;
  text-decoration: none;
}


a.link,
a.link:visited,
a.link:active,
a.link:hover {
  color: #000 !important;
  text-decoration: underline;
}


