﻿/* ===========================================
   ALENİ GLOBAL RENK PALETİ
   =========================================== */
:root {
  --primary: #cc1a22; /* Aleni Logosu Kırmızısı */
  --secondary: #1a1a1a; /* Sigorta Ekspertiz Siyahı */
  --background: #F8F8F8; /* Temiz Gri/Beyaz Arka Plan */
  --accent: #808080; /* Logodaki Gri Ayırıcı Çizgi Rengi */
  --text: #1a1a1a;
}

/* ===========================================
   GENEL RESET
   =========================================== */
* {
  box-sizing: border-box;
}

/* ===========================================
   GİRİŞ SAYFASI (AUTH) TASARIMI
   =========================================== */
body:not(.layout-active) {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Mavi tonlar yerine, Kırmızı ve Siyahın çok hafif radial gradient yansımaları eklendi */
  background: radial-gradient(circle at top left, rgba(204, 26, 34, 0.08), transparent 55%), radial-gradient(circle at bottom right, rgba(26, 26, 26, 0.12), transparent 55%), var(--background);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

body.layout-active {
  display: flex !important;
  flex-direction: column !important;
  justify-content: initial !important;
  align-items: initial !important;
  background: var(--background) !important;
  min-height: 100vh;
}

/* AUTH WRAPPER */
.auth-wrapper {
  width: 100%;
  max-width: 1100px;
  padding: 24px;
}

/* CARD */
.auth-card {
  background: rgba(248, 248, 248, 0.92);
  backdrop-filter: blur(18px);
  border-radius: 10px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.10);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

@media (max-width: 768px) {
  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    display: none;
  }
}

/* SOL TARAF HERO */
.auth-hero {
  position: relative;
  padding: 32px;
  background: linear-gradient(145deg, var(--primary), var(--secondary));
  color: #fff;
  overflow: hidden;
}

  .auth-hero::before,
  .auth-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.25;
    animation: float 12s ease-in-out infinite;
  }

  /* Parlamalar kurumsal renklere göre güncellendi */
  .auth-hero::before {
    width: 220px;
    height: 220px;
    background: #ff4d4d; /* Daha açık bir kırmızı parlama */
    top: -60px;
    right: -40px;
  }

  .auth-hero::after {
    width: 260px;
    height: 260px;
    background: #F8F8F8;
    bottom: -70px;
    left: -40px;
    animation-delay: -4s;
  }

/* Floating Kart Animasyonu */
@keyframes float {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -10px, 0) scale(1.03);
  }
}

.auth-footer-text {
  margin-top: 20px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.auth-logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(248, 248, 248, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 18px;
}

.auth-logo-text {
  font-size: 18px;
  font-weight: 600;
}

.auth-hero-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
}

.auth-hero-subtitle {
  font-size: 14px;
  opacity: 0.82;
  max-width: 320px;
}

.auth-hero-badges {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(248, 248, 248, 0.3);
  background: rgba(0, 0, 0, 0.15); /* Siyah üzerine kontrast için hafif koyulaştırıldı */
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ff4d4d; /* Noktalar kurumsal kırmızı yapıldı */
}

/* Floating Card */
.auth-hero-illustration {
  position: absolute;
  right: 30px;
  bottom: 28px;
  width: 220px;
  max-width: 45%;
}

.card-floating {
  background: rgba(248, 248, 248, 0.08);
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  animation: float 10s ease-in-out infinite;
}

.card-floating-title {
  font-weight: 600;
  font-size: 12px;
}

.card-floating-text {
  font-size: 11px;
  opacity: 0.85;
}

/* FORM TARAFI */
.auth-form {
  padding: 34px 36px;
}

@media (max-width: 576px) {
  .auth-form {
    padding: 26px 22px;
  }
}

.auth-form-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--primary); /* Form başlığı kurumsal kırmızı yapıldı */
}

.auth-form-subtitle {
  font-size: 13px;
  color: #555;
  margin-bottom: 24px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary);
}

.form-control {
  border-radius: 12px;
  border: 1px solid rgba(26, 26, 26, 0.2);
  font-size: 14px;
  padding: 10px 12px;
}

  .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.15rem rgba(204, 26, 34, 0.25); /* Focus rengi kırmızı oldu */
  }

/* BUTTON */
.btn-primary-soft {
  background: var(--primary);
  border: none;
  color: #fff;
  width: 100%;
  border-radius: 14px;
  padding: 11px 16px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 12px 28px rgba(204, 26, 34, 0.35); /* Gölge tonu kırmızıya uyarlandı */
}

  .btn-primary-soft:hover {
    background: #a3151b; /* Kırmızının daha koyu bir tonu */
    transform: translateY(-1px);
    box-shadow: 0 18px 35px rgba(204, 26, 34, 0.45);
    color: #fff !important;
  }

  .btn-primary-soft:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(204, 26, 34, 0.35);
  }

/* Animasyon */
.fade-in-up {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.7s ease forwards;
}

  .fade-in-up.delay-1 {
    animation-delay: 0.1s;
  }

  .fade-in-up.delay-2 {
    animation-delay: 0.2s;
  }

  .fade-in-up.delay-3 {
    animation-delay: 0.3s;
  }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================================
   LAYOUT CSS – NAVBAR, PROFIL, CONTENT
   =========================================== */

/* LOGO BLUR PANEL */
.logo-blur-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0px 14px;
  background-color:white;
 /* backdrop-filter: blur(10px);*/
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

  .logo-blur-box img {
    height: 62px;
    padding:10px 5px !important;
    width: auto;
    border-radius: 10px;
  }

.logo-blur-text {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

/* NAVBAR */
.navbar-custom {
  background: linear-gradient(90deg, var(--primary), var(--secondary)); /* Kırmızıdan siyaha geçiş */
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  padding: 6px 0;
}

.navbar-nav {
  margin-left: auto;
  margin-right: auto;
  gap: 8px;
}

.nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  padding: 8px 8px !important;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size:12px;
}

  .nav-link:hover,
  .nav-link.active {
    background: rgba(255,255,255,0.18);
  }

/* PROFIL BAR */
.nav-profile-box {
  background: rgba(255,255,255,0.25);
  padding: 6px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(8px);
}

.nav-profile-avatar {
  background: rgba(255,255,255,0.38);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.logout-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.65);
  color: #fff;
  padding: 6px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: .2s ease;
}

  .logout-btn:hover {
    background: rgba(255,255,255,0.2);
  }

/* CONTENT WRAPPER */
.content-wrapper {
  flex: 1 0 auto;
  margin-top: 25px;
  padding-bottom: 30px;
}

/* FOOTER – NAVBAR RENKLİ ve ALTA YAPIŞIK */
footer {
  background: linear-gradient(90deg, var(--primary), var(--secondary)); /* Kırmızıdan siyaha geçiş */
  color: #fff;
  padding: 16px 0;
  text-align: center;
  width: 100%;
  margin-top: auto;
  font-size: 13px;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.25);
}

/* ===========================================
   PROFIL SAYFASI TASARIMI
   =========================================== */

.profile-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  max-width: 900px;
  margin: auto;
  margin-top: 25px;
}

.profile-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.profile-subtitle {
  color: #666;
  font-size: 14px;
  margin-bottom: 18px;
}

.profile-form .form-label {
  font-weight: 500;
  color: var(--secondary);
}

.profile-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  padding: 10px 20px;
}

.btn-style {
  width: 100% !important;
}

.btn-style {
  width: 100%;
  padding: 14px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--secondary), #000000); /* Profil butonu siyah/koyu gri yapıldı */
  color: #f1f5f9;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

  /* Parlayan efekt */
  .btn-style::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25), transparent );
    transition: left 0.35s ease;
  }

  /* Hover görünümü */
  .btn-style:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25), 0 0 15px rgba(204, 26, 34, 0.3); /* Hover gölgesi kırmızı yansımalı */
  }

    .btn-style:hover::before {
      left: 100%;
    }

  /* Tıklama efekti */
  .btn-style:active {
    transform: translateY(0);
    box-shadow: none;
  }

/**** Modallar İçin İhbar Güncellemesi **/

#ihbarLoadingModal .modal-content {
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.9);
}

/*** anasayfa kodları ***/

/* --------------------------------------------------
     HEADER VE KARTLAR
  -------------------------------------------------- */
.ihbar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap !important; /* Mobilde alt alta düşmesi için wrap yapıldı */
  gap: 15px;
  margin-bottom: 25px;
}

.ihbar-header-title {
  font-weight: 700;
  font-size: 28px;
  color: var(--primary);
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.ihbar-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 8px 25px var(--soft-shadow);
  border: 1px solid rgba(255,255,255,0.4);
  transition: all .25s ease;
  margin-bottom: 30px;
}

  /* Güncellenmiş, Zıplamayan Versiyon */
  .ihbar-card:hover {
    /* transform: translateY(-3px); --> Bu satırı sildik, artık zıplamaz */
    box-shadow: 0 12px 40px rgba(0,0,0,0.15); /* Sadece derinlik katan gölge kalsın */
    transition: box-shadow 0.3s ease; /* Gölgenin yumuşak gelmesini sağlar */
  }

/* --------------------------------------------------
     BUTONLAR VE INPUTLAR
  -------------------------------------------------- */
.btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  border-radius: 14px;
  padding: 10px 16px;
  color: white !important;
}

  .btn-primary:hover {
    background: #a3151b !important; /* Koyu Kırmızı */
    border-color: #a3151b !important;
    box-shadow: 0 0 10px rgba(204, 26, 34, 0.4);
  }

.ihbar-search-input {
  border-radius: 12px;
  border: 1px solid #ddd;
  transition: all .25s ease;
}

  .ihbar-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(204, 26, 34, 0.3);
    outline: none;
  }

/* --------------------------------------------------
     RESPONSIVE TABLO (ÖNEMLİ: MOBİL İÇİN)
  -------------------------------------------------- */
.table-responsive {
  border-radius: 16px;
  box-shadow: 0 5px 15px var(--soft-shadow);
  background: #fff;
  /* Mobilde yatay scroll çıkması için */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ihbar-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 0;
}

  .ihbar-table thead th {
    background: linear-gradient(135deg, var(--secondary), #000); /* Siyah Header */
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 14px;
    border-bottom: 3px solid var(--primary); /* Altında Kırmızı Çizgi */
    white-space: nowrap; /* Başlıkların alt alta kaymasını engeller */
  }

  .ihbar-table tbody td {
    font-size: 14px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(226,232,240,0.8);
    white-space: nowrap; /* Mobilde tabloların çirkinleşmemesi için metinleri tek satırda tutar */
    vertical-align: middle;
  }

  /* ZEBRA VE HOVER EFEKTİ */
  .ihbar-table tbody tr:nth-child(even) {
    background: rgba(248,250,252,0.9);
  }

  .ihbar-table tbody tr:nth-child(odd) {
    background: rgba(255,255,255,0.9);
  }

  .ihbar-table tbody tr {
    transition: all .2s ease;
  }

    .ihbar-table tbody tr:hover {
      background-color: rgba(204, 26, 34, 0.05); /* Hoverda hafif kırmızı arka plan */
      transform: scale(1.005);
    }

/* --------------------------------------------------
     TABLO İÇİ İŞLEM BUTONLARI & BADGE
  -------------------------------------------------- */
.status-badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status-open {
  background: rgba(40, 167, 69, 0.15);
  color: #28a745;
  border: 1px solid #28a745;
}

.status-closed {
  background: rgba(108, 117, 125, 0.15);
  color: #6c757d;
  border: 1px solid #6c757d;
}

.ihbar-table td .btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 10px !important;
  height: 32px;
  border-radius: 999px !important;
  font-size: 13px;
}

.btn-action-view {
  background: var(--secondary);
  color: white;
  border: none;
}

  .btn-action-view:hover {
    background: #000;
    color: white;
  }

.btn-action-pdf {
  background: var(--primary);
  color: white;
  border: none;
}

  .btn-action-pdf:hover {
    background: #a3151b;
    color: white;
  }

/* --------------------------------------------------
     MOBİL DÜZENLEMELER
  -------------------------------------------------- */
@media (max-width: 768px) {
  .ihbar-header {
    flex-direction: column;
    text-align: center;
  }

    .ihbar-header > div {
      width: 100%;
    }

    .ihbar-header a.btn {
      width: 100%;
    }

  .ihbar-card {
    padding: 16px;
  }
}


/* Dropdown seçildiğinde (odaklandığında) çıkan mavi çerçeveyi siler */
#sorumluFiltre:focus, .form-select:focus {
  outline: none !important;
  box-shadow: none !important;
  border-color: #ced4da; /* Varsayılan gri renginde kalsın */
}

/* 29.04.2026 */

/* =========================================
   TIMELINE (ZAMAN TÜNELİ) NOT TASARIMI
========================================= */
.timeline-container {
  position: relative;
  padding-left: 50px; /* ⚡ KESİLMEYİ ÖNLEMEK İÇİN SOL BOŞLUK ARTIRILDI */
  margin-top: 10px;
}

  /* Sol Taraftaki Dikey Çizgi */
  .timeline-container::before {
    content: '';
    position: absolute;
    left: 23px; /* ⚡ Çizgi tam ikonun merkezine hizalandı */
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
  }

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

/* Çizgi Üstündeki Yuvarlak İkon */
.timeline-icon {
  position: absolute;
  left: -38px; /* ⚡ İkon tam çizginin üzerine oturtuldu */
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--primary); /* Sistem ana rengin */
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #f8fafc; /* Arka planla uyumlu çerçeve */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

  .timeline-icon svg {
    width: 12px;
    height: 12px;
  }

/* Not İçerik Kutusu */
.timeline-content {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 15px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

/* Text Editor'den (Summernote) Gelen Etiketlerin Düzenlenmesi */
.not-icerik-html ul,
.not-icerik-html ol {
  padding-left: 20px;
  margin-bottom: 0;
}

.not-icerik-html p:last-child {
  margin-bottom: 0;
}

/* =========================================
   ALENİ AKILLI PRELOADER TASARIMI
========================================= */

/* PRELOADER ARKA PLAN VE MERKEZLEME */
#aleni-global-preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #F8F8F8; /* Sayfa arkaplan rengin */
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* LOGO VE HALKALARI TUTAN KUTU */
.preloader-content {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* DIŞA DOĞRU DÖNEN KIRMIZI-SİYAH HALKA */
.spinner-rings {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: #cc1a22; /* Aleni Kırmızısı */
  border-left-color: #1a1a1a; /* Koyu Siyah/Gri */
  animation: spin-right 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

  /* İÇE DOĞRU TERS DÖNEN İKİNCİ HALKA */
  .spinner-rings::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: #1a1a1a;
    border-right-color: #cc1a22;
    animation: spin-left 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  }

/* ORTADAKİ LOGO (Nefes Alma Efekti) */
.preloader-logo {
  width: 70px; /* Logonu boyutuna göre burayı daraltıp büyütebilirsin */
  z-index: 10;
  animation: pulse-logo 1.5s ease-in-out infinite;
}

/* ANİMASYON KEYFRAMELERİ */
@keyframes spin-right {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes spin-left {
  100% {
    transform: rotate(-360deg);
  }
}

@keyframes pulse-logo {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(0.85);
    opacity: 0.8;
  }
}