* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #eef4ff, #f8fbff);
  color: #17315f;
}

header {
  text-align: center;
  padding: 70px 20px 30px;
}

header h1 {
  font-size: 48px;
  margin-bottom: 12px;
}

header p {
  font-size: 18px;
  color: #5f6f8c;
}

main {
  display: flex;
  justify-content: center;
  padding: 30px 20px 60px;
}

.tool-card {
  width: 100%;
  max-width: 420px;
  background: white;
  padding: 36px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 18px 45px rgba(40, 78, 140, 0.15);
  transition: 0.3s;
}

.tool-card:hover {
  transform: translateY(-6px);
}

.icon {
  font-size: 54px;
  margin-bottom: 18px;
}

.tool-card h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

.tool-card p {
  line-height: 1.6;
  color: #66758f;
  margin-bottom: 28px;
}

button {
  border: none;
  background: #2f6fed;
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.25s;
}

button:hover {
  background: #1f56c7;
  transform: scale(1.03);
}
.hidden {
  display: none;
}

.tracker {
  width: 100%;
  max-width: 900px;
  background: white;
  padding: 36px;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(40, 78, 140, 0.15);
}

.tracker h2 {
  margin-bottom: 24px;
  font-size: 30px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: bold;
  color: #29466f;
}

.form-group input {
  padding: 12px 14px;
  border: 1px solid #d7dfeb;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
}

.form-group input:focus {
  border-color: #2f6fed;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 24px 0;
}

.results {
  margin-top: 30px;
  padding: 24px;
  border-radius: 18px;
  background: #f7faff;
}

.results h3 {
  margin-bottom: 18px;
}

.results p {
  margin: 10px 0;
}

.progress-list {
  margin-top: 24px;
}

.progress-item {
  margin-bottom: 18px;
}

.progress-item span {
  display: block;
  margin-bottom: 7px;
  font-weight: bold;
}

.progress-bar {
  width: 100%;
  height: 14px;
  background: #e7edf7;
  border-radius: 20px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: #2f6fed;
  border-radius: 20px;
  transition: width 0.5s ease;
}

.chart-section {
    margin-top: 28px;
    margin-bottom: 28px;
}

.progress-chart {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    height: 220px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    border: 1px solid #e4eaf3;
}

.chart-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.chart-bar {
    width: 100%;
    max-width: 50px;
    background: #2f6fed;
    border-radius: 10px 10px 0 0;
    min-height: 4px;
    transition: 0.4s;
}

.chart-value {
    font-weight: bold;
    margin-bottom: 6px;
}

.chart-date {
    margin-top: 8px;
    font-size: 12px;
    color: #6d7b92;
}
@media (max-width: 700px) {
  header h1 {
    font-size: 36px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .tracker {
    padding: 24px;
  }


.chart-date {
    margin-top: 8px;
    font-size: 12px;
    color: #6d7b92;
}

}
.history-section {
    margin-top: 30px;
    margin-bottom: 30px;
}

.history-table-wrapper {
    overflow-x: auto;
    margin-top: 15px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 14px;
    overflow: hidden;
}

.history-table th,
.history-table td {
    padding: 12px 14px;
    text-align: center;
    border-bottom: 1px solid #e7edf5;
}

.history-table th {
    background: #eef4ff;
    color: #17315f;
    font-weight: 700;
}

.history-table tbody tr:hover {
    background: #f7faff;
}

.history-table td:first-child,
.history-table th:first-child {
    text-align: left;
}

@media (max-width: 700px) {
    .history-table {
        min-width: 700px;
    }
}

.recommendation-box {
  margin: 20px 0;
  padding: 20px 24px;
  background: #f0f6ff;
  border-left: 5px solid #3478f6;
  border-radius: 12px;
}

.recommendation-box h3 {
  margin: 0 0 10px;
  color: #17315f;
  font-size: 20px;
}

.recommendation-box p {
  margin: 0;
  line-height: 1.6;
  color: #334155;
}

/* ===== TEST HISTORY ===== */

.attempts-history {
  margin-top: 28px;
  padding: 22px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.attempts-history h3 {
  margin: 0 0 18px;
  color: #17315f;
  font-size: 22px;
}

.attempt-item {
  background: #f6f9ff;
  border-left: 4px solid #3478f6;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 12px;
}

.attempt-item strong {
  display: block;
  color: #17315f;
  margin-bottom: 7px;
  font-size: 16px;
}

.attempt-item p {
  margin: 0;
  color: #334155;
  line-height: 1.6;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.header-avatar {
  width: 150px;
  height: 150px;
  object-fit: contain;
  flex-shrink: 0;
}

.header-text {
  text-align: left;
}

.header-text h1 {
  margin: 0 0 8px;
}

.header-text p {
  margin: 0;
}