html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

:root{
  --accent: #ef4444; /* kırmızı aksan */
  --muted: #6b7280;
  --card: #ffffff;
  --text: #0f172a;
  --soft: #f7f7f8;
}

/* Genel */
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--soft);
  color: var(--text);
  margin: 0;
  -webkit-font-smoothing:antialiased;
}

/* HEADER */
.navigation {
  background: var(--card);
  border-bottom: 1px solid rgba(15,23,42,0.04);
  box-shadow: 0 2px 8px rgba(2,6,23,0.03);
  padding: 0.36rem 0;
}
.logo-img { height: 40px; }

/* SEARCH */
.search-inline .input-group-text { border-right: 0; background: transparent; }
.search-inline .form-control { border-left: 0; min-width: 180px; }

/* SECTION wrapper — reduced side gutters (yarı kadar) */
.section-card { background: transparent; padding: 12px 0; } /* önce 24px idi -> yarıya indirildi */

/* SIDEBAR */
.sidenav {
  background: var(--card);
  border-radius: 8px;
  border: 1px solid rgba(15,23,42,0.04);
  padding: 10px; /* önce 16px idi -> azaltıldı */
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.sidenav h6 { font-weight: 700; margin-bottom:4px; }
.sidenav .docs-menu { margin: 0; padding: 0; list-style: none; }

/* MENU ITEMS */
.sidenav .nav-link {
  color: var(--text);
  padding: 6px 8px; /* daha sıkıştırılmış */
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  font-size: 14px;
}
.sidenav .nav-link:hover { background: rgba(239,68,68,0.06); color: var(--accent); text-decoration:none; }
.sidenav .sub-menu { margin-top:6px; margin-left:8px; padding-left:8px; border-left: 2px solid rgba(15,23,42,0.03); }
.sidenav .sub-menu .nav-link { padding:5px 6px; font-size:13px; }

/* CONTENT (orta) */
.content {
  background: var(--card);
  padding: 16px; /* önce 24px idi -> azaltıldı */
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(2,6,23,0.05);
  position: relative;
}
.content h1 { font-size:22px; font-weight:700; margin-bottom: 8px; color: var(--text); }
.content h2 { margin-top:14px; font-size:18px; color:var(--text); }
.content p { color: #374151; line-height:1.6; }

/* CODE BLOCK */
.custom-code-block {
  border-radius: 8px;
  overflow: hidden;
  margin: 14px 0;
  background: #0b1220;
  color: #e6eef6;
  font-family: 'Fira Code', monospace;
}
.custom-code-block .code-header {
  padding:8px 10px;
  background: linear-gradient(90deg, rgba(239,68,68,0.1) 0%, rgba(17,24,39,0.04) 100%);
}
.custom-code-block .code-language { font-weight:700; color: var(--accent); background: rgba(255,255,255,0.04); padding:4px 8px; border-radius:6px; display:inline-block; }
.custom-code-block pre { margin:0; padding:12px; background:transparent; color: #e6eef6; overflow-x:auto; }

/* NAV INSIDE - OKLAR (statik) */
.doc-nav-inside {
  position: absolute;
  left: 14px;    /* biraz içten başlat (yarı boşluk) */
  right: 14px;
  bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.doc-nav-inside .nav-left,
.doc-nav-inside .nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}
.nav-arrow {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: none;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 6px 18px rgba(2,6,23,0.12);
  background: #ffffff;
  color: var(--text);
  font-size: 15px;
}
.nav-label {
  background: rgba(15,23,42,0.03);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

/* TOC (sağ) */
.toc {
  background: var(--card);
  border-radius: 8px;
  padding: 8px;
  border: 1px solid rgba(15,23,42,0.04);
  position: sticky;
  top: 88px;
}
.toc-header { font-weight:700; margin-bottom:8px; color:var(--text); }
#pageToc .nav-link { color:#374151; padding:6px 0; font-size:14px; }
#pageToc .nav-link.active { color: var(--accent); font-weight:700; }

/* FOOTER */
.footer-light {
  background: var(--card);
  color: #374151;
  border-top: 1px solid rgba(15,23,42,0.04);
}
.footer-light .text-muted { color: #6b7280; }

/* RESPONSIVE: MOBIL düzenlemeleri */
@media (max-width: 991px) {
  .sidenav, .toc { display: none; }           /* yan paneller gizlenir */
  .content { padding: 14px; }
  /* NAV INSIDE mobilde center altta, etiket gizli */
  .doc-nav-inside {
    left: 50%;
    transform: translateX(-50%);
    bottom: 12px;
    width: auto;
    gap: 8px;
  }
  .nav-label { display: none; }
  .nav-arrow { width:42px; height:42px; }
}

/* küçük düzeltme: aktif nav-link */
a.nav-link.active { font-weight:700; color:var(--accent) !important; }

/*body {
    font-family: "Montserrat", sans-serif;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
    margin: 20px;
    background: #f4f4f8;
}*/

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
}

#preview {
    border: 1px solid #ccc;
    padding: 15px;
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
}

p, .paragraph {
    font-weight: 400;
    color: #333;
    font-size: 16px;
    line-height: 26px;
}

h1, h2, h3, h4, h5, h6 {
    color: #222;
    font-weight: 700;
    line-height: 1.2;
}

h2, .h2 {
    font-size: 42px;
    font-weight: 800;
}

@media (max-width: 575px) {
    h2, .h2 {
        font-size: 32px;
        font-weight: 600;
    }
}

a,
a:hover,
a:focus {
    text-decoration: none;
    color: inherit;
}

    a:hover {
        color: #FF0043;
    }

img {
    vertical-align: middle;
    border: 0;
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
    padding-left: 0;
}

/* Button style */
.btn {
    font-size: 16px;
    text-transform: capitalize;
    padding: 13px 30px;
    border-radius: 6px;
    border: 1px solid;
    position: relative;
    z-index: 1;
    transition: 0.2s ease;
    font-weight: 600;
}

    .btn:hover, .btn:active, .btn:focus {
        outline: 0;
        box-shadow: none !important;
        background-color: #FF0043 !important;
    }

.btn-sm {
    font-size: 14px;
    padding: 10px 25px;
}

.btn-primary {
    background: #FF0043;
    color: #fff;
    border-color: #FF0043;
}

    .btn-primary:active, .btn-primary:hover, .btn-primary:focus {
        background: #cc0036 !important;
        border-color: #cc0036 !important;
    }

.btn-outline-primary {
    background: transparent;
    color: #FF0043;
    border-color: #FF0043;
}

    .btn-outline-primary:active, .btn-outline-primary:hover, .btn-outline-primary:focus {
        background: #cc0036 !important;
        border-color: #cc0036 !important;
        color: #fff;
    }

.section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-sm {
    padding-top: 50px;
    padding-bottom: 50px;
}

.shadow, .search-wrapper .form-control {
    box-shadow: 0px 15px 60px rgba(62, 62, 62, 0.102) !important;
}

.rounded {
    border-radius: 12px !important;
}

.bg-primary {
    background: #FF0043 !important;
}

.text-primary {
    color: #FF0043 !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.navigation {
    transition: 0.2s ease;
}

.nav-item {
    margin: 0;
}

    .nav-item .nav-link {
        text-transform: capitalize;
    }

.navbar-light .navbar-nav .nav-link {
    color: #222;
}

    .navbar-light .navbar-nav .nav-link:hover {
        color: #FF0043;
    }

.search-wrapper {
    position: relative;
}

    .search-wrapper .form-control {
        height: 46px;
        border: 0;
        outline: 0;
    }

        .search-wrapper .form-control::placeholder {
            color: #999;
            font-size: 15px;
        }

    .search-wrapper button {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

        .search-wrapper button i {
            color: #FF0043;
        }

.sidenav {
    border-right: 1px solid #E2E2E2;
    padding-right: 20px;
}

    .sidenav ul {
        padding-left: 10px;
    }

    .sidenav > li a {
        padding: 20px 0;
        color: #222;
        display: block;
        font-size: 18px;
        font-weight: 500;
    }

    .sidenav > li:not(:last-child) {
        border-bottom: 1px solid #E2E2E2;
    }

    .sidenav .sidelist ul {
        display: none;
    }

    .sidenav .parent > a {
        color: #FF0043 !important;
        position: relative;
        margin-left: 10px;
    }

        .sidenav .parent > a::before {
            position: absolute;
            content: "";
            left: -10px;
            top: 25%;
            height: 50%;
            width: 1px;
            background: #FF0043;
        }

    .sidenav .parent ul {
        display: block;
        margin-bottom: 10px;
    }

        .sidenav .parent ul a {
            padding: 5px 0;
            font-size: 14px;
            font-weight: 400;
            color: #222;
        }

.pagination {
    margin-top: 50px;
    justify-content: space-between;
}

    .pagination a {
        color: #FF0043;
        font-size: 18px;
        font-weight: 500;
    }

.footer-menu a {
    display: block;
    padding: 10px;
    color: #333;
    transition: 0.2s ease;
}

    .footer-menu a:hover {
        color: #FF0043;
    }

.social-icons a {
    display: block;
    height: 42px;
    width: 42px;
    line-height: 42px;
    text-align: center;
    color: #fff;
    background: #FF0043;
    border-radius: 6px;
}

.content p {
    margin-bottom: 1rem;
}

/* Back-end entegrasyonu için ek stiller */
.documentation-container {
    margin-top: 20px;
    min-height: calc(100vh - 150px);
}

.documentation-sidebar {
    border-right: 1px solid #dee2e6;
    height: calc(100vh - 70px);
    position: sticky;
    top: 140px;
    overflow-y: auto;
    padding: 0;
}

.sidebar-header {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-content {
    padding: 20px;
}

.documentation-tree {
    margin-bottom: 0;
}

.treeview-item {
    margin-bottom: 5px;
    border: none;
    border-radius: 4px;
}

.treeview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    color: #495057;
    margin-bottom: 5px;
}

    .treeview-header:hover {
        text-decoration: none;
        color: #495057;
        background-color: #f8f9fa;
    }

    .treeview-header.active {
        background-color: #FF0043;
        color: white;
    }

.treeview-toggle {
    background: none;
    border: none;
    font-size: 12px;
    padding: 0;
    width: 20px;
    text-align: center;
    cursor: pointer;
}

.treeview-children {
    margin-left: 20px;
    margin-top: 5px;
    padding-left: 10px;
}

.documentation-content {
    padding: 20px;
}

.documentation-breadcrumb {
    margin-bottom: 20px;
}

.documentation-title {
    margin-bottom: 20px;
    color: #343a40;
}

.documentation-body {
    line-height: 1.6;
}

    .documentation-body img {
        max-width: 100%;
        height: auto;
        border-radius: 5px;
        margin: 15px 0;
        cursor: pointer;
        transition: transform 0.2s ease;
    }

        .documentation-body img:hover {
            transform: scale(1.02);
        }

.documentation-welcome {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.documentation-actions {
    padding-top: 15px;
}

/* Modal stilleri */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .modal.show {
        display: block;
        opacity: 1;
    }

.modal-content {
    position: relative;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

    .modal-content img {
        max-width: 90%;
        max-height: 90%;
        object-fit: contain;
        transition: transform 0.3s ease;
        box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
        border-radius: 4px;
    }

.close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: black;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10004;
    transition: color 0.3s ease;
}

    .close:hover {
        color: #ccc;
    }

.modal-controls {
    position: fixed;
    top: 20px;
    right: 80px;
    display: flex;
    gap: 15px;
    z-index: 10003;
}

.modal-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(5px);
}

    .modal-btn:hover {
        background: #FF0043;
        transform: scale(1.1);
    }

/* Silme Modalı için özel stiller */
#deleteModal .modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

#deleteModal .modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-left: auto;
}

#deleteModal .alert {
    border: none;
    border-radius: 6px;
}

#deleteModal .form-check {
    margin-bottom: 10px;
    padding-left: 2rem;
}

#deleteModal .form-check-input {
    margin-left: -2rem;
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .modal-controls {
        top: 10px;
        right: 50px;
        gap: 10px;
    }

    .modal-btn {
        height: 35px;
        font-size: 14px;
    }

    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .arrow-left {
        left: 15px;
    }

    .arrow-right {
        right: 15px;
    }

    .close {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }

    .thumbnails-container {
        padding: 10px;
        max-height: 100px;
    }

    .thumbnail {
        width: 60px;
        height: 45px;
    }
}

.custom-container {
    width: 90%; /* ekranın %90’ı kadar */
    margin-inline: auto; /* ortala */
}

.breadcrumb-item.active {
    color: #FF0043;
}



/* Küçük resimler konteyneri */
.thumbnails-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 10002;
    max-height: 120px;
}

    .thumbnails-container.show {
        transform: translateY(0);
    }

.thumbnails-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: white;
    font-weight: bold;
}

.thumbnails-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
}

.thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px;
}

    .thumbnails::-webkit-scrollbar {
        height: 6px;
    }

    .thumbnails::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
    }

        .thumbnails::-webkit-scrollbar-thumb:hover {
            background-color: rgba(255, 255, 255, 0.5);
        }

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

    .thumbnail:hover,
    .thumbnail.active {
        opacity: 1;
        border-color: #fff;
        transform: scale(1.05);
    }

/* Navigasyon okları */
.nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10003;
    backdrop-filter: blur(5px);
    font-size: 20px;
}

    .nav-arrow:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-50%) scale(1.1);
    }

.arrow-left {
    left: 30px;
    color: black;
}

.arrow-right {
    right: 30px;
    color: black;
}





.form-group {
    margin-bottom: 1.5rem;
}

.hierarchical-select option {
    padding-left: 10px;
}

/* Hiyerarşik dropdown stilleri */
.level-0 {
    font-weight: bold;
    padding-left: 5px;
}

.level-1 {
    padding-left: 20px;
    font-style: italic;
}

.level-2 {
    padding-left: 35px;
    color: #666;
}

.level-3 {
    padding-left: 50px;
    color: #999;
    font-size: 0.9em;
}

.level-4 {
    padding-left: 65px;
    color: #ccc;
    font-size: 0.85em;
}

#previewContent .editor-dropdown {
    margin: 8px 0;
    font-family: Arial, sans-serif;
}

    #previewContent .editor-dropdown .editor-dropdown-item {
        border: 1px solid #e6e6e6;
        border-radius: 6px;
        margin-bottom: 8px;
        overflow: hidden;
        transition: box-shadow 0.3s;
    }

        #previewContent .editor-dropdown .editor-dropdown-item[open] {
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        #previewContent .editor-dropdown .editor-dropdown-item summary {
            cursor: pointer;
            padding: 12px 16px;
            background: #f7f7f7;
            font-weight: 600;
            list-style: none; /* default arrow gizle */
            user-select: none;
            display: block;
            border-bottom: 1px solid #e6e6e6;
            transition: background 0.3s;
        }

            #previewContent .editor-dropdown .editor-dropdown-item summary:hover {
                background: #ffe5e5; /* ufak kırmızı vurgu */
            }

        #previewContent .editor-dropdown .editor-dropdown-item[open] summary {
            border-bottom: none; /* birleşik görünüm için */
            border-radius: 6px 6px 0 0;
        }

    #previewContent .editor-dropdown .dropdown-item-content {
        padding: 12px 16px;
        display: none;
        background: #fff;
        border-radius: 0 0 6px 6px;
    }

    #previewContent .editor-dropdown .editor-dropdown-item[open] .dropdown-item-content {
        display: block;
    }

.notices {
    border-left: 4px solid #ccc;
    padding: 12px;
    border-radius: 6px;
    margin: 12px 0;
}

    .notices.note {
        background: #fffbe6;
        border-color: #ffd324;
    }

    .notices.tip {
        background: #e8fff0;
        border-color: #2ecc71;
    }

    .notices.info {
        background: #e8f3ff;
        border-color: #2196F3;
    }

    .notices p {
        margin: 0;
    }

.editor-accordion .accordion-item {
    border: 1px solid #e6e6e6;
    padding: 0;
    border-radius: 6px;
    margin: 8px 0;
    overflow: hidden;
}

.editor-accordion .accordion-header {
    background: #f7f7f7;
    padding: 10px;
    cursor: pointer;
    font-weight: 600;
}

.editor-accordion .accordion-body {
    padding: 10px;
    display: none;
}

.editor-accordion .accordion-item.open .accordion-body {
    display: block;
}

.custom-code-block {
    border-radius: 8px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    background: #282c34;
    color: #f8f8f2;
    font-family: 'Fira Code', monospace;
    position: relative;
}

    .custom-code-block .code-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 10px;
        background: #3c4048;
        color: #E6E6E6;
        font-size: 12px;
    }

        .custom-code-block .code-header .code-language {
            font-weight: bold;
        }

        .custom-code-block .code-header button.copy-btn {
            background: #FF0043;
            color: #000;
            border: none;
            border-radius: 4px;
            padding: 2px 8px;
            cursor: pointer;
            font-size: 12px;
        }

    .custom-code-block pre {
        margin: 0;
        padding: 15px;
        background: transparent;
        overflow-x: auto;
    }