/* Общи стилове */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.1em;
    opacity: 0.95;
}

.content-wrapper {
    display: flex;
}

.sidebar {
    width: 280px;
    background: #f8f9fa;
    padding: 20px;
    border-right: 2px solid #e9ecef;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3em;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 8px;
}

.sidebar ul li a {
    color: #495057;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.sidebar ul li a:hover {
    background: #667eea;
    color: white;
    transform: translateX(5px);
}

.main-content {
    flex: 1;
    padding: 40px;
}

.section {
    margin-bottom: 50px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 5px solid #667eea;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section h2 {
    color: #667eea;
    font-size: 2em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.section h3 {
    color: #764ba2;
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 15px;
}

.section h4 {
    color: #495057;
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 10px;
}

.section p {
    margin-bottom: 15px;
    text-align: justify;
}

.section ul, .section ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

.section ul li, .section ol li {
    margin-bottom: 10px;
}

.feature-box {
    background: white;
    padding: 20px;
    border-radius: 5px;
    margin: 15px 0;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.feature-box h4 {
    color: #667eea;
    margin-top: 0;
}

.command-list {
    background: #e9ecef;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
}

.command-list code {
    color: #d63384;
    font-weight: bold;
}

.tip-box {
    background: #d1ecf1;
    border-left: 4px solid #0c5460;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.tip-box strong {
    color: #0c5460;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #856404;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.warning-box strong {
    color: #856404;
}

.icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
}

table th, table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #dee2e6;
}

table th {
    background: #667eea;
    color: white;
    font-weight: bold;
}

table tr:nth-child(even) {
    background: #f8f9fa;
}

table tr:hover {
    background: #e7f3ff;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #667eea;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    cursor: pointer;
}

.back-to-top:hover {
    background: #764ba2;
    transform: translateY(-5px);
}

/* Accordion стилове */
.accordion {
    margin: 20px 0;
}

.accordion-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.accordion-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
}

.accordion-header:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.accordion-header.active {
    background: linear-gradient(135deg, #5568d3 0%, #653a8f 100%);
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.2em;
    color: white;
}

.accordion-icon {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.accordion-content.active {
    max-height: 5000px;
    padding: 20px;
}

.accordion-content p {
    margin-bottom: 15px;
}

.accordion-content ul, .accordion-content ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

/* Главна страница стилове */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px;
}

.menu-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border-color: #667eea;
}

.menu-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.menu-card-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.menu-card h2 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.8em;
}

.menu-card p {
    color: #666;
    line-height: 1.6;
}

/* Навигация */
.nav-link {
    display: inline-block;
    margin: 10px;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #764ba2;
    transform: translateY(-2px);
}

/* Responsive дизайн */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .main-content {
        padding: 20px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

