/* Sidebar Stili */
.sidebar {
    background-color: #21222c;
    padding: 25px;
    color: #fff;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}
.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.6rem 1rem;
    border-radius: 0.25rem;
    margin-bottom: 0.2rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #fff;
    background-color: #383a59;
}
.sidebar .nav-link i {
    margin-right: 0.5rem;
    opacity: 0.8;
}
.sidebar .submenu {
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}
.sidebar .submenu li a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.4rem 0.8rem;
    text-decoration: none;
    transition: color 0.15s ease;
    border-left: 3px solid transparent;
}
.sidebar .submenu li a:hover,
.sidebar .submenu li a.active {
    color: #fff;
    border-left-color: #00bcd4;
    background-color: transparent;
}

/* İçerik Alanı */
.content {
    padding: 25px;
}

.endpoint-details-section {
    display: none;
}
.endpoint-details-section.active-endpoint {
    display: block;
}

.endpoint-listing {
    background-color: #21222c;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.endpoint {
    font-family: "Roboto Mono", monospace;
    color: #00bcd4;
}

/* JSON ve kod blokları için optimize edilmiş stil */
.request-body-card,
.response-body-card {
    background-color: #282a36;
    color: #f8f8f2;
    padding: 1rem;
    border-radius: 6px;
    font-family: "Roboto Mono", monospace;
    white-space: pre-wrap; /* alt satıra kaydırır */
    word-wrap: break-word; /* kelime taşmalarını engeller */
    overflow-x: auto;
    border: 1px solid #44475a;
    margin-top: 0.7rem;
}

/* JSON verileri için detaylı renk tanımlamaları */
.node { 
    margin-left: 15px;
}
.line { 
    line-height: 1.5;
    word-break: break-all;
}
.toggle {
    cursor: pointer; 
    color: #777; 
    font-weight: bold; 
    margin-right: 5px; 
    user-select: none;
}
.toggle:hover { color: #fff; }

.key {
    font-weight: bold; 
    margin-right: 5px; 
    color: #ffb347;
    user-select: text; 
}
.string-value {
    color: #aed581;
    user-select: text;
}
.number-value {
    color: #81d4fa;
    user-select: text;
}
.boolean-value {
    color: #ff8a65; 
    font-weight: bold;
    user-select: text;
}
.null-value {
    color: #bdbdbd;
    font-style: italic;
    user-select: text;
}
.hidden {
    display: none;
}

/* Diğer Genel Stiller */
.header-parameters-container,
.accordion {
    margin-top: 1.5rem;
    color: #fff;
}

.header-table {
    margin-bottom: 0;
}
.header-table th,
.header-table td {
    color: #fff;
    border-color: #44475a;
    padding: 0.7rem;
}
.header-table thead th {
    background-color: #44475a;
    font-weight: 500;
}

.accorddion-item {
    border-radius: 0.3rem;
    margin-bottom: 0.7rem;
    padding: 1.2rem;
}
.accorddion-item h5 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #fff;
}

.card {
    background-color: #21222c;
    color: #fff;
    border: 1px solid #44475a;
    border-radius: 0.3rem;
}
.card-body {
    padding: 1.2rem;
}
.card-subtitle {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.9rem;
}

.btn-secondary,
.btn-outline-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}
.btn-secondary:hover,
.btn-outline-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

.mt-3 { margin-top: 1.5rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.me-2 { margin-right: 0.5rem !important; }

.small-text { font-size: 0.875rem; color: #999; }
.rounded-top { border-top-left-radius: 0.3rem; border-top-right-radius: 0.3rem; }

.response-samples {
    display: flex;
    align-items: center; 
    gap: 0.75rem;        
    margin-bottom: 1rem; 
}
.response-samples h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.status-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;     
    background-color: #28a745;
    color: #fff;              
    font-weight: 600;         
    font-size: 0.875rem;      
    line-height: 1;           
    border: none;             
}
