/* CarEcuFile ana site: ozel uyari (Swal uyumlu) + toast. Marka: #FF751F, koyu zemin, Montserrat. */
html.cef-swal-open { overflow: hidden; }

.cef-swal-container {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(6, 8, 12, 0.72);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  animation: cefFade .16s ease-out;
}
.cef-swal-container.cef-out { opacity: 0; transition: opacity .16s ease-in; }

.cef-swal-popup {
  position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow-y: auto;
  box-sizing: border-box; padding: 34px 30px 28px; border-radius: 16px; text-align: center;
  color: #fff; font-family: "Montserrat Regular", Arial, sans-serif;
  background: linear-gradient(160deg, #273f83 0%, #0c0d10 50%, #181b23 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  animation: cefPop .18s ease-out;
}
.cef-swal-close {
  position: absolute; top: 10px; right: 14px; width: 32px; height: 32px; padding: 0;
  background: none; border: 0; color: rgba(255, 255, 255, 0.6); font-size: 28px; line-height: 1; cursor: pointer;
}
.cef-swal-close:hover { color: #FF751F; }

.cef-swal-icon { width: 72px; height: 72px; margin: 0 auto 18px; }
.cef-swal-icon svg { width: 100%; height: 100%; display: block; }
.cef-swal-icon.cef-success { color: #3fc380; }
.cef-swal-icon.cef-error { color: #f1566b; }
.cef-swal-icon.cef-warning { color: #FF751F; }
.cef-swal-icon.cef-info, .cef-swal-icon.cef-question { color: #4aa8ff; }

.cef-swal-title { margin: 0 0 12px; font: 24px/1.3 "Montserrat Bold", Arial, sans-serif; color: #fff; }
.cef-swal-body { font-size: 15px; line-height: 24px; color: rgba(255, 255, 255, 0.82); word-wrap: break-word; }

/* html icerikli formlar (yorum yaz) */
.cef-swal-body .form-group { margin-bottom: 16px; text-align: left; }
.cef-swal-body .form-group .title { margin-bottom: 8px; font-family: "Montserrat SemiBold", Arial, sans-serif; font-size: 14px; color: #fff; }
.cef-swal-body .text-area { position: relative; }
.cef-swal-body input[type="text"], .cef-swal-body textarea {
  width: 100%; box-sizing: border-box; padding: 12px 14px; color: #fff; font: 14px "Montserrat Regular", Arial, sans-serif;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px; outline: 0;
}
.cef-swal-body textarea { min-height: 110px; resize: vertical; }
.cef-swal-body input:focus, .cef-swal-body textarea:focus { border-color: #FF751F; }
.cef-swal-body .text-area input[type="text"] { padding-right: 44px; }
.cef-swal-body .text-area .icon { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); line-height: 0; }
.cef-swal-body .text-area .icon img { width: 18px; opacity: .7; }

.cef-swal-validation { margin-top: 14px; padding: 10px 12px; border-radius: 8px; font-size: 13px; color: #ffb4be; background: rgba(241, 86, 107, 0.14); }

.cef-swal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.cef-swal-btn {
  min-width: 110px; padding: 11px 26px; border: 0; border-radius: 10px; cursor: pointer;
  font: 15px "Montserrat SemiBold", Arial, sans-serif; color: #fff; transition: filter .15s, transform .05s;
}
.cef-swal-confirm { background-color: #FF751F; }
.cef-swal-cancel { background-color: #4b5565; }
.cef-swal-btn:hover { filter: brightness(1.1); }
.cef-swal-btn:active { transform: translateY(1px); }
.cef-swal-btn:focus-visible, .cef-swal-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* toast */
.cef-toast-box {
  position: fixed; top: 16px; right: 16px; z-index: 10001; display: flex; flex-direction: column; gap: 10px;
  width: 340px; max-width: calc(100vw - 32px); pointer-events: none;
}
.cef-toast {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 12px; cursor: pointer; pointer-events: auto;
  color: #fff; font: 14px/20px "Montserrat Medium", Arial, sans-serif; background: #1b1f27;
  border: 1px solid rgba(255, 255, 255, 0.08); border-left: 4px solid #4aa8ff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  opacity: 0; transform: translateX(24px); transition: opacity .2s, transform .2s;
}
.cef-toast.cef-in { opacity: 1; transform: none; }
.cef-toast.cef-success { border-left-color: #3fc380; }
.cef-toast.cef-error { border-left-color: #f1566b; }
.cef-toast.cef-warning { border-left-color: #FF751F; }
.cef-toast-ico { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; }
.cef-toast-ico svg { width: 100%; height: 100%; display: block; }
.cef-toast.cef-success .cef-toast-ico { color: #3fc380; }
.cef-toast.cef-error .cef-toast-ico { color: #f1566b; }
.cef-toast.cef-warning .cef-toast-ico { color: #FF751F; }
.cef-toast.cef-info .cef-toast-ico { color: #4aa8ff; }
.cef-toast-text strong { display: block; margin-bottom: 2px; font-family: "Montserrat Bold", Arial, sans-serif; }

@keyframes cefFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cefPop { from { opacity: 0; transform: scale(.94) translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .cef-swal-container, .cef-swal-popup, .cef-toast { animation: none; transition: none; }
}
@media (max-width: 480px) {
  .cef-swal-popup { padding: 28px 20px 22px; }
  .cef-swal-title { font-size: 20px; }
  .cef-toast-box { top: 10px; right: 10px; left: 10px; width: auto; max-width: none; }
}
