/* Dokumentacja - style specyficzne */
.docs-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 100%);
    padding: 4rem 0;
}

.docs-nav {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.docs-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
    padding: 2rem;
}

.docs-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.docs-menu {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.docs-menu h3 {
    margin: 0 0 1rem 0;
    color: #1e293b;
    font-size: 1.1rem;
}

.docs-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-menu > ul > li {
    margin-bottom: 0.5rem;
}

.docs-menu ul ul {
    margin-left: 1rem;
    margin-top: 0.5rem;
}

.docs-menu a {
    color: #64748b;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.docs-menu a:hover {
    color: #6366f1;
    background: #f1f5f9;
    padding-left: 0.5rem;
}

.docs-content {
    flex: 1;
    min-width: 0;
}

.docs-section {
    margin-bottom: 3rem;
}

.docs-section h2 {
    color: #1e293b;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #6366f1;
}

.docs-subsection {
    margin-bottom: 2.5rem;
}

.docs-subsection h3 {
    color: #334155;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.docs-subsection h4 {
    color: #475569;
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem 0;
}

.docs-content p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.docs-content ul, .docs-content ol {
    color: #475569;
    line-height: 1.6;
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.docs-content li {
    margin-bottom: 0.5rem;
}

.code-block {
    background: #1e293b;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.code-block code {
    color: #e2e8f0;
    background: none;
    padding: 0;
    border-radius: 0;
}

.docs-note {
    background: #dbeafe;
    border-left: 4px solid #3b82f6;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.docs-warning {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.docs-note strong,
.docs-warning strong {
    color: #1e293b;
}

.docs-note p,
.docs-warning p {
    color: #1e293b;
    margin: 0;
}

.docs-note ul,
.docs-warning ul {
    color: #1e293b;
}

.command-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.command-card h4 {
    background: #f1f5f9;
    color: #1e293b;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin: 0 0 1rem 0;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
}

.command-card p {
    color: #475569;
    margin: 0.5rem 0;
}

.command-card strong {
    color: #1e293b;
}

.command-card ul {
    color: #475569;
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.command-card li {
    color: #475569;
    margin: 0.25rem 0;
}

.admin-command {
    border-left: 4px solid #ef4444;
}

.admin-command h4 {
    background: #fef2f2;
    color: #dc2626;
}

.troubleshooting {
    margin-top: 2rem;
}

.troubleshooting h3 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.problem-card {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.problem-card h4 {
    color: #dc2626;
    margin: 0 0 1rem 0;
}

.problem-card p {
    color: #374151;
    margin: 0.5rem 0;
}

.problem-card strong {
    color: #1f2937;
}

.problem-card ol,
.problem-card ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    color: #374151;
}

.problem-card li {
    margin: 0.25rem 0;
    color: #374151;
}

/* Style dla kreatora konfiguracji */
.config-wizard {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid #e2e8f0;
}

.wizard-step {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.wizard-step:last-child {
    border-bottom: none;
    margin-bottom: 1rem;
}

.wizard-step h4 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.wizard-step input[type="text"],
.wizard-step input[type="url"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.input-group input {
    flex: 1;
}

.btn-icon {
    background: #6366f1;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s ease;
}

.btn-icon:hover {
    background: #5855eb;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

.wizard-actions {
    text-align: center;
    margin-top: 1rem;
}

.config-output {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.validation-requirements {
    margin-top: 0.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.25rem;
}

.validation-requirements .valid {
    color: #059669;
    font-size: 0.9rem;
}

.validation-requirements .invalid {
    color: #dc2626;
    font-size: 0.9rem;
}

.download-section {
    text-align: center;
    margin: 2rem 0;
}

.download-section .btn {
    display: inline-block;
    margin-bottom: 0.5rem;
}

.bot-invite {
    text-align: center;
    margin: 2rem 0;
}

.bot-invite .btn {
    display: inline-block;
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.validation-info {
    margin-top: 0.5rem;
}

/* Responsywność */
@media (max-width: 1024px) {
    .docs-container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .docs-sidebar {
        width: 100%;
        position: static;
        order: -1;
    }
    
    .docs-menu {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .docs-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .code-block {
        font-size: 0.8rem;
    }
    
    .command-card {
        padding: 1rem;
    }
    
    .docs-section h2 {
        font-size: 1.5rem;
    }
    
    .docs-subsection h3 {
        font-size: 1.3rem;
    }
    
    .config-wizard {
        padding: 1rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group input {
        width: 100%;
    }
    
    .validation-requirements {
        grid-template-columns: 1fr;
    }
}

/* Smooth scrolling dla linków wewnętrznych */
html {
    scroll-behavior: smooth;
}

/* Highlight dla aktywnych sekcji */
.docs-menu a.active {
    color: #6366f1;
    background: #f1f5f9;
    padding-left: 0.5rem;
    font-weight: 600;
}

/* Style dla inline code */
p code, li code {
    background: #f1f5f9;
    color: #6366f1;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Style dla tabel jeśli będą potrzebne */
.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.docs-table th,
.docs-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.docs-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
}

.docs-table tr:last-child td {
    border-bottom: none;
}

/* Animacje */
.command-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.command-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Style dla przycisków w dokumentacji */
.docs-button {
    display: inline-block;
    background: #6366f1;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
}

.docs-button:hover {
    background: #5855eb;
}

.docs-button.secondary {
    background: #64748b;
}

.docs-button.secondary:hover {
    background: #475569;
}

/* Dodatkowe style dla lepszej czytelności */
.docs-content a {
    color: #6366f1;
    text-decoration: none;
}

.docs-content a:hover {
    text-decoration: underline;
}

/* Poprawki dla przycisków kopiowania */
.copy-button {
    position: absolute !important;
    top: 0.5rem !important;
    right: 0.5rem !important;
    background: #374151 !important;
    color: white !important;
    border: none !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 4px !important;
    font-size: 0.8rem !important;
    cursor: pointer !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
    z-index: 10 !important;
}

.code-block:hover .copy-button {
    opacity: 1 !important;
}
