@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&amp;display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  padding: revert-layer;
}
:root {
  --white-color: #fff;
  --blue-color: #4070f4;
  --grey-color: #707070;
  --grey-color-light: #aaa;
}
body {
  background-color: #e7f2fd;
  transition: all 0.5s ease;
}
body.dark {
  background-color: #333;
}
body.dark {
  --white-color: #333;
  --blue-color: #fff;
  --grey-color: #f2f2f2;
  --grey-color-light: #aaa;
}

/* navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  left: 0;
  background-color: var(--white-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  z-index: 1000;
  box-shadow: 0 0 2px var(--grey-color-light);
}
.logo_item {
  display: flex;
  align-items: center;
  column-gap: 10px;
  font-size: 22px;
  font-weight: 500;
  color: var(--blue-color);
}
.navbar img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
}
.navbar_content {
  display: flex;
  align-items: center;
  column-gap: 25px;
}
.navbar_content i {
  cursor: pointer;
  font-size: 20px;
  color: var(--grey-color);
}

/* sidebar */
.sidebar {
  background-color: var(--white-color);
  width: 348px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  padding: 80px 20px;
  z-index: 100;
  overflow-y: scroll;
  box-shadow: 0 0 1px var(--grey-color-light);
  transition: all 0.5s ease;
}
.sidebar.close {
  padding: 60px 0;
  width: 80px;
}
.sidebar::-webkit-scrollbar {
  display: none;
}
.menu_content {
  position: relative;
}
.menu_title {
  margin: 15px 0;
  padding: 0 20px;
  font-size: 18px;
}
.sidebar.close .menu_title {
  padding: 6px 30px;
}
.menu_title::before {
  color: var(--grey-color);
  white-space: nowrap;
}
.menu_dahsboard::before {
  content: "İçindekiler";
}

.sidebar.close .menu_title::before {
  content: "";
  position: absolute;
  height: 2px;
  width: 18px;
  border-radius: 12px;
  background: var(--grey-color-light);
}
.menu_items {
  padding: 0;
  list-style: none;
}
.navlink_icon {
  position: relative;
  font-size: 22px;
  min-width: 50px;
  line-height: 40px;
  display: inline-block;
  text-align: center;
  border-radius: 6px;
}
.navlink_icon::before {
  content: "";
  position: absolute;
  height: 100%;
  width: calc(100% + 100px);
  left: -20px;
}
.navlink_icon:hover {
  background: var(--blue-color);
}
.sidebar .nav_link {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 4px 15px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--grey-color);
  white-space: nowrap;
}
.sidebar.close .navlink {
  display: none;
}
.nav_link:hover {
  color: var(--white-color);
  background: var(--blue-color);
}
.sidebar.close .nav_link:hover {
  background: var(--white-color);
}
.submenu_item {
  cursor: pointer;
}
.submenu {
  display: none;
}
.submenu_item .arrow-left {
  position: absolute;
  right: 10px;
  display: inline-block;
  margin-right: auto;
}
.sidebar.close .submenu {
  display: none;
}
.show_submenu ~ .submenu {
  display: block;
}
.show_submenu .arrow-left {
  transform: rotate(90deg);
}
.submenu .sublink {
  padding: 5px 15px 15px 15px;
}
.bottom_content {
  position: fixed;
  bottom: 60px;
  left: 0;
  width: 260px;
  transition: all 0.5s ease;
}
.bottom {
  position: absolute;
  display: flex;
  align-items: center;
  left: 0;
  justify-content: space-around;
  padding: 18px 0;
  text-align: center;
  width: 134%;
  color: var(--grey-color);
  border-top: 1px solid var(--grey-color-light);
  background-color: var(--white-color);
}
.bottom i {
  font-size: 20px;
}
.bottom span {
  font-size: 18px;
}
.sidebar.close .bottom_content {
  width: 50px;
  left: 15px;
}
.sidebar.close .bottom span {
  display: none;
}
.sidebar.hoverable .collapse_sidebar {
  display: none;
}
#sidebarOpen {
  display: none;
}
@media screen and (max-width: 768px) {
  #sidebarOpen {
    font-size: 25px;
    display: block;
    margin-right: 10px;
    cursor: pointer;
    color: var(--grey-color);
  }
  .sidebar.close {
    left: -100%;
  }
  .search_bar {
    display: none;
  }
  .sidebar.close .bottom_content {
    left: -100%;
  }
}

.content {
  margin-top: 60px; /* Navbar yüksekliğinize göre ayarlayın */
  padding: 20px;
  background-color: #306ee712; /* Arka plan rengini isteğinize göre ayarlayın */
  box-shadow: 0 0 2px var(--grey-color-light); /* Görsellik için gölge ekleme (isteğe bağlı) */
  position: absolute;
  top: 35px;
  left: 365px; /* Sidebar genişliğine göre ayarlayın */
  right: 31px;
  bottom: 26px;
  overflow-y: auto;
  z-index: 1;
  max-width: calc(100% - 396px); /* Ekran genişliğinden sidebar ve padding çıkardık */
}

@media (max-width: 768px) {
    .content {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0;
        padding: 20px;
        overflow-y: auto;
        max-width: none;
    }

    .content p {
      font-size: 16px;
    }

    .content li {
      font-size: 16px;
    }

    .content window {
      background-color: #1E1E1E;
      border-radius: 8px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
      width: max-content;
      overflow: hidden;
      color: #D4D4D4;
}

    .image-container {
        text-align: center; /* Resmi ortalamak için */
    }

    .content img {
        max-width: 100%; /* Resmin maksimum genişliğini ayarlayın */
        height: auto; /* Orantılı olarak yükseklik ayarlaması yapın */
        display: block; /* Resmin blok seviyesinde görünmesini sağlayın */
        margin-left: auto; /* Sağa hizalama */
        margin-right: auto; /* Sola hizalama */
    }
}



/* Optional: Define styles for paragraph content */
.content p {
  font-size: 18px;
  line-height: 2.5;
  color: var(--grey-color);
}

.content li {
  font-size: 18px;
  line-height: 2.5;
  color: var(--grey-color);
}

.content h1 {
  font-size: 32px;
  line-height: 2.5;
  color: var(--grey-color);
}

.content h2 {
  font-size: 24px;
  line-height: 1;
  color: var(--grey-color);
}

.content h3 {
  font-size: 18px;
  color: var(--grey-color);
}

.window {
    background-color: #1E1E1E;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: max-content; /* Değişiklik burada */
    min-width: 333px;
    overflow: hidden;
    color: #D4D4D4;
}


.window-header {
    background-color: #2968E5;
    display: flex;
    align-items: center;
    padding: 8px;
    position: relative;
}

.buttons {
    display: flex;
    gap: 8px;
}

.button {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    display: inline-block;
}

.button.red {
    background-color: #FF5F56;
}

.button.yellow {
    background-color: #FFBD2E;
}

.button.green {
    background-color: #27C93F;
}

.filename {
    margin-left: auto;
    padding-right: 16px;
    font-size: 14px;
    color: #D4D4D4;
}

.window-content {
    padding: 16px;
    background: #eaf8ff;
}

pre {
    margin: 0;
}

code {
    font-size: 16px;
    color: #7a7aff;
}

/* CSS to remove underline from links */
a {
  text-decoration: none;
}
/* Optional: to change the color of the links */
a:link, a:visited {
  color: inherit;
}
a:hover, a:active {
  color: blue; /* or any color you prefer for hover and active states */
}
.content img {
  max-height: auto; /* Bu, orijinal en-boy oranını korur */
}

.warning {
  background-color: #ffe5e5;
  border-left: 5px solid #f44336; /* Kırmızı sol çizgi */
  padding: 10px;
  margin-bottom: 10px;
}

.note {
  background-color: #e5f7ff;
  border-left: 5px solid #2196f3; /* Mavi sol çizgi */
  padding: 10px;
  margin-bottom: 10px;
}

.navlink_icon img {
    max-width: 30px; /* Maksimum genişliği belirleyin */
    height: auto; /* Yüksekliği otomatik olarak ayarlayın */
}
