/* ================================
   GENEL TASARIM - TEMEL STİLLER
================================= */

body {
  background: linear-gradient(180deg, #071024 0%, #0d1834 100%);
  color: #f4f4f4;
  font-family: "San Francisco", "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Kartlar */
.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #f4f4f4;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(122, 92, 240, 0.4);
}

/* Başlıklar */
h1, h2, h3, h4, h5, h6 {
  color: #fff;
}

/* ================================
   BUTONLAR
================================= */

.btn-gradient {
  background: linear-gradient(135deg, #071024, #3b2667);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.3s ease;
  box-shadow: 0 0 12px rgba(122, 92, 240, 0.4);
}

.btn-gradient:hover {
  background: linear-gradient(135deg, #4b358a, #0b1434);
  transform: translateY(-2px);
  color: #fff;
}

#btnAddCustomer,
#btnAddProject {
  composes: btn-gradient;
}

/* ================================
   MODAL TASARIMLARI
================================= */

.modal-content {
  background: linear-gradient(145deg, #071024, #111b38);
  color: #f4f4f4;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
  color: #fff;
  font-weight: 600;
}

/* Modal içi form alanları */
.modal-content input,
.modal-content select,
.modal-content textarea {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 8px 10px;
  transition: all 0.2s ease;
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
  outline: none;
  border-color: #7a5cf0;
  box-shadow: 0 0 6px #7a5cf0;
  background: rgba(255, 255, 255, 0.15);
}

label {
  color: #d3d3d3;
  font-weight: 500;
}

/* Modal içindeki kaydet butonu */
.modal-content .btn-primary {
  background: linear-gradient(135deg, #7a5cf0, #4a2f87);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 16px;
}

.modal-content .btn-primary:hover {
  background: linear-gradient(135deg, #8f76ff, #5a3d9e);
}

/* ================================
   ARAMA VE FİLTRE ALANI
================================= */

.search-filter-container {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 20px;
}

#searchInput {
  background: linear-gradient(135deg, #0b1434, #1a2457);
  border: none;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  width: 100%;
  max-width: 300px;
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.1);
}

#searchInput::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

#projectFilter {
  background: linear-gradient(135deg, #0b1434, #1a2457);
  border: none;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

/* ================================
   KART TASARIMLARI
================================= */

.customer-card {
  background: linear-gradient(145deg, #0c1834, #1a2457);
  color: #f4f4f4;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: 0.3s ease;
}

.customer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(122, 92, 240, 0.3);
}

.edit-icon {
  cursor: pointer;
  font-size: 18px;
  color: #a889ff;
  transition: 0.2s ease;
}

.edit-icon:hover {
  color: #c2aaff;
}

/* ================================
   PROJE FİLTRELEME ve ARAMA KUTUSU
================================= */

/* Arama + Filtre yan yana kutu */
.search-filter-container {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #0b1434, #1a2457);
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(122, 92, 240, 0.3);
}

/* Arama kutusu */
#searchInput {
  flex: 1;
  background: linear-gradient(135deg, #091431, #182450);
  border: none;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  min-width: 120px;
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.1);
  transition: 0.3s ease;
}

#searchInput:focus {
  box-shadow: 0 0 8px #7a5cf0;
  outline: none;
}

#searchInput::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Proje filtreleme alanı */
#projectFilter {
  background: linear-gradient(135deg, #071024, #3b2667);
  border: none;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(122, 92, 240, 0.3);
  font-weight: 500;
  min-width: 180px;
  transition: 0.3s ease;
  appearance: none;
  cursor: pointer;
  background-image: linear-gradient(135deg, #071024, #3b2667),
    url("data:image/svg+xml;utf8,<svg fill='white' height='16' width='16' xmlns='http://www.w3.org/2000/svg'><polygon points='0,0 16,0 8,10'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}

#projectFilter:hover {
  background: linear-gradient(135deg, #4b358a, #0b1434);
}

#projectFilter:focus {
  outline: none;
  box-shadow: 0 0 8px #7a5cf0;
}

/* -------------------------
   PROJE FİLTRELEME - Koyu / Gradient Zorlayıcı Stil
   (put at the end of style.css)
   ------------------------- */

/* Genel .form-select override (Bootstrap'i zorla) */
.form-select,
select#projectFilter,
select#custProject {
  background: linear-gradient(135deg, #071024, #16284b) !important;
  color: #e3e7f2 !important;
  border: 1px solid rgba(99,115,255,0.28) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.45), 0 3px 10px rgba(11,17,34,0.25);
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.06) 50%),
    linear-gradient(135deg, rgba(0,0,0,0.06) 50%, transparent 50%),
    linear-gradient(90deg, rgba(0,0,0,0.02), rgba(0,0,0,0.02));
  background-position: calc(100% - 30px) calc(1em + 2px), calc(100% - 20px) calc(1em + 2px), 100% 0;
  background-size: 8px 8px, 8px 8px, 1px 100%;
  background-repeat: no-repeat;
}

/* Eğer Bootstrap kendi arrow icon'unu ekliyorsa onu gizle (IE/Edge) */
.form-select::-ms-expand {
  display: none;
}

/* Option'ları da zorla koyu yap */
.form-select option,
select#projectFilter option,
select#custProject option {
  background-color: #071024 !important;
  color: #e3e7f2 !important;
}

/* Focus durumları */
.form-select:focus,
select#projectFilter:focus,
select#custProject:focus {
  outline: none !important;
  box-shadow: 0 0 10px rgba(99,115,255,0.22) !important;
  border-color: rgba(99,115,255,0.6) !important;
}

/* Eğer select beyaz kutu olarak görünmeye devam ederse (özellikle mobil),
   kapsayıcıya koyu arka plan ekleyelim ki beyaz kutu daha az göze çarpısın */
.select-wrap {
  display: inline-block;
  border-radius: 10px;
  background: linear-gradient(135deg, #071024, #16284b);
  padding: 6px;
}

/* Koyu temalı kırmızı gradient "Kişiyi Sil" butonu */
.btn-danger-gradient {
  background: linear-gradient(135deg, #8b0000, #d12b2b);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  transition: 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

.btn-danger-gradient:hover {
  background: linear-gradient(135deg, #b30000, #ff4040);
  box-shadow: 0 0 14px rgba(255, 64, 64, 0.4);
  transform: translateY(-2px);
}

.small-btn {
    padding: 12px 20px !important;   /* daha küçük iç boşluk */
    font-size: 12px !important;     /* daha küçük yazı */
    border-radius: 8px !important;  /* daha modern köşe */
}

#newNoteText::placeholder {
    color: #e6e6e6 !important;
    opacity: 1;
}

/* İletişim butonları yan yana */
.contact-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Arama + WhatsApp butonları – büyük yuvarlak */
#btnCallCustomer,
#btnWhatsAppCustomer {
    width: 55px !important;
    height: 55px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: 28px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* WhatsApp ikonu */
.wh-icon {
    width: 30px;
    height: 30px;
}

.crm-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}



