:root {
  --main-bg: linear-gradient(to right, #111111, #5c1d4e, #792c78, #df0e9a);
  --secondary-bg: linear-gradient(
    135deg,
    var(--main-dark-color) 0%,
    var(--main-dark-color-secondary) 100%
  );
  --main-dark-color: #111111;
  --main-dark-color-secondary: #5c1d4e;
  --main-light-color: #df0e9a;
  --main-white: #f8f9fa;
  --main-gray: #888;
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--secondary-bg);
  color: var(--main-white);
  min-height: 100vh;
}

.main-container {
  padding: 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.header {
  text-align: center;
  margin-bottom: 40px;
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  background: linear-gradient(
    45deg,
    var(--main-light-color),
    var(--main-white)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#testsTitle {
  font-size: 2rem;
  margin-bottom: 10px;
  background: linear-gradient(
    90deg,
    var(--main-light-color) 0%,
    var(--main-white) 50%,
    var(--main-light-color) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.test-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 25px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  backdrop-filter: blur(10px);
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.test-card:hover {
  transform: translateY(-5px);
  border-color: var(--main-light-color);
  box-shadow: 0 15px 30px rgba(223, 14, 154, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.test-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--main-light-color);
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(223, 14, 154, 0.3);
  padding-bottom: 10px;
}

.test-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.test-description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.test-info {
  font-size: 0.9rem;
  opacity: 0.7;
  font-style: italic;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.test-button {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: var(--main-light-color);
  color: var(--main-white);
  text-decoration: none;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--main-light-color);
  margin-top: auto;
}

.test-button:hover {
  background: var(--main-dark-color-secondary);
  border-color: var(--main-dark-color-secondary);
  color: var(--main-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(223, 14, 154, 0.3);
}

.no-tests {
  text-align: center;
  padding: 60px 20px;
  opacity: 0.7;
}

.no-tests h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--main-light-color);
}

@media (max-width: 768px) {
  .tests-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .header h1 {
    font-size: 2rem;
  }

  .test-card {
    padding: 20px;
    min-height: 180px;
  }

  .test-title {
    font-size: 1.1rem;
  }

  .main-container {
    padding: 15px;
  }
}
