/* NAV */
.transparent-navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
} 

/* ANASAYFA - Caorusel iyileştirmeleri */
.caption-overlay {
  position: absolute;
  bottom: 1px;
  left: 20px;
  padding: 10px 20px;
  color: #fff;
  max-width: 90%;
}
.caption-overlay h4, .caption-overlay h6 {
  color: #000;
  font-size: 1.25rem;
  margin: 0 0 2px 0;
  font-weight: bold;
}
.caption-overlay h6 {
  font-size: 1rem;
}
.caption-overlay p {
  color: #000;
  font-size: 0.9rem;
  margin: 0 0 1px 0;
  opacity: 1.8;
}
.small-caption {
  bottom: 0;
  left: 10px;
  padding: 8px 15px;
  font-size: 0.9rem;
}
.carousel-control-prev,
.carousel-control-next {
  opacity: 0;
  transition: opacity 0.3s;
}
#carouselExampleCaptions:hover .carousel-control-prev,
#carouselExampleCaptions:hover .carousel-control-next {
  opacity: 1;
}
.custom-carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-200%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  padding: 10px;
  color: #000;
  z-index: 10;
  opacity: 0;
  cursor: pointer;
  pointer-events: none;
  transition: all 0.3s ease;
}
#carouselExampleCaptions:hover .custom-carousel-button {
  opacity: 1;
  pointer-events: auto;
}
.custom-carousel-button:hover {
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  cursor: pointer;
}
.custom-carousel-button svg {
  display: block;
}
.carousel-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
@media (min-width: 768px) {
  .col-md-8 {
    flex: 0 0 auto;
    width: 66.66666667%;
  }
  .col-md-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
  }
}
/* ANASAYFA - Gündemdekiler */
.section-title {
  display: flex;
  align-items: center;
  width: 100%;
}

.section-title h2 {
  white-space: nowrap;
  font-weight: bold;
  font-size: 1.5rem;
  margin: 0;
  padding-right: 10px;
}

.section-title .line {
  flex-grow: 1;
  border-bottom: 1px solid #999; 
}

/* DATASCİECE - Alert */
.alert-container {
  min-height: 200px;
  margin-bottom: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.alert-wrapper {
  position: relative;
  width: 100%;
  height: 150px;
}
.alert, .placeholder-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1rem;
  font-size: 1rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.info-image {
  height: 100px;
  margin-bottom: 10px;
}
#alertBox,
#placeholderBox {
  transition: opacity 0.5s ease, visibility 0.5s ease;
}


/* DATASCİECE - radio-button */
.form-check-input {
  vertical-align: middle;
  margin-bottom: 0.2em;
  margin-top: 0.0em;
}
.radio-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.radio-line input[type="radio"] {
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--radio-accent, #0d6efd);
  transition: box-shadow 0.2s;
}
.radio-line .form-check-label {
  transition: color 0.2s ease, font-weight 0.2s ease;
}
.radio-line:hover .form-check-label {
  color: var(--radio-hover-color, #0d6efd);
  font-weight: 500;
  cursor: pointer;
}
.radio-line input[type="radio"]:checked + .form-check-label {
  color: var(--radio-selected-color, #0b5ed7);
  font-weight: 600;
}
.radio-line input[type="radio"]:focus-visible {
  outline: 2px solid var(--radio-focus-color, #66afe9);
  outline-offset: 3px;
  border-radius: 50%;
}
@media (prefers-color-scheme: dark) {
  .radio-line .form-check-label {
    color: #ddd;
  }
  .radio-line:hover .form-check-label {
    color: #66b3ff;
  }
  .radio-line input[type="radio"]:checked + .form-check-label {
    color: #99ccff;
  }
}
.radio-status {
  display: inline-block;
  min-width: 1.5em;
  text-align: center;
  line-height: 1;
}
.radio-status.valid { color: green; }
.radio-status.invalid { color: crimson; }
.btn-success:hover {
  background: linear-gradient(135deg, #28a745, #218838);
  color: white;
}
.btn-danger:hover {
  background: linear-gradient(135deg, #dc3545, #bd2130);
  color: white;
}
.btn-info:hover {
  background: linear-gradient(135deg, #17a2b8, #117a8b);
  color: white;
}
#addRadioBtn,
#removeSelectedBtn,
#submitBtn {
  min-width: 40px;
}

.form-control[type="file"].input-warning {
  border: 3px solid #ffc107 !important;
  background-color: #fff3cd !important;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.6) !important;
}

.form-control[type="file"].input-valid {
  border: 3px solid #198754 !important;
  background-color: #d1e7dd !important;
  box-shadow: 0 0 10px rgba(25, 135, 84, 0.6) !important;
}

.form-control[type="file"].input-invalid {
  border: 3px solid #dc3545 !important;
  background-color: #f8d7da !important;
  box-shadow: 0 0 10px rgba(220, 53, 69, 0.6) !important;
}

/* DATASCİECE - Çalışılan dosya */
@keyframes glow-border-green {
  0% {
    box-shadow: 0 0 10px #198754, 0 0 20px #198754;
  }
  50% {
    box-shadow: 0 0 20px #198754, 0 0 40px #198754;
  }
  100% {
    box-shadow: 0 0 10px #198754, 0 0 20px #198754;
  }
}

.glow {
  animation: glow-border-green 1.5s ease-in-out infinite;
  border: 2px solid #198754;
  border-radius: 0.75rem;
  font-weight: 600;
  background-color: #d1e7dd;
  color: #0f5132;
}
.glow-green {
  --glow-color: #198754;
  background-color: #d1e7dd;
  color: #0f5132;
}

table th, table td {
  text-align: center !important;
  vertical-align: middle !important;
}

/* DATASCİECE - Butonlar */
@keyframes glow-border {
  0% {
    box-shadow: 0 0 10px var(--glow-color), 0 0 20px var(--glow-color);
  }
  50% {
    box-shadow: 0 0 20px var(--glow-color), 0 0 40px var(--glow-color);
  }
  100% {
    box-shadow: 0 0 10px var(--glow-color), 0 0 20px var(--glow-color);
  }
}

.glow {
  animation: glow-border 1.5s ease-in-out infinite;
  border: 2px solid var(--glow-color);
  border-radius: 0.75rem;
  font-weight: 600;
}

.glow-green {
  --glow-color: #198754;
  background-color: #d1e7dd;
  color: #0f5132;
}
.btn.glow:hover {
  box-shadow: 0 0 15px var(--glow-color), 0 0 30px var(--glow-color);
}

/* Buton renklerine göre glow renkleri tanımla */
.btn-success.glow   { --glow-color: #198754; }
.btn-info.glow      { --glow-color: #0dcaf0; }
.btn-warning.glow   { --glow-color: #ffc107; }
.btn-danger.glow    { --glow-color: #dc3545; }
.btn-primary.glow   { --glow-color: #0d6efd; }
.btn-secondary.glow { --glow-color: #6c757d; }

/* Buton yazıları silinme yazılma animasyonu */
.btn-typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid white;
  animation:
    typing 3s steps(var(--char-count), end) infinite alternate,
    blink 1.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}


/* TOAST CSS */
#toast-wrapper {
  position: fixed;
  top: 80px; /* ✅ mesajın görünme yeri (toast.html'ye de bak) */
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.75rem;
  max-width: 500px;
}

.toast-box {
  background-color: #f0f0f0;
  border-left: 10px solid #17a2b8;
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;

  width: 480px;
  min-height: 60px;
  box-sizing: border-box;
  word-wrap: break-word;
  font-size: 0.95rem;
}

.toast-box.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-box.hide {
  opacity: 0;
  transform: translateX(30px);
}

.toast-box.info { border-left-color: #17a2b8; }
.toast-box.success { border-left-color: #28a745; }
.toast-box.warning { border-left-color: #ffc107; }
.toast-box.danger  { border-left-color: #dc3545; }

.close-btn {
  position: absolute;
  top: 4px;
  right: 6px;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}



/* col_0 */
.info-card {
  min-width: 120px;
  max-width: 100%;
  flex: 1 1 180px;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  padding: 0.5rem 1rem;
  box-sizing: border-box;
  background: #fff;
  border-radius: 0.75rem;
  border: 2px groove #198754;
  color: #0f5132;
  font-weight: 500;
  margin-bottom: 0;
}
@media (max-width: 576px) {
  .info-card { min-width: 90px; font-size: 0.96rem; padding: 0.5rem 0.4rem; }
  .info-image { max-width: 60px !important; }
}
.info-card span {
  background:#fff; 
  border-radius:8px; 
  padding:0.25rem 0.7rem; 
  display:block;
  flex: 1 1 0;
  min-width:0;
  word-break:break-word;
  overflow-wrap:break-word;
  white-space:normal;
}
.info-image {
  display: block;
  max-width: 120%;
  max-height: 130%;
  margin: 0 auto 20px auto;  /* ortalar ve alta boşluk bırakır */
  transition: box-shadow 0.2s;
  box-shadow: 0 6px 16px #19875418;  /* hafif gölge şıklığı */
  border-radius: 6px;
}
.info-image:hover {
  box-shadow: 0 8px 24px #19875435;
  filter: brightness(1.07);
}
@media (max-width: 576px) {
  .info-image {
    max-width: 195px;         /* mobilde otomatik küçülür */
    margin-bottom: 10px;
  }
}

.info-card-input {
  /* Min veya max-height/width gerekirse ayarla: */
  border: 2px solid #dbb314;
  min-width: 160px;
  max-width: 100%;
  box-sizing: border-box;
}
.info-card-input .input-group {
  width: 100%;
}

/* alert */
#alertBox {
  transition: opacity 0.5s;
}
#placeholderBox {
  transition: opacity 0.5s;
}
/* spinbox */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 1 !important;
    transition: none !important;
}

input[type="number"] {
  font-weight: bold !important;
}
.center-row-btn {
  width: 100%;
}
.btn-icon {
  min-width: 23px;  /* ikonun alanını sabit tut */
  height: 1.3em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-label {
  flex-grow: 1;
  text-align: center;
  font-size: 0.97rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* logo-başlık ve söz responsive */
@media (max-width: 700px) {
  .pb-flex-row {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
    padding-bottom: 0 !important;
  }
  .pb-logo {
    margin-top: 75px;
    margin-bottom: 1px;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 10px !important;
    flex-basis: auto !important;
    width: 100% !important;
  }
  .pb-center {
    margin-bottom: 15px;
    width: 100% !important;
    align-items: center !important;
  }
  .pb-soz {
    display: none !important;
  }
  #placeholderBox {
    padding-top: 18px !important;
  }
  #placeholderBox img.info-image {
    min-width: 80px !important;
    width: 90px !important;
    height: 90px !important;
  }
}

/* “Başa dön” butonunu */
#scrollToTopBtn {
  display: none;             /* Başta görünmesin */
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #555;
  color: white;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 8px;
  transition: background-color 0.3s;
}
#scrollToTopBtn:hover {
  background-color: #333;
}

/* dil seçeneği */
.lang-toggle-button {
  background: linear-gradient(to right, #2980b9, #2c3e50); /* koyu mavi degrade */
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}
.lang-toggle-button:hover {
  background: linear-gradient(to right, #2c3e50, #2980b9);
  transform: scale(1.05);
  text-decoration: none;
  color: #fff;
}
.lang-toggle-button:hover {
  transform: scale(1.05);
}










.welcome-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
}

.welcome-container {
    text-align: center;
    color: white;
    padding: 40px 60px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    animation: fadeIn 1.5s ease-in-out;
    max-width: 700px;
}

.welcome-text {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    animation: slideDown 1.2s ease-in-out;
}

.welcome-subtext {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.6;
}

.welcome-link {
    color: #ffd966;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.welcome-link:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,0.8);
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideDown {
    from {transform: translateY(-30px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}
