/* ========== SCHOLARSHIP FINDER STYLES ========== */

.scholarship-finder-container {
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 100px 0 20px 0;
}

/* Navigation Tabs */
.scholarship-nav-tabs {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #667eea;
  position: sticky;
  top: 70px;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.scholarship-nav-tabs .container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0;
}

.nav-tab-btn {
  padding: 10px 20px;
  background: transparent;
  border: none;
  color: #333;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-tab-btn:hover {
  color: #667eea;
}

.nav-tab-btn.active {
  color: #667eea;
  border-bottom-color: #667eea;
}

/* Content Area */
.scholarship-content {
  background: white;
  margin: 20px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.view-section {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Header */
.section-header {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.section-header h1 {
  font-size: 2.5rem;
  margin: 0 0 10px;
  font-weight: 800;
}

.section-header p {
  font-size: 1rem;
  opacity: 0.9;
}

/* Search Section */
.search-section {
  display: grid;
  gap: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.search-box {
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Filter Controls */
.filter-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
}

.filter-controls .form-control,
.filter-controls .form-select {
  padding: 10px 12px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  font-size: 13px;
  transition: all 0.3s ease;
}

.filter-controls .form-control:focus,
.filter-controls .form-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#btn-get-ai-recommendations {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#btn-get-ai-recommendations:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Loading Indicator */
#loading-indicator {
  text-align: center;
  padding: 40px 20px;
  background: #f8f9fa;
}

.spinner {
  border: 4px solid #dee2e6;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Scholarships Grid */
.scholarships-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  padding: 30px 20px;
}

/* Scholarship Card */
.scholarship-card {
  background: white;
  border: 2px solid #dee2e6;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.scholarship-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.scholarship-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.2);
  border-color: #667eea;
}

.scholarship-card:hover::before {
  transform: scaleX(1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 15px;
  margin-bottom: 10px;
}

.card-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin: 0;
  flex: 1;
}

.amount-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.org-name {
  color: #667eea;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 8px;
}

.description {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0 0 15px;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 15px 0;
  padding: 15px 0;
  border-top: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #666;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.btn {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid #667eea;
  color: #667eea;
}

.btn-outline:hover {
  background: #667eea;
  color: white;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-info {
  background: #17a2b8;
  color: white;
}

.btn-warning {
  background: #ffc107;
  color: #333;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* AI Insight Box */
.ai-insight-box {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border: 2px solid #667eea;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  grid-column: 1 / -1;
}

.ai-insight-box h3 {
  color: #667eea;
  font-weight: 700;
  margin-top: 0;
}

.ai-insight-box p {
  color: #333;
  line-height: 1.6;
  margin: 10px 0 0;
}

/* No Results */
#no-results {
  padding: 40px 20px;
  text-align: center;
}

.alert {
  padding: 15px 20px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 0.95rem;
}

.alert-warning {
  background: #fff3cd;
  border: 2px solid #ffc107;
  color: #856404;
}

.alert-info {
  background: #d1ecf1;
  border: 2px solid #17a2b8;
  color: #0c5460;
}

.alert-success {
  background: #d4edda;
  border: 2px solid #28a745;
  color: #155724;
}

/* Applications List */
.applications-list,
.alerts-list {
  display: grid;
  gap: 20px;
  padding: 30px 20px;
}

/* Application Card */
.application-card {
  background: white;
  border: 2px solid #dee2e6;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.application-card:hover {
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.app-header h3 {
  margin: 0;
  color: #333;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-draft {
  background: #e2e3e5;
  color: #383d41;
}

.status-submitted {
  background: #d1ecf1;
  color: #0c5460;
}

.status-under_review {
  background: #fff3cd;
  color: #856404;
}

.status-approved {
  background: #d4edda;
  color: #155724;
}

.status-rejected {
  background: #f8d7da;
  color: #721c24;
}

.app-details {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
}

.app-details p {
  margin: 8px 0;
  font-size: 0.9rem;
}

.app-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

/* Alert Card */
.alert-card {
  background: white;
  border-left: 5px solid #17a2b8;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
}

.alert-card.urgent {
  border-left-color: #dc3545;
  background: rgba(220, 53, 69, 0.05);
}

.alert-urgency {
  margin-bottom: 10px;
}

.urgency-badge {
  display: inline-block;
  background: #dc3545;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.alert-content h3 {
  margin: 0 0 5px;
  color: #333;
}

.alert-org {
  color: #667eea;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 10px;
}

.alert-meta {
  display: flex;
  gap: 15px;
  margin: 10px 0 15px;
  flex-wrap: wrap;
}

.days-left {
  font-weight: 700;
  color: #dc3545;
  font-size: 0.95rem;
}

.deadline-date {
  color: #666;
  font-size: 0.9rem;
}

.alert-description {
  color: #666;
  line-height: 1.5;
  margin: 10px 0 15px;
  font-size: 0.9rem;
}

.alert-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

/* Profile Form */
.profile-form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px 20px;
}

.profile-form {
  display: grid;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 15px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .section-header h1 {
    font-size: 1.8rem;
  }

  .scholarships-grid {
    grid-template-columns: 1fr;
  }

  .filter-controls {
    grid-template-columns: 1fr;
  }

  .card-actions {
    flex-direction: column;
  }

  .card-actions .btn {
    width: 100%;
  }

  .alert-meta {
    flex-direction: column;
  }

  .scholarship-nav-tabs .container {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Utilities */
.py-4 {
  padding-top: 30px;
  padding-bottom: 30px;
}

.mt-4 {
  margin-top: 30px;
}

.mt-5 {
  margin-top: 40px;
}

.p-4 {
  padding: 30px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
