/* Scope: sadece panel içinde geçerli */
.ots-panel {
  font-family: 'Poppins', sans-serif;
}

/* Body yerine panel kökü */
.ots-panel .panel-container { display: flex; min-height: 100vh; }

.ots-panel .panel-header { display: none; }

.ots-panel .panel-menu {
  position: fixed;
  top: 0; left: 0;
  width: 320px; height: 100vh;
  background-color: #1e1e2d; color: #fff;
  padding: 20px 0; z-index: 1000; overflow-y: auto;
  transform: translateX(0); opacity: 1;
  transition: transform .3s ease, opacity .3s ease;
}
.ots-panel .panel-menu.hidden { transform: translateX(-100%); opacity: 0; }

.ots-panel .menu-wrapper { width: 280px; margin: 0 auto; display: flex; flex-direction: column; }
.ots-panel .menu-toggle { display: none; background: transparent; border: none; cursor: pointer; z-index: 1002; }
.ots-panel .menu-toggle svg { width: 30px; height: 30px; fill: #F44336; transition: transform .3s ease; }
.ots-panel .menu-toggle.active svg { transform: rotate(90deg); }

.ots-panel .panel-logo { text-align: center; margin-bottom: 20px; font-size: 26px; font-weight: bold; letter-spacing: 1px; }

.ots-panel .menu-link {
  color: #fff; text-decoration: none; padding: 8px 20px;
  display: flex; align-items: center; border-radius: 10px; margin: 4px 0;
  transition: background-color .3s, color .3s; font-weight: 600; font-size: 15px;
}
.ots-panel .menu-link.aktif { background-color: #F44336; color: #fff; }
.ots-panel .menu-link:hover:not(.aktif) { background-color: #202430; color: #F44336; }
.ots-panel .menu-link svg { width: 16px; height: 16px; margin-right: 8px; fill: #fff; transition: fill .3s; }
.ots-panel .menu-link:hover:not(.aktif) svg { fill: #F44336; }

.ots-panel .panel-submenu {
  overflow: hidden; max-height: 0; transition: max-height .4s ease;
  display: flex; flex-direction: column; margin-left: 20px;
}
.ots-panel .panel-submenu.show { max-height: 200px; }
.ots-panel .panel-submenu a {
  color: #fff; text-decoration: none; padding: 6px 24px; display: block;
  border-radius: 10px; margin: 2px 0; font-size: 15px; font-weight: 600;
  transition: background-color .3s, color .3s;
}
.ots-panel .panel-submenu a.aktif { background-color: #F44336; color: #fff; }
.ots-panel .panel-submenu a:hover:not(.aktif) { background-color: #202430; color: #F44336; }

/* İçerik alanı: menü 320px ise içerik margin-left aynı olmalı */
.ots-panel .panel-icerik {
  margin-left: 320px; width: calc(100% - 320px);
  padding: 30px; background-color: #fff; min-height: 100vh;
  overflow-x: auto; box-sizing: border-box;
}

/* Mobil görünüm */
@media (max-width: 768px) {
  .ots-panel .panel-header {
    display: flex; align-items: center; justify-content: flex-start;
    height: 60px; background-color: #1e1e2d; padding-left: 20px;
    position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
  }
  .ots-panel .menu-toggle { display: block; position: relative; z-index: 1002; }
  .ots-panel .panel-menu { top: 60px; height: calc(100vh - 60px); width: 320px; }
  .ots-panel .panel-icerik { margin-left: 0 !important; width: 100% !important; padding: 20px; padding-top: 80px; }
  .ots-panel .panel-container { flex-direction: column; }
}

/* Profil kutusu: kontrast düzeltmesi */
.ots-panel .profil-kutu {
  background-color: #f5f7ff;
  color: #1e1e2d;
  padding: 20px 30px; border-radius: 12px; margin-bottom: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.ots-panel .profil-kutu h2 { margin: 0; font-size: 24px; font-weight: 600; }
.ots-panel .profil-tarih { margin-top: 8px; font-size: 14px; color: #6c6c80; }
.ots-panel .profil-baslik { font-size: 20px; margin-bottom: 16px; font-weight: 600; color: #333; }

/* Profil kartları */
.ots-panel .profil-kartlar { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px; max-width: 100%; }
@media (min-width: 768px) { .ots-panel .profil-kartlar { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ots-panel .profil-kartlar { grid-template-columns: repeat(4, 1fr); } }

.ots-panel .profil-kart {
  background-color: #ffffff; color: #1e1e2d; text-decoration: none;
  padding: 20px 16px; border-radius: 10px; text-align: center; font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05); transition: background-color .3s, transform .3s;
  display: flex; flex-direction: column; align-items: center;
}
.ots-panel .profil-kart:hover { background-color: #f6f6f6; color: #1e1e2d; transform: translateY(-2px); }

.ots-panel .profil-ikon {
  width: 50px; height: 50px; border-radius: 50%; background-color: #e0e0e0;
  display: flex; align-items: center; justify-content: center; margin-bottom: 10px; overflow: hidden;
}
.ots-panel .profil-ikon img { width: 28px; height: 28px; }

.ots-panel .ikon-odev .profil-ikon { background-color: #e0fcee; }
.ots-panel .ikon-deneme-ekle .profil-ikon,
.ots-panel .ikon-denemelerim .profil-ikon { background-color: #FCE2E1; }
.ots-panel .ikon-soru-ekle .profil-ikon,
.ots-panel .ikon-sorularim .profil-ikon { background-color: #F7E1FC; }
.ots-panel .ikon-raporlarim .profil-ikon { background-color: #E1F2FC; }

.ots-panel .profil-baslik-kart { font-size: 16px; font-weight: 700; color: #1e1e2d; margin-bottom: 6px; }
.ots-panel .profil-aciklama { font-size: 13px; font-weight: 200; color: #5a5a6e; }
.ots-panel .baslik-ikon { width: 22px; height: 22px; vertical-align: middle; margin-right: 8px; }

.panel-form { background:#fff; padding:20px; border-radius:8px; }
.form-row { margin-bottom:15px; display:flex; flex-direction:column; }
.form-row label { font-weight:600; margin-bottom:5px; }
.form-row input, .form-row select { padding:8px; border:1px solid #ccc; border-radius:6px; }
.btn-primary { background:#F44336; color:#fff; padding:10px 20px; border:none; border-radius:6px; cursor:pointer; }
.btn-primary:hover { background:#d32f2f; }
.panel-alert.success { background:#e0f7e9; border:1px solid #4caf50; padding:10px; border-radius:6px; margin-top:15px; }

