/* GENEL SIFIRLAMA */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.ck.ck-editor {
    margin-bottom: 20px !important;
}

.ck.ck-content.ck {
    padding: 5px 30px;
}

.ck.ck-powered-by {
    display: none !important;
}

#logo a {
    text-decoration: none;
    color: #ffcc00;
}

/* VÜCUT AYARLARI */
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #f4f7f9;
  color: #333;
  line-height: 1.6;
  max-width: 1400px;
  margin: 0 auto;
}

/* HEADER (TEMEL STİL) */
/* Header.php'deki inline tanımlarla uyumlu */
header {
  color: #fff;
  justify-content: space-between;
  border-radius: 8px;
}

#rechte {
    margin-top:50px;
    font-size: 15px;
    color:#ccdef9;
    text-decoration:none;
    display:inline-block;    
}

#rechte a {
    font-size: 15px;
    color:#e9e93d;
    text-decoration:none;
    display:inline-block;    
}

header h1 {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

/* NAVİGASYON */
nav {
  position: relative;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 0;
  padding: 0;
  z-index: 99999;
  justify-content: center;
}

nav ul li {
  margin-right: 20px;
  margin-bottom: 10px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #ffcc00;
}

/* AKTF MENÜ LİNKİ */
nav ul li a.active {
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  border-radius: 4px;
  color: #ffcc00;
}

/* MENU TOGGLE */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* CONTENT WRAPPER - Main ve Footer’y sarmalayan kapsayıcı */
.content-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Main içeriğin kalan alanı doldurması iin */
.content-wrapper main {
  flex: 1;
}

/* ANA İÇERİK ALANI (Desktop) */
main {
  max-width: 1200px;
  width: 73%;
  margin: 20px;
  float: right;
  background: #fff;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* FOOTER (ALT BİLGİ) */
footer {
  background: #eee;
  padding: 15px;
  text-align: center;
  border-radius: 8px;
  margin-top: 20px;
  width: 100%;
  display: inline-block;
}

/* BALIKLARIN ORTALANMASI */
h1, h2, h3, h4, h5, h6 {
  text-align: center;
  margin-bottom: 20px;
}

/* FORMLAR */
form {
  max-width: 600px;
  margin: 20px auto;
  background: #fff;
  padding: 25px;
  border: 1px solid #e1e8ee;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="date"],
form select,
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid #ccd0d5;
  border-radius: 4px;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="password"]:focus,
form input[type="date"]:focus,
form select:focus,
form textarea:focus {
  border-color: #004080;
  outline: none;
}

form button,
form input[type="submit"] {
  display: block;
  background-color: #004080;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover,
form input[type="submit"]:hover {
  background-color: #003366;
}

button#deleteZertifikatBtn, button#deleteVertragBtn {
    background-color: #e02a2a;
    padding: 7px;
    font-size: 12px;
}

div#zertifikatSection, div#vertragSection {
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid #ccd0d5;
    border-radius: 4px;
    font-size: 1em;
}

/* TABLOLAR */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

table th{
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}


table td {
  padding: 10px 30px;
  border: 1px solid #ddd;
  text-align: left;
}

table th {
  background-color: #f2f2f2;
  font-weight: bold;
  width: 250px;
}

#results {
  overflow-x: scroll;
}

form {
  max-width: 600px;
  margin: 20px auto;
  background: #fff;
  padding: 25px;
  border: 1px solid #e1e8ee;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="date"],
form select,
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid #ccd0d5;
  border-radius: 4px;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="password"]:focus,
form input[type="date"]:focus,
form select:focus,
form textarea:focus {
  border-color: #004080;
  outline: none;
}

form button,
form input[type="submit"] {
  display: block;
  background-color: #004080;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover,
form input[type="submit"]:hover {
  background-color: #003366;
}

tr:hover {
    background: #e4ecfb;
    color: #000000;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}


tr a {
    text-decoration: none;
}

/* Select2 ile çakışmayı en aza indirmek iin ek dzenlemeler */
.select2-container {
  width: 100% !important; /* Form select'lerinizle uyumlu olsun diye tam genişlik */
  margin-bottom: 8px;     /* Form elemanı aralıklarınzla tutarlı */
}
.select2-container .select2-selection--multiple {
  min-height: 40px; 
  border: 1px solid #ccd0d5; 
  border-radius: 4px;
  background-color: #fff;
  cursor: text;
}
.select2-container .select2-selection--multiple .select2-selection__choice {
  background-color: #e8e8e8;
  border: none;
  color: #333;
  font-weight: normal;
}
.select2-container--default .select2-results>.select2-results__options {
  max-height: 200px; /* Uzun listeler iin scrollbar */
  overflow-y: auto;
}
.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: #004080;
}

@media print {
    header, nav, footer, .no-print {
        display: none!important;
    }
}
/* Basit buton stilleri */
.my-btn {
    background-color: #004080;
    color: #fff;
    border: none;
    padding: 8px 15px;
    font-size: 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
    text-decoration: none;
    font-family: Arial, sans-serif;
}
.my-btn:hover {
    background-color: #003366;
}
.my-btn-delete {
    background-color: #800000 !important;
}
.my-btn-delete:hover {
    background-color: #660000 !important;
}

/* DUYARLI (RESPONSIVE) DÜZENLEMELER - MOBİL */
@media (max-width: 768px) {
  html, body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  header, main, footer {
    padding: 15px;
  }
  header {
    width: 100%;
    background: linear-gradient(139deg, #6996f8, #001242);
  }
  .content-wrapper {
    margin: 0;
  }
  main {
    width: 100%;
    max-width: 100%;
    margin: 15px 0;
    float: none;
  }
  #rechte {
    display: none !important;
  }
  /* Mobilde menüyü varsayılan olarak gizle */
  nav ul {
    display: none;
    flex-direction: column;
    align-items: center;
  }
  nav ul li {
    margin-right: 0;
  }
  .menu-toggle {
    display: block;
  }
  form {
    padding: 20px;
  }
}

/* MASAÜSTÜ DÜZEN - HEADER SOL KENAR ÇUBUĞU */
@media (min-width: 769px) {
  header {
    top: 0 !important;
    left: 0;
    width: 23%;
    height: 100vh;
    position: fixed;
    display: inline-block;
    overflow: hidden;
    flex-direction: column;
    padding: 20px;
    margin: 0;
    background: linear-gradient(139deg, #6996f8, #001242);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
  }
  #logo {
    display: flex
;
    justify-content: center;
    width: 100%;
}
  /* çerik wrapper’ı fixed header’ın yanına kaydıryoruz */
  .content-wrapper {
    margin-left: 270px;
  }
  
  nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    margin-top: 50px;
  }
  nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 0;
  }
  nav ul li {
    width: 100%;
  }
  nav ul li a {
    display: block;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  }
  nav ul li a:hover {
    background: rgb(255 255 255 / 14%);
    transform: translateX(5px) scale(1.01);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
  }
  .menu-toggle {
    display: none;
  }
  footer {
      display: none;
  }
}
