/* Reset & base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", "Inter", "Segoe UI", sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

/* Main container */
.sp-portal-container {
  display: flex;
  min-height: 100vh;
  padding: 20px;
  gap: 20px;
  flex-wrap: wrap;
}

/* Sidebar */
.sp-sidebar {
  width: 220px;
  flex-shrink: 0;
}

.sp-dropdown-toggle {
  display: none;
  background-color: #007bff;
  color: white;
  padding: 10px;
  width: 100%;
  border: none;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
  margin-bottom: 10px;
}

.sp-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #f7f7f7;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.sp-menu li {
  padding: 12px 15px;
  cursor: pointer;
  border-bottom: 1px solid #ddd;
  transition: background 0.2s ease;
}

.sp-menu li:hover {
  background-color: #e2e2e2;
}

.sp-menu li.active {
  background-color: #212f3d;
  color: white;
}

/* Content */
.sp-content {
  flex: 1;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  min-width: 300px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.sp-section {
  display: none;
}

.sp-section.sp-active {
  display: block;
}

.sp-profile-form {
  max-width: 600px;
  margin-top: 2rem;
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.sp-profile-form:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.sp-profile-form label {
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  display: block;
}

.sp-profile-form input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 18px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  font-size: 14px;
  color: #333;
  transition: all 0.3s ease;
}

.sp-profile-form input:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
  outline: none;
}

.sp-profile-form input:disabled {
  background-color: #f0f0f0;
  cursor: not-allowed;
}

.sp-profile-form button {
  width: 100%;
  padding: 12px;
  background: #007bff;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sp-profile-form button:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.sp-profile-form button:active {
  background: #004085;
  transform: translateY(0);
}

.sp-alert {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sp-alert .close {
  background: transparent;
  border: none;
  font-size: 18px;
  color: #155724;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sp-alert .close:hover {
  color: #333;
}

/* Redesigned Test Cards */
.test-series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}


.test-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* even shadow on all sides */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  border: 1px solid #e6e6e6;
}

.test-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.test-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.test-card p {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.view-btn {
  margin-top: auto;
  align-self: flex-start;
  background: #007bff;
  color: white;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.view-btn:hover {
  background: #0056b3;
}


.view-btn:hover {
  background: #0056b3;
}

/* Heading */
#heading {
  font-size: 1.5rem;
  color: #2c3e50;
  font-weight: 600;
  margin: 1.2rem 0 0.8rem;
  border-left: 4px solid #4caf50;
  padding-left: 12px;
  letter-spacing: 0.3px;
}

/* Responsive */
@media (max-width: 768px) {
  .sp-portal-container {
    flex-direction: column;
    padding: 10px;
  }

  .sp-sidebar {
    width: 100%;
  }

  .sp-dropdown-toggle {
    display: block;
    margin-top: 10px;
  }

  .sp-menu {
    display: none;
    flex-direction: column;
    margin-top: 10px;
  }

  .sp-menu.sp-show {
    display: flex;
  }

  .sp-menu li {
    border-bottom: 1px solid #ccc;
  }

  .sp-content {
    padding: 15px;
    margin-top: -15px;
    margin-bottom: 10px;
  }
}
