/* Genel */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, #e6f0fc, #f5e9fa);
    color: #333;
    position: relative;
    min-height: 100vh;
}

/* Ana Container */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(to right, #e6f0fc, #f5e9fa);
}

/* Header Stili */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 100;
}

.app-header h1 {
  margin: 0;
  font-size: 28px;
  background: linear-gradient(45deg, #6FB1FC, #B985D6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-container {
  width: 200px;
}

.header-logo {
  height: 70px;
  width: auto;
}

/* Main Layout */
.dashboard-container {
  display: flex;
  flex: 1;
  padding: 1rem;
  height: calc(100vh - 80px);
}

/* SIDEBAR */
.sidebar {
  width: 80px;
  background: linear-gradient(to right, #6FB1FC, #B985D6);
  border-radius: 10px;
  transition: width 0.3s ease;
  overflow: hidden;
  height: 100%;
  margin-right: 1rem;
}

.sidebar.expanded {
  width: 250px;
}

/* Nav Links */
.nav-links li {
  padding: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  transition: all 0.3s ease;
}

.sidebar.expanded .nav-links li {
  justify-content: flex-start;
}

/* Emoji stilini ayarla */
.nav-links li .emoji {
  font-size: 1.5em;
  min-width: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Text stilini ayarla */
.nav-links li .text {
  margin-left: 12px;
  opacity: 0;
  width: 0;
  display: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  color: white;
  font-weight: bold;
}

/* Hover efekti */
.nav-links li:hover .text {
  color: #333;
}

.nav-links li:hover .emoji {
  opacity: 0.8;
}

.sidebar.expanded .nav-links li .text {
  opacity: 1;
  width: auto;
  display: inline;
}

/* MAIN CONTENT */
.main-content {
  flex: 1;
  background: white;
  border-radius: 10px;
  padding: 1rem;
  /* overflow-y: auto; */
  height: 100%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Form Grupları */
.inline-group {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  gap: 25px; /* Div'ler arasında sabit 25px boşluk */
}

.inline-group > div {
  flex: 1;
  margin-right: 15px;
  margin-left: 15px; /* Önceki margin-right'ı kaldırdım, gap kullanıyoruz artık */
}

.inline-group > div:last-child {
  margin-right: 15px;
  margin-left: 15px;
}

/* Section Başlıkları */
.section {
  margin-bottom: 30px;
}

.section h2 {
  margin-bottom: 20px;
  font-size: 24px;
  background: linear-gradient(45deg, #6FB1FC, #B985D6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section h3 {
  margin: 25px 0 15px 0;
  font-size: 18px;
  background: linear-gradient(45deg, #6FB1FC, #B985D6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0; /* Açık gri çizgi */
  width: 100%; /* Tam genişlikte çizgi */
  margin-bottom: 15px; /* Alt başlıktan sonraki boşluğu azalttım */
}

/* Form elemanları */
.form-element {
  width: 96%;
  padding: 8px;
  margin: 0 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

select.form-element {
  background-color: white;
  height: 35px;
}

/* Save Changes butonu */
.button-save {
  background: linear-gradient(45deg, #6FB1FC, #B985D6);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.button-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.success-message {
  transition: opacity 1s ease !important;
  opacity: 1 !important;
}

.toggle-btn {
  background: none;
  border: none;
  color: white;
  font-size: 50px;
  padding: 15px;
  width: 100%;
  text-align: center;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links li {
  padding: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center; /* Merkeze hizalama */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  transition: all 0.3s ease;
}

/* Sidebar açıkken sol hizalama */
.sidebar.expanded .nav-links li {
  justify-content: flex-start;
}

/* Emoji stilini ayarla */
.nav-links li .emoji {
  font-size: 1.5em;
  min-width: 32px;
  display: flex;
  justify-content: center; /* Emojiyi merkeze al */
  align-items: center;
}

/* Text stilini ayarla */
.nav-links li .text {
  margin-left: 12px;
  opacity: 0;
  width: 0;
  display: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  color: white;
  font-weight: bold;
}

/* Hover efekti */
.nav-links li:hover .text {
  color: #333;
}

.nav-links li:hover .emoji {
  opacity: 0.8; /* Hover'da emojiyi biraz soldur */
}

.sidebar.expanded .nav-links li .text {
  opacity: 1;
  width: auto;
  display: inline;
}

.main-content {
  flex: 1;  /* Kalan tüm alanı doldur */
  min-width: 0;  /* Taşma kontrolü */
  background: white;
  border-radius: 10px;
  padding: 2rem;
  overflow-y: auto;
  height: 100%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: margin-left 0.3s ease;
  margin: 0; /* Tüm marginleri sıfırla */
  position: relative; /* Position relative ekle */
}

.sidebar.expanded + .main-content {
  margin-left: 2px;
}

/* Sadece sidebar expanded kontrolü için gerekli kurallar bırakıldı */
.sidebar:not(.expanded) .hideText {
  display: none;
}
.sidebar.expanded .hideText {
  display: inline;
}

.section-box {
  display: none;
}

.section-box.active {
  display: block;
}

.checkbox-block label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2; /* metin yüksekliği sabitlenir */
}

.checkbox-block input[type="checkbox"] {
    transform: translateY(-1px); /* çok nazik bir yukarı kaydırma */
}

/* Header */
.form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px;
    background: #ffffffdd;
    position: sticky;
    top: 0;
    z-index: 2;
    border-bottom: 1px solid #ddd;
    flex-wrap: nowrap;
}

.form-header h1 {
    margin: 0 auto;
    font-size: 36px;
    background: linear-gradient(to right, #4A90E2, #9B59B6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    flex-grow: 1;
}

/* Logo */
.top-left-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 3;
    margin-right: auto;
}

.background-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
    width: 400px;
    max-width: 80%;
    height: auto;
}

/* Dil Seçici */
.language-selector-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 5;
}

/* Konteyner */
.container {
    margin-top: 60px;
    max-width: 1000px;
    margin: 30px auto;
    padding: 30px 40px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.login-container {
    max-width: 500px; /* sadece login sayfasında geçerli */
}

/* Form Elemanları */
form label {
    display: block;
    margin-top: 15px;
    font-weight: 600;
}

label.required::after {
    content: " *";
    color: red;
}

.form-element {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

input[type="checkbox"] {
    margin-right: 6px;
}

.checkbox-row {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.forgot-password-link {
    margin-top: 20px;
    text-align: center;
}

.forgot-password-link a {
    color: #4A90E2;
    font-weight: 500;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.forgot-password-link a:hover {
    color: #357ABD;
}

.inline-group {
  display: flex;
  gap: 0.5rem; /* Grup içindeki elemanlar arası boşluğu azalttım */
  margin-bottom: 0.8rem; /* Grupların birbirleri arası boşluğu arttırdım */
}

textarea.form-element {
    resize: vertical;
    height: 60 px;
}
.question-block {
    margin-bottom: 1px;
    padding-top: 10px;
}

/* Form Bölümü */
.section {
    color: #333333;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px 20px;
    background-color: #f9f9ff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-size: 15px;
    margin-bottom: 2rem; /* Section'lar arası boşluğu arttırdım */
}

.section h2 {
  margin-bottom: 1.75rem;
}

.section h3 {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

/* Buton */
button[type="submit"] {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 30px;
    background: linear-gradient(to right, #4A90E2, #9B59B6);
    transition: background 0.3s ease;
}

button[type="submit"]:hover {
    background: linear-gradient(to right, #357ABD, #8E44AD);
}

/* Logout Butonu */
.logout-button {
    background-color: #fff;
    color: #b13a3a !important;
    padding: 8px 16px;
    border: 2px solid #b13a3a;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.logout-button:hover {
    background-color: #b13a3a;
    color: #fff !important;
}

/* Navigasyon Menüsü */
.dashboard-nav {
    margin-bottom: 20px;
    background-color: #f2f2f2;
    border-radius: 6px;
    padding: 10px 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.dashboard-nav .nav-left {
    display: flex;
    gap: 12px;
}

.dashboard-nav .nav-right {
    margin-left: auto;
}

.dashboard-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    width: 100%;
}

.dashboard-nav li a {
    text-decoration: none;
    color: #4A90E2;
    font-weight: 600;
    transition: color 0.2s ease;
}

.dashboard-nav li a.logout-button {
    background-color: #fff;
    color: #b13a3a !important;
    border: 2px solid #b13a3a;
}

.dashboard-nav li a.logout-button:hover {
    background-color: #b13a3a;
    color: #fff !important;
}

.dashboard-nav li a:hover {
    color: #357ABD;
}

/* Mobil */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .checkbox-row {
        flex-direction: column;
        gap: 12px;
    }

    .form-header {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .form-header h1 {
        font-size: 22px;
        padding: 0 10px;
        word-break: break-word;
    }

    .top-left-logo {
        position: static;
        width: 40px;
        height: 40px;
        margin: 0 auto 10px;
    }

    .form-header select#language-selector {
        font-size: 12px;
        padding: 4px;
        max-width: 120px;
    }

    .dashboard-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .dashboard-nav .nav-left,
    .dashboard-nav .nav-right {
        justify-content: center;
        width: 100%;
    }

    button[type="submit"] {
        font-size: 15px;
    }

    .logout-button {
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
}

.nav-mem {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    text-decoration: none;
    font-size: 16px;
    /* color: #333; */
    transition: background 0.4s;
    border-radius: 6px;
}

.nav-mem:hover {
    background-color: #f0f0f0;
    color: #333;
    font-size: 18px;
    font-weight: bold;
}
