@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/***** CSS RESET *****/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  background: #f8fafc;
  font-family: 'Inter', sans-serif;
}

body {
  color: #1a202c;
  line-height: 1.6;
}

.container {
  width: 100%;
  margin: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Profile card */
.profile-card-wide {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.user-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-info-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 48px;
  height: 48px;
  background: #3b82f6;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
}

.user-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 2px;
}

.username {
  font-size: 0.875rem;
  color: #64748b;
}

.log-out {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

/* Profile details section */
.profile-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.info-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 0.875rem;
  color: #1a202c;
  font-weight: 600;
}

/* Responsive for profile details */
@media (max-width: 768px) {
  .profile-details {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Dashboard cards */
.dashboard-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.notifications-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.notifications-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.notifications-empty {
  color: #64748b;
  font-size: 0.875rem;
}

/* Section titles */
.section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 20px;
}

/* Stats cards */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.stat-card-icon {
  margin-bottom: 12px;
}

.image-logo {
  width: 64px;
  height: 64px;
}

.stat-title {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 8px;
  font-weight: 500;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a202c;
}

/* Performance metrics */
.metrics-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.metric-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

.metric-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.metric-icon {
  width: 16px;
  height: 16px;
  color: #64748b;
}

.metric-title {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 4px;
}

.metric-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 12px;
}

.metric-change {
  font-size: 0.75rem;
  color: #10b981;
}

.progress-container {
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  margin-top: 12px;
}

.progress-bar {
  height: 100%;
  background: #3b82f6;
  border-radius: 2px;
}

/* Chart container */
#chart-container {
  background: white;
  border-radius: 8px;
  min-height: 400px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  display: flex;
  justify-content: center;
  align-items: center;
}

#chart-container svg {
  max-width: 100%;
  height: auto;
}

/* Bottom row layout */
.dashboard-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Skills card */
.card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 20px;
}

.topic-list {
  list-style: none;
}

.topic-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.topic-item:last-child {
  border-bottom: none;
}

.topic-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topic-number {
  width: 24px;
  height: 24px;
  background: #3b82f6;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.topic-name {
  font-size: 0.875rem;
  color: #1a202c;
  font-weight: 500;
}

.topic-score {
  font-size: 0.875rem;
  color: #10b981;
  font-weight: 600;
}

/* Responsive design */
@media (max-width: 768px) {
  .stats-cards {
    grid-template-columns: 1fr;
  }
  
  .metrics-container {
    grid-template-columns: 1fr;
  }
  
  .dashboard-bottom-row {
    grid-template-columns: 1fr;
  }
  
  .info-items {
    grid-template-columns: 1fr;
  }
}

/* Login styles */
#login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #f8fafc;
  padding: 20px;
}

#login-container > div {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  width: 100%;
  max-width: 420px;
}

#login-container h2 {
  text-align: center;
  margin-bottom: 32px;
  color: #1a202c;
  font-size: 1.5rem;
  font-weight: 600;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: #f8fafc;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #3b82f6;
  background: white;
}

.form-group input::placeholder {
  color: #64748b;
}

#login-form button {
  width: 100%;
  background: #3b82f6;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

#login-form button:hover {
  background: #2563eb;
}

#error-message {
  background: #fee2e2;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  border: 1px solid #fecaca;
  margin-bottom: 20px;
}
