/* PWA Install Styles */
.pwa-install-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
}

.pwa-install-btn,
.pwa-manual-btn {
  background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pwa-install-btn:hover,
.pwa-manual-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.install-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.install-modal .modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.install-modal .modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  line-height: 1;
}

.install-modal .modal-close:hover {
  color: #333;
}

.install-modal h3 {
  margin-bottom: 20px;
  color: #333;
}

.install-modal ol {
  padding-left: 20px;
  line-height: 1.8;
}

.install-modal li {
  margin-bottom: 10px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
  background-size: 100px 100px;
  animation: float 20s infinite linear;
}

@keyframes float {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-100px) rotate(360deg); }
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content .lead {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-buttons .btn {
  margin: 0 10px 10px 0;
  padding: 15px 35px;
  font-weight: 600;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.hero-image {
  position: relative;
  height: 400px;
}

.hero-card {
  position: absolute;
  background: white;
  padding: 20px 30px;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 15px;
  animation: floatCard 3s ease-in-out infinite;
}

.hero-card i {
  font-size: 2rem;
  color: #667eea;
}

.hero-card span {
  font-weight: 600;
  color: #333;
}

.hero-card-1 {
  top: 20px;
  right: 50px;
  animation-delay: 0s;
}

.hero-card-2 {
  top: 150px;
  right: 100px;
  animation-delay: 0.5s;
}

.hero-card-3 {
  top: 280px;
  right: 30px;
  animation-delay: 1s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

.section-header p {
  font-size: 1.1rem;
  color: #6c757d;
}

/* Quick Access Section */
.quick-access {
  padding: 100px 0;
  background-color: #f8f9fa;
}

.access-card {
  text-align: center;
  padding: 40px 30px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.access-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.access-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.access-icon i {
  font-size: 2rem;
  color: white;
}

.access-card h4 {
  margin: 15px 0;
  font-weight: 600;
  color: #333;
  font-size: 1.2rem;
}

.access-card p {
  color: #6c757d;
  margin-bottom: 25px;
  min-height: 50px;
  font-size: 0.95rem;
}

/* Schools Section */
.schools-section {
  padding: 100px 0;
}

.search-box {
  margin-bottom: 50px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
}

.search-input-wrapper input {
  border-radius: 50px 0 0 50px;
  padding: 18px 25px;
  border: 2px solid #e9ecef;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.search-input-wrapper input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.search-input-wrapper button {
  border-radius: 0 50px 50px 0;
  padding: 0 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
}

.filters-wrapper {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.filters-wrapper select {
  width: 200px;
  padding: 12px 20px;
  border: 2px solid #e9ecef;
  border-radius: 50px;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.filters-wrapper select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.school-card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  overflow: hidden;
}

.school-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.school-card .card-body {
  padding: 30px;
}

.school-logo {
  text-align: center;
  margin-bottom: 20px;
}

.school-logo-img {
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
  border-radius: 15px;
}

.school-card h5 {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
}

.school-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.badge-plan {
  padding: 8px 15px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-premium {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.badge-basic {
  background: #e9ecef;
  color: #333;
}

.badge-students {
  padding: 8px 15px;
  border-radius: 50px;
  font-size: 0.85rem;
  background: #f8f9fa;
  color: #6c757d;
}

.empty-state {
  padding: 60px 20px;
}

/* Features Section */
.features-section {
  padding: 100px 0;
  background-color: #f8f9fa;
}

.feature-box {
  padding: 40px 30px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  height: 100%;
  text-align: center;
}

.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 1.8rem;
}

.feature-icon-1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.feature-icon-2 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.feature-icon-3 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}

.feature-icon-4 {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  color: white;
}

.feature-icon-5 {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  color: white;
}

.feature-icon-6 {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  color: #333;
}

.feature-box h4 {
  margin: 15px 0;
  font-weight: 600;
  color: #333;
  font-size: 1.1rem;
}

.feature-box p {
  color: #6c757d;
  font-size: 0.95rem;
  margin: 0;
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-features {
  margin-top: 30px;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.cta-feature i {
  color: #43e97b;
}

/* Register Section */
.register-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.register-info {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 50px 40px;
  border-radius: 20px;
  color: white;
  height: 100%;
}

.register-info h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.register-info p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.register-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.register-feature {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
}

.register-feature i {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.register-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.register-header {
  padding: 40px 40px 30px;
  border-bottom: 1px solid #e9ecef;
}

.register-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.register-header p {
  color: #6c757d;
  margin: 0;
}

.register-form {
  padding: 40px;
}

.form-section {
  margin-bottom: 40px;
}

.form-section:last-child {
  margin-bottom: 0;
}

.form-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e9ecef;
}

.required {
  color: #dc3545;
  margin-left: 5px;
}

.form-control {
  padding: 12px 20px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.form-select {
  padding: 12px 20px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.upload-preview {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto;
}

.upload-label {
  width: 100%;
  height: 100%;
  border: 2px dashed #e9ecef;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  overflow: hidden;
}

.upload-label:hover {
  border-color: #667eea;
  background: #f8f9fa;
}

.upload-label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.upload-text {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  color: #6c757d;
  text-align: center;
  padding: 10px;
}

/* Footer */
.footer {
  margin-top: 0 !important;
}

.footer a {
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer a:hover {
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-section {
    padding: 60px 0 80px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-image {
    display: none;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .register-section {
    padding: 40px 0;
  }

  .register-info {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content .lead {
    font-size: 1.1rem;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin: 10px 0;
  }

  .hero-stats {
    flex-direction: column;
    gap: 15px;
  }

  .access-card {
    margin-bottom: 20px;
  }

  .cta-section h2 {
    font-size: 1.75rem;
  }

  .cta-features {
    flex-direction: column;
  }

  .filters-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .filters-wrapper select {
    width: 100%;
  }

  .register-form {
    padding: 25px;
  }

  .form-section-title {
    font-size: 1rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.school-card-item {
  animation: fadeInUp 0.5s ease-out;
}