:root {
    --bg-sidebar: #0f172a;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --border-color: #e2e8f0;
    --code-bg: #1e293b;
    --method-post: #22c55e;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
aside {
    width: 300px;
    background-color: var(--bg-sidebar);
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-right: 1px solid #1e293b;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #1e293b;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--primary);
    text-decoration: none;
    display: block;
    margin-top: 2px;
}

.sidebar-menu {
    overflow-y: auto;
    flex: 1;
    padding: 20px 10px;
}

.menu-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin: 15px 10px 8px 10px;
    font-weight: 600;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.menu-item:hover, .menu-item.active {
    background-color: #1e293b;
    color: #ffffff;
}

.menu-item.active {
    background-color: var(--primary);
}

.badge-method {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    color: #fff;
    min-width: 45px;
    text-align: center;
}
.badge-post { background-color: var(--method-post); }

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.topbar {
    height: 70px;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 30px;
}

.search-box {
    position: relative;
    width: 320px;
}

.search-box input {
    width: 100%;
    padding: 8px 12px 8px 35px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    outline: none;
    font-size: 0.875rem;
    background-color: #f8fafc;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}


.endpoint-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Corrección para la visualización del token de autorización */
.endpoint-card code {
    background-color: #1e293b;
    color: #38bdf8;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 8px;
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.endpoint-path {
    font-family: monospace;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
}

.endpoint-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Alert Box based on image */
.alert-box {
    background-color: #fef9c3;
    border-left: 4px solid #eab308;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #713f12;
}

.alert-box strong {
    color: #854d0e;
}

.url-box {
    background: #f1f5f9;
    padding: 10px 14px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
    color: #2563eb;
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-subheading {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 20px 0 8px 0;
    letter-spacing: 0.5px;
}

/* Tables for Properties */
.props-table-container {
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 15px;
}

.props-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.props-table th, .props-table td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
}

.props-table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.prop-name {
    font-family: monospace;
    font-weight: 600;
    color: #0f172a;
}

.prop-type {
    font-family: monospace;
    color: var(--primary);
}

.prop-required {
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 600;
}

/* HTTP Responses badges */
.response-codes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.code-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    background: #e2e8f0;
    color: #334155;
}
.code-200, .code-201 { background-color: #dcfce7; color: #166534; }
.code-400, .code-401, .code-403 { background-color: #fee2e2; color: #991b1b; }
.code-500, .code-504 { background-color: #fef3c7; color: #92400e; }

/* Code tabs container */
.code-container {
    background-color: var(--code-bg);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 15px;
}

.code-tabs {
    display: flex;
    background-color: #0f172a;
    border-bottom: 1px solid #1e293b;
    padding: 0 10px;
}

.code-tab {
    padding: 10px 20px;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.code-tab:hover { color: #fff; }
.code-tab.active {
    color: #fff;
    border-bottom-color: var(--primary);
    background-color: var(--code-bg);
}

.code-content-panel { position: relative; }
.code-panel {
    display: none;
    padding: 20px;
    overflow-x: auto;
    max-height: 400px;
}
.code-panel.active { display: block; }

pre[class*="language-"] {
    margin: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    font-size: 0.85rem !important;
}

.copy-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }