/* ShuleAI Styles - CBC Educational Platform */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: linear-gradient(135deg, #2e7d4a, #4caf50);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  color: #ffd700;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background 0.3s;
}

.nav-menu a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Main Layout */
.main-layout {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  min-height: 80vh;
}

/* Sidebar */
.sidebar {
  width: 300px;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  height: fit-content;
}

.filter-section {
  margin-bottom: 2rem;
}

.filter-title {
  font-weight: bold;
  margin-bottom: 1rem;
  color: #2e7d4a;
  font-size: 1.1rem;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 3px;
  transition: background 0.2s;
}

.filter-options label:hover {
  background: #e9ecef;
}

/* Main Content */
.main-content {
  flex: 1;
}

.hero-section {
  background: linear-gradient(135deg, #ff6b6b, #ffd93d);
  padding: 3rem 2rem;
  border-radius: 15px;
  text-align: center;
  margin-bottom: 2rem;
  color: white;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  background: #2e7d4a;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 25px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.3s;
}

.cta-button:hover {
  transform: translateY(-2px);
}

/* Games Grid */
.games-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.games-count {
  color: #666;
  font-size: 1.1rem;
}

.sort-controls select {
  padding: 0.5rem 1rem;
  border: 2px solid #ddd;
  border-radius: 5px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.game-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.game-icon {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.game-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
}

.game-description {
  color: #666;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.game-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tag {
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.tag-grade {
  background: #e3f2fd;
  color: #1976d2;
}

.tag-subject {
  background: #f3e5f5;
  color: #7b1fa2;
}

.tag-cbc {
  background: #e8f5e8;
  color: #2e7d4a;
}

.play-button {
  width: 100%;
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.play-button:hover {
  background: linear-gradient(135deg, #45a049, #4caf50);
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: #ffd700;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #ffd700;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #444;
  color: #999;
}

.partner-logos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.partner-logo {
  padding: 0.5rem 1rem;
  background: #333;
  border-radius: 5px;
  color: #ffd700;
  font-weight: bold;
}

/* Page-specific styles */
.page-hero {
  background: linear-gradient(135deg, #2e7d4a, #4caf50);
  color: white;
  padding: 3rem 2rem;
  border-radius: 15px;
  text-align: center;
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.resource-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.resource-icon {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: #e3f2fd;
}

.resource-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
}

.resource-description {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.resource-button {
  width: 100%;
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.resource-button:hover {
  background: linear-gradient(135deg, #45a049, #4caf50);
}

.feature-list {
  margin: 2rem 0;
}

.feature-list li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.feature-list li:before {
  content: "✓";
  color: #2e7d4a;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Subjects and Grade Levels specific styles */
.subject-grid,
.grade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.subject-card,
.grade-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  text-align: center;
}

.subject-card:hover,
.grade-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.subject-icon,
.grade-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: #e3f2fd;
}

.subject-title,
.grade-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
}

.subject-stats,
.grade-stats {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.subject-button,
.grade-button {
  width: 100%;
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.subject-button:hover,
.grade-button:hover {
  background: linear-gradient(135deg, #45a049, #4caf50);
}

.game-preview {
  position: relative;
  height: 120px;
  background: #f8f9fa;
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.game-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-actions {
  display: flex;
  gap: 0.5rem;
}

.games-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.game-featured {
  border: 2px solid #ffd700;
  position: relative;
}

/* Payment Modal Styles */
.payment-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.payment-modal.active {
  display: flex;
}

.payment-content {
  background: white;
  border-radius: 20px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

.payment-header {
  padding: 30px 30px 20px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
  background: white;
  border-radius: 20px 20px 0 0;
}

.payment-body {
  padding: 0 30px 30px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Custom scrollbar for payment body */
.payment-body::-webkit-scrollbar {
  width: 6px;
}

.payment-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.payment-body::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.payment-body::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Ensure all sections have proper spacing */
.subscription-plans {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex-shrink: 0;
}

.payment-form {
  margin-bottom: 0;
  flex-shrink: 0;
}

.payment-actions {
  display: flex;
  gap: 15px;
  margin-top: auto;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  background: white;
  padding-top: 10px;
}

.payment-processing,
.success-message {
  text-align: center;
  padding: 30px 20px;
  flex-shrink: 0;
}

.error-message {
  background: #ffebee;
  color: #c62828;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 0;
  text-align: center;
  display: none;
  flex-shrink: 0;
}

/* Plan cards adjustments for better scrolling */
.plan-card {
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  flex-shrink: 0;
}

.plan-card:hover {
  border-color: #4ecdc4;
  transform: translateY(-2px);
}

.plan-card.selected {
  border-color: #4ecdc4;
  background: #f0f9f8;
}

/* Animation */
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Plus Modal Floating Styles */
#plusModal {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 450px;
  max-width: calc(100vw - 40px);
  height: auto;
  max-height: calc(100vh - 40px);
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  border-radius: 15px;
  padding: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: plusModalSlideIn 0.3s ease;
}

#plusModal.show {
  display: block;
}

@keyframes plusModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }
}

.payment-title {
  font-size: 2rem;
  color: #2d3436;
  margin-bottom: 10px;
}

.payment-subtitle {
  color: #666;
  font-size: 1.1rem;
}

.plan-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: #ff6b6b;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.plan-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #2d3436;
}

.plan-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #4ecdc4;
}

.plan-period {
  color: #666;
  font-size: 0.9rem;
}

.plan-features {
  list-style: none;
  margin-top: 10px;
}

.plan-features li {
  padding: 5px 0;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features li:before {
  content: "✓";
  color: #4ecdc4;
  font-weight: bold;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #2d3436;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #4ecdc4;
}

.pay-button {
  flex: 2;
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pay-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

.pay-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cancel-button {
  flex: 1;
  background: transparent;
  border: 2px solid #666;
  color: #666;
  padding: 15px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-button:hover {
  background: #666;
  color: white;
}

.payment-processing {
  text-align: center;
  padding: 20px;
  display: none;
}

.processing-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #4ecdc4;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.success-message {
  text-align: center;
  padding: 20px;
  display: none;
}

.success-icon {
  font-size: 4rem;
  color: #4ecdc4;
  margin-bottom: 20px;
}

/* Till Number Styles */
.till-number-display {
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  margin: 25px 0;
  border: 3px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.till-number {
  font-size: 3rem;
  font-weight: bold;
  letter-spacing: 8px;
  margin: 15px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.payment-instructions {
  background: #f8f9fa;
  border-left: 5px solid #4caf50;
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
}

.instruction-step {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px;
  background: white;
  border-radius: 8px;
}

.step-number {
  background: #4caf50;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
  font-weight: bold;
}

.manual-verification {
  background: #fff3cd;
  border: 2px solid #ffeaa7;
  padding: 20px;
  border-radius: 10px;
  margin-top: 25px;
}

.user-status-badge {
  background: #4caf50;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.payment-history {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
  display: none;
}

.payment-item {
  background: white;
  padding: 10px 15px;
  margin: 10px 0;
  border-radius: 8px;
  border-left: 4px solid #4caf50;
}

/* Responsive */
@media (max-width: 768px) {
  .main-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .hero-title {
    font-size: 2rem;
  }

  .games-header {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-menu {
    gap: 1rem;
  }

  .subject-grid,
  .grade-grid {
    grid-template-columns: 1fr;
  }

  .payment-modal {
    padding: 10px;
  }

  .payment-content {
    max-height: 95vh;
    max-width: 100%;
  }

  .payment-header {
    padding: 25px 20px 15px;
  }

  .payment-body {
    padding: 0 20px 25px;
    gap: 20px;
  }

  .plan-card {
    padding: 15px;
  }

  .payment-actions {
    flex-direction: column;
    gap: 10px;
  }

  .pay-button,
  .cancel-button {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .payment-header {
    padding: 20px 15px 15px;
  }

  .payment-body {
    padding: 0 15px 20px;
    gap: 15px;
  }

  .plan-card {
    padding: 12px;
  }

  .plan-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .plan-price {
    font-size: 1.3rem;
  }
}

/* Plus Button and Tutor System Styles */

/* Plus Button in Header */
.plus-btn {
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  text-decoration: none;
}

.plus-btn:hover {
  background: linear-gradient(135deg, #ff5252, #ff7043);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.plus-icon {
  font-size: 1.2em;
  font-weight: bold;
}

.plus-text {
  white-space: nowrap;
}

/* Plus Modal Styles */
.plus-modal-content {
  background: white;
  border-radius: 15px;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding: 1.5rem;
  position: relative;
}

/* Plus Modal Close Button */
#plusModal .auth-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

#plusModal .auth-close:hover {
  color: #333;
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

/* Role Selection */
.role-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.role-card {
  background: white;
  border: 3px solid #f0f0f0;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.role-card:hover {
  border-color: #4caf50;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(76, 175, 80, 0.2);
}

.tutor-card:hover {
  border-color: #2196f3;
  box-shadow: 0 10px 25px rgba(33, 150, 243, 0.2);
}

.student-card:hover {
  border-color: #ff6b6b;
  box-shadow: 0 10px 25px rgba(255, 107, 107, 0.2);
}

.role-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.role-card h3 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.role-card p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.role-benefits {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}

.role-benefits li {
  padding: 0.5rem 0;
  color: #333;
  font-size: 0.95rem;
}

.role-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tutor-btn {
  background: linear-gradient(135deg, #2196f3, #1976d2);
  color: white;
}

.tutor-btn:hover {
  background: linear-gradient(135deg, #1976d2, #1565c0);
  transform: translateY(-2px);
}

.student-btn {
  background: linear-gradient(135deg, #ff6b6b, #ff5252);
  color: white;
}

.student-btn:hover {
  background: linear-gradient(135deg, #ff5252, #f44336);
  transform: translateY(-2px);
}

/* Form Styles */
.tutor-form,
.student-form {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 10px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group small {
  display: block;
  margin-top: 0.5rem;
  color: #666;
  font-size: 0.85rem;
}

/* Checkbox Grids */
.subjects-grid,
.grades-grid,
.availability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: normal;
}

.checkbox-item:hover {
  background-color: #f5f5f5;
  border-color: #4caf50;
}

.checkbox-item input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-item,
.checkbox-item:has(input[type="checkbox"]:checked) {
  background-color: #e8f5e8;
  border-color: #4caf50;
  color: #2e7d4a;
}

.terms-checkbox {
  align-items: flex-start;
  border: none;
  padding: 0;
  background: none;
}

.terms-checkbox:hover {
  background: none;
  border: none;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.auth-btn {
  flex: 1;
  padding: 1rem 2rem;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-btn.primary {
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
}

.auth-btn.primary:hover {
  background: linear-gradient(135deg, #45a049, #3d8b40);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.auth-btn.secondary {
  background: #f5f5f5;
  color: #666;
  border: 2px solid #ddd;
}

.auth-btn.secondary:hover {
  background: #e0e0e0;
  border-color: #ccc;
}

.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-btn.small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  flex: none;
}

/* Error Messages */
.form-error {
  display: none;
  color: #f44336;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  background-color: #ffebee;
  padding: 0.5rem;
  border-radius: 5px;
  border: 1px solid #ffcdd2;
}

/* Success Step */
.success-header {
  text-align: center;
  padding: 2rem;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Dashboard Styles */
.dashboard-modal .auth-modal-content {
  max-width: 1000px;
  max-height: 90vh;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 2rem;
}

.dashboard-welcome {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
  padding: 1.5rem;
  border-radius: 15px;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.dashboard-tabs {
  display: flex;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 1rem 1.5rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
  color: #4caf50;
  border-bottom-color: #4caf50;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.no-requests {
  text-align: center;
  padding: 3rem;
  color: #666;
  background: #f9f9f9;
  border-radius: 10px;
  border: 2px dashed #ddd;
}

.request-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.request-card:hover {
  border-color: #4caf50;
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.1);
}

.request-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.request-header h4 {
  color: #333;
  margin: 0;
}

.request-date {
  color: #666;
  font-size: 0.9rem;
}

.request-details p {
  margin-bottom: 0.5rem;
  color: #666;
}

.request-details strong {
  color: #333;
}

.request-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

.profile-section {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.profile-section h3 {
  color: #4caf50;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.profile-section p {
  margin-bottom: 0.5rem;
  color: #666;
}

.profile-section strong {
  color: #333;
}

/* Loading States */
.btn-loading {
  display: none;
}

.auth-btn:disabled .btn-text {
  display: none;
}

.auth-btn:disabled .btn-loading {
  display: inline;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Plus Modal Mobile Adjustments */
  #plusModal {
    bottom: 10px;
    right: 10px;
    left: 10px;
    width: auto;
    max-width: none;
  }

  .plus-btn .plus-text {
    display: none;
  }

  .plus-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
  }

  .plus-icon {
    font-size: 1.5rem;
  }

  .plus-modal-content {
    margin: 0;
    padding: 1rem;
    max-height: calc(100vh - 20px);
  }

  .role-options {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .subjects-grid,
  .grades-grid,
  .availability-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .dashboard-tabs {
    flex-wrap: wrap;
  }

  .tab-btn {
    flex: 1;
    min-width: 120px;
  }

  .request-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .request-actions {
    flex-direction: column;
  }

  .dashboard-welcome {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .plus-modal-content {
    padding: 1rem;
  }

  .role-card {
    padding: 1.5rem;
  }

  .role-icon {
    font-size: 3rem;
  }
}
