/* Result Header Styles */
.result-header {
  text-align: center;
  margin: -0.2rem -0.4rem 0.4rem -0.4rem;
  padding: 0.4rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.result-header h2 {
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0 0 0.2rem 0;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.15px;
}

.result-header .test-name {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.8);
  margin: 0;
}

.result-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(33,150,243,0.1), rgba(76,175,80,0.1));
  z-index: 0;
}

.result-header-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.result-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
  background: linear-gradient(135deg, #fff 30%, #bbdefb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 1px 1px 8px rgba(255,255,255,0.2);
  line-height: 1;
}

.result-header .test-name {
  font-size: 1.5rem;
  color: #bbdefb;
  margin-top: 1rem;
  font-weight: 600;
  opacity: 0.9;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  padding: 0.5rem 2rem;
  background: rgba(255,255,255,0.1);
  border-radius: 50px;
  display: inline-block;
  backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
  .result-header {
    padding: 2rem 1rem;
    margin: -1rem -1rem 1.5rem -1rem;
  }
  
  .result-header h2 {
    font-size: 2.5rem;
  }
  
  .result-header .test-name {
    font-size: 1.2rem;
    padding: 0.4rem 1.5rem;
  }
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
}

.modal-content {
  position: relative;
  background: white;
  margin: 2rem auto;
  padding: 1.5rem;
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.modal-title {
  font-size: 1.5rem;
  color: #2196f3;
  font-weight: bold;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 0.5rem;
}

.modal-close:hover {
  color: #ff9800;
}

.modal-body {
  line-height: 1.6;
  color: #333;
}

.modal-body h2 {
  color: #2196f3;
  margin: 1.5rem 0 1rem;
  font-size: 1.2rem;
}

.modal-body p {
  margin-bottom: 1rem;
}

.modal-body ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.modal-body li {
  margin-bottom: 0.5rem;
}

.contact-card {
  background: linear-gradient(135deg, #e3f2fd 0%, #fff3e0 100%);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  font-size: 2rem;
  color: #25D366;
}

.contact-details {
  flex: 1;
}

.contact-details h3 {
  margin: 0 0 0.5rem 0;
  color: #333;
}

.contact-link {
  display: inline-block;
  color: #25D366;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: #128C7E;
}

/* Dashboard Modal Styles */
.dashboard-modal .modal-body {
  padding: 0 1rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  padding: 1rem 0;
}

.dashboard-card {
  background: linear-gradient(135deg, #f5f9ff 0%, #fff 100%);
  border: 1px solid #e0e9ff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #bbdefb;
}

.dashboard-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.dashboard-card h3 {
  color: #1976d2;
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.dashboard-card p {
  color: #666;
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .modal-content {
    margin: 1rem;
    padding: 1rem;
    width: auto;
  }
  
  .modal-title {
    font-size: 1.2rem;
  }
  
  .contact-card {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-card {
    padding: 1rem;
  }
}