/* Figma design colors */
:root {
    --primary-blue: #10355A;
    --light-gray: #eef3f5;
    --medium-gray: #8b9fb0;
    --border-gray: #d9d9d9;
    --dark-text: #1c1b1f;
    --success-green: #1ccb52;
    --warning-orange: #ffb578;
    --sidebar-active: #d5dee4;
    --sidebar-border: #bdc9d3;
    --very-dark-blue: #0c2542;
    --divider-blue: #10355a;
}

/* Layout - 3 részre osztva */
.docs-container {
    display: flex;
    min-height: calc(100vh - 200px);
    background: #ffffff;
}

/* Left Sidebar */
.left-sidebar {
    width: 320px;
    background: transparent;
    border-right: 1px solid var(--border-gray);
    min-height: calc(100vh - 120px);
    flex-shrink: 0;
}

.sidebar-header {
    background: transparent;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-gray);
    height: 48px;
    display: flex;
    align-items: center;
}

.sidebar-title {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 14px;
    background: transparent;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 0;
}

/* Navigation */
.nav-menu {
    padding: 16px 0;
}

.nav-item {
    display: block;
    padding: 8px 16px;
    color: var(--medium-gray);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.nav-item:hover {
    background: rgba(139, 159, 176, 0.1);
    color: var(--primary-blue);
}

.nav-item.active {
    background: var(--primary-blue);
    color: white;
}

.nav-item.h2 {
    padding-left: 32px;
    font-size: 13px;
}

.nav-item.h3 {
    padding-left: 48px;
    font-size: 12px;
}

/* Method badges */
.method-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    color: white;
}

/* Method badges */
.method-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    color: white;
}

/* Method badges */
.method-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    color: white;
}

.method-badge.get {
    background: var(--success-green); /* zöld */
}

.method-badge.post {
    background: #3b82f6; /* kék */
}

.method-badge.put {
    background: var(--warning-orange); /* narancssárga */
}

.method-badge.patch {
    background: var(--warning-orange); /* narancssárga */
}

.method-badge.delete {
    background: #ef4444; /* piros */
}

/* Main Wrapper - középső rész */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Main Content Area */
.main-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Breadcrumb */
.breadcrumb {
    padding: 12px 24px;
    font-size: 14px;
    color: var(--medium-gray);
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    box-sizing: border-box;
}

.breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
}

.breadcrumb-separator {
    color: var(--medium-gray);
}

/* Content divider */
.content-divider {
    height: 2px;
    margin: 0;
    border: none;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 32px;
    background: white;
    position: relative;
}

.content-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 24px;
}

.content-body {
    line-height: 1.6;
    color: var(--dark-text);
    max-width: none;
    padding-bottom: 80px;
}

.content-body h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 32px 0 16px 0;
}

.content-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 24px 0 12px 0;
}

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

.content-body ul, .content-body ol {
    margin: 16px 0;
    padding-left: 24px;
}

.content-body li {
    margin-bottom: 8px;
}

.content-body pre {
    background: var(--very-dark-blue);
    color: #e2e8f0;
    padding: 24px;
    border-radius: 8px;
    margin: 24px 0;
    overflow-x: auto;
    font-size: 14px;
}

.content-body code {
    background: #f1f5f9;
    color: #dc2626;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.content-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Right Sidebar - harmadik rész */
.right-sidebar {
    width: 256px;
    background: var(--light-gray);
    border-radius: 8px;
    padding: 16px;
    margin: 16px;
    height: fit-content;
    flex-shrink: 0;
}

.right-sidebar-header {
    margin-bottom: 8px;
}

.right-sidebar-title {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 14px;
    margin: 0;
}

.right-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.right-sidebar-nav li {
    margin-bottom: 2px;
}

.right-sidebar-nav a {
    color: var(--medium-gray);
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 4px 0;
}

.right-sidebar-nav a:hover {
    color: var(--primary-blue);
}

/* Feedback Section */
.feedback-section {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    gap: 12px;
}

.feedback-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid var(--sidebar-border);
    border-radius: 50px;
    background: white;
    color: var(--medium-gray);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.feedback-btn:hover {
    background: var(--light-gray);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.feedback-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.feedback-btn svg {
    width: 16px;
    height: 16px;
}

/* Loading and Error States */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    flex-direction: column;
    gap: 16px;
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-container {
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
}

.error-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.error-icon {
    width: 32px;
    height: 32px;
    color: #dc2626;
}

.error-text h3 {
    color: #991b1b;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.error-text p {
    color: #b91c1c;
    margin: 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 96px 32px;
}

.empty-state svg {
    width: 48px;
    height: 48px;
    color: var(--medium-gray);
    margin: 0 auto 16px;
}

.empty-state h3 {
    color: var(--primary-blue);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.empty-state p {
    color: var(--medium-gray);
    margin: 0;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 1024px) {
    .right-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .left-sidebar {
        width: 280px;
    }
    
    .main-content {
        padding: 16px;
    }
    
    .feedback-section {
        position: static;
        margin-top: 48px;
        justify-content: center;
    }
}


.content-body {
    color: var(--primary-blue, #1e3a8a);
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
    color: var(--primary-blue, #1e3a8a);
}

/* Táblázatok responsive kezelése */
.content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content-body table th,
.content-body table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
    word-wrap: break-word;
    max-width: 300px;
    color: var(--primary-blue, #1e3a8a);
}

.content-body table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.content-body table tr:nth-child(even) {
    background-color: #f9fafb;
}

.content-body table tr:hover {
    background-color: #f3f4f6;
}

/* Táblázat wrapper scrollhoz */
.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.table-wrapper table {
    margin: 0;
    border: none;
    min-width: 600px;
    border-radius: 0;
    box-shadow: none;
}

/* Responsive táblázatok */
@media (max-width: 768px) {
    .content-body table {
        font-size: 12px;
    }
    
    .content-body table th,
    .content-body table td {
        padding: 8px 12px;
        max-width: 200px;
    }

    .table-wrapper table {
        min-width: 500px;
    }
}

/* Kód szövegek a táblázatban */
.content-body table code {
    background-color: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #475569;
    font-family: 'Courier New', monospace;
}

/* Checkbox és tick jelölések */
.content-body table td:last-child {
    text-align: center;
    font-weight: 600;
}

.content-body table .tick {
    color: #059669;
    font-size: 16px;
}

/* Details/Summary elemek stílusa */
.content-body details {
    margin: 16px 0;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.content-body details summary {
    background-color: #f8fafc;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 600;
    color: #374151;
    user-select: none;
}

.content-body details summary:hover {
    background-color: #f1f5f9;
}

.content-body details[open] summary {
    border-bottom: 1px solid #e5e7eb;
}

.content-body details .table-wrapper {
    margin: 0;
    border: none;
    border-radius: 0;
}

/* Kompakt táblázat stílus */
.content-body .compact-table {
    font-size: 13px;
}

.content-body .compact-table th,
.content-body .compact-table td {
    padding: 8px 12px;
}

/* Összecsukható navigáció stílusok - egyszerű design */
.nav-group {
    margin-bottom: 4px;
}

.nav-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-color, #374151);
    transition: background-color 0.15s ease;
    width: 100%;
    text-align: left;
    font-size: 14px;
    border-radius: 4px;
}

.nav-group-header:hover {
    background-color: var(--sidebar-hover, #f3f4f6);
}

.nav-group-header.active {
    background-color: var(--primary-color, #007bff);
    color: white;
}

.nav-group-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
    opacity: 0.6;
}

.nav-group-toggle.expanded {
    transform: rotate(90deg);
}

.nav-group-toggle svg {
    width: 8px;
    height: 8px;
    fill: currentColor;
}

.nav-group-children {
    overflow: hidden;
    transition: max-height 0.25s ease-out;
}

.nav-group-children.collapsed {
    max-height: 0;
}

.nav-group-children.expanded {
    max-height: 2000px;
}

.nav-group-children .nav-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 6px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-color, #374151);
    font-size: 13px;
    font-weight: normal;
    transition: background-color 0.15s ease;
    border-radius: 4px;
    margin: 1px 0;
}

.nav-group-children .nav-item:hover {
    background-color: var(--sidebar-hover, #f3f4f6);
}

.nav-group-children .nav-item.active {
    background-color: var(--primary-color, #007bff);
    color: white;
}

.nav-group-children .nav-item.h3 {
    padding-left: 36px;
    font-size: 12px;
    opacity: 0.9;
}

.nav-group-children .nav-item .method-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

/* Responsive sidebar stílusok */
@media (max-width: 1024px) {
    .docs-container {
        position: relative;
    }

    .left-sidebar {
        position: fixed;
        top: 0;
        left: -320px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        background: white;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .left-sidebar.open {
        left: 0;
    }

    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }

    .mobile-menu-btn {
        display: block;
        position: fixed;
        top: 110px;
        left: 20px;
        z-index: 1001;
        background: var(--primary-color, #007bff);
        color: white;
        border: none;
        padding: 12px;
        border-radius: 6px;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    .right-sidebar {
        display: none;
    }
}

@media (min-width: 1025px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Default landing page stílusok */
.landing-page {
    text-align: center;
    padding: 80px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.landing-page h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue, #1e3a8a);
    margin-bottom: 16px;
}

.landing-page p {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 40px;
    line-height: 1.6;
}

.landing-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.landing-menu-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
}

.landing-menu-item:hover {
    border-color: var(--primary-color, #007bff);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

.landing-menu-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-billingo-blue, #1e3a8a);
    margin-bottom: 12px;
}

.landing-menu-item p {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.landing-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.landing-badge {
    background: #f0f9ff;
    color: #0369a1;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
}

@media (max-width: 768px) {
    .landing-page {
        padding: 40px 20px;
    }
    
    .landing-page h1 {
        font-size: 2rem;
    }
    
    .landing-menu {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .landing-menu-item {
        padding: 24px;
    }
    
    .landing-badges {
        flex-direction: column;
        align-items: center;
    }
}

/* Vote Message Styles */
.vote-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.vote-message.success {
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.vote-message.error {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.vote-message-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vote-message-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Feedback Button Enhanced Styles */
.feedback-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.feedback-btn.voted {
    background-color: #e5e7eb;
    border-color: #d1d5db;
    color: #6b7280;
}

.feedback-btn.voted:hover {
    background-color: #e5e7eb;
    border-color: #d1d5db;
    transform: none;
}

/* Animation for vote message appearance */
.vote-message {
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}