/**
 * Burs Başvuru Sistemi Ana CSS Dosyası
 * Daha modern bir görünüm için Bootstrap 5 üzerine eklenen özelleştirmeler
 */

:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --dark-blue: #084298;
  --light-blue: #cfe2ff;
  --info-color: #0dcaf0;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --body-bg: #f5f8fa;
  --white: #ffffff;
  --gradient: linear-gradient(to right, #0d6efd, #0a58ca);
  --border-radius: 1rem;
  --box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.15);
}

body {
  font-family: 'Poppins', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--body-bg);
  color: var(--dark-color);
  line-height: 1.7;
}

/* Header Stili */
.header-section {
  background-image: var(--gradient);
  padding: 3rem 0;
  color: var(--white);
  text-align: center;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  margin-bottom: 2rem;
}

.header-section h1 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
}

.header-section p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Form Kartı Stili */
.form-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Bölüm Başlıkları */
.section-title {
  color: var(--primary-color);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  position: relative;
  text-align: center;
}

.section-title::after {
  content: '';
  width: 80px;
  height: 3px;
  background-image: var(--gradient);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 3px;
}

/* Form Girişleri */
.form-label {
  font-weight: 500;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.form-control, .form-select {
  border: 1px solid #ced4da;
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Burs Sorgulama Sayfası için Stil */
.query-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--dark-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%23084298' stroke-width='1'%3E%3Cpath d='M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 295 764 126.5 879.5 40 599-197 493 102 382-31 229 126.5 79.5-69-63'/%3E%3Cpath d='M-31 229L237 261 390 382 603 493 308.5 537.5 101.5 381.5M370 905L295 764'/%3E%3Cpath d='M520 660L578 842 731 737 840 599 603 493 520 660 295 764 309 538 390 382 539 269 769 229 577.5 41.5 370 105 295 -36 126.5 79.5 237 261 102 382 40 599 -69 737 127 880'/%3E%3Cpath d='M520-140L578.5 42.5 731-63M603 493L539 269 237 261 370 105M902 382L539 269M390 382L102 382'/%3E%3Cpath d='M-222 42L126.5 79.5 370 105 539 269 577.5 41.5 927 80 769 229 902 382 603 493 731 737M295-36L577.5 41.5M578 842L295 764M40-201L127 80M102 382L-261 269'/%3E%3C/g%3E%3Cg fill='%23cfe2ff'%3E%3Ccircle cx='769' cy='229' r='5'/%3E%3Ccircle cx='539' cy='269' r='5'/%3E%3Ccircle cx='603' cy='493' r='5'/%3E%3Ccircle cx='731' cy='737' r='5'/%3E%3Ccircle cx='520' cy='660' r='5'/%3E%3Ccircle cx='309' cy='538' r='5'/%3E%3Ccircle cx='295' cy='764' r='5'/%3E%3Ccircle cx='40' cy='599' r='5'/%3E%3Ccircle cx='102' cy='382' r='5'/%3E%3Ccircle cx='127' cy='80' r='5'/%3E%3Ccircle cx='370' cy='105' r='5'/%3E%3Ccircle cx='578' cy='42' r='5'/%3E%3Ccircle cx='237' cy='261' r='5'/%3E%3Ccircle cx='390' cy='382' r='5'/%3E%3C/g%3E%3C/svg%3E");
}

.query-card {
  background-color: var(--white);
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
  padding: 2.5rem;
  width: 100%;
  max-width: 500px;
  margin: 1rem;
}

.query-card h3 {
  color: var(--dark-blue);
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-align: center;
  font-size: 1.75rem;
}

.query-form .form-control {
  height: 50px;
  margin-bottom: 1.5rem;
}

.query-form .btn {
  height: 50px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.result-box {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 0.5rem;
  background-color: var(--light-blue);
  color: var(--dark-blue);
  text-align: center;
  font-weight: 500;
}

/* Responsive Ayarlamalar */
@media (max-width: 768px) {
  .header-section {
    padding: 2rem 0;
  }
  
  .header-section h1 {
    font-size: 1.8rem;
  }
  
  .header-section p {
    font-size: 1rem;
  }
  
  .form-card {
    padding: 1rem;
  }
  
  .section-title {
    font-size: 1.4rem;
  }
}

/* Form Bölümleri */
.form-section {
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 0.75rem;
  background-color: #f8f9fa;
  border-left: 5px solid var(--primary-color);
}

/* Yükleme İndikatörü */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
}

.loading .spinner-border {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

/* Başarılı/Hata Mesajları */
.result-message {
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 1rem 0;
  font-weight: 500;
}

.result-message.success {
  background-color: rgba(25, 135, 84, 0.1);
  color: var(--success-color);
  border-left: 4px solid var(--success-color);
}

.result-message.error {
  background-color: rgba(220, 53, 69, 0.1);
  color: var(--danger-color);
  border-left: 4px solid var(--danger-color);
}

/* Düğme Stilleri */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #0a58ca;
  border-color: #0a58ca;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.8rem 1.5rem;
  font-weight: 600;
}

.form-check-label {
  font-weight: normal;
}

/* Form Doğrulama Stilleri */
.was-validated .form-control:invalid, .form-control.is-invalid {
  border-color: var(--danger-color);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:valid, .form-control.is-valid {
  border-color: var(--success-color);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Footer Stili */
footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 2rem 0;
  text-align: center;
  margin-top: 2rem;
}

footer p {
  margin-bottom: 0.5rem;
}

footer a {
  color: var(--info-color);
  text-decoration: none;
}

footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Aşamalı Form Stilleri */
.form-navigation {
  position: relative;
  margin-bottom: 2rem;
}

.form-navigation .progress {
  height: 8px;
  margin-bottom: 1rem;
  border-radius: 4px;
  background-color: #e9ecef;
}

.form-navigation .progress-bar {
  background-image: var(--gradient);
  transition: width 0.5s ease;
}

.step-indicators {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  max-width: 140px;
  margin: 0 5px;
}

.step-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #e9ecef;
  color: var(--dark-color);
  font-weight: 600;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.step-text {
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  color: var(--secondary-color);
  transition: all 0.3s ease;
}

.step-indicator.active .step-circle {
  background-color: var(--primary-color);
  color: var(--white);
  transform: scale(1.1);
}

.step-indicator.active .step-text {
  color: var(--primary-color);
  font-weight: 600;
}

.step-indicator.completed .step-circle {
  background-color: var(--success-color);
  color: var(--white);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-navigation-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
}

.form-navigation-buttons .btn-prev {
  margin-right: auto;
}

.form-navigation-buttons .btn-next {
  margin-left: auto;
}

@media (max-width: 768px) {
  .step-text {
    font-size: 0.7rem;
  }
  
  .step-indicator {
    max-width: 80px;
  }
}
