/* БЛОК: ОБЩИЕ СТИЛИ (BASE) */
/* ========================================================================= */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #a1aebb;
    color: #333;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}




/* БЛОК: САЙДБАР (SIDEBAR) */
/* ========================================================================= */
.sidebar {
    width: 260px;
    padding: 20px;
    background-color: #343a40;
    color: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar__logo {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 30px;
    text-align: center;
}

.sidebar__home {
    color: #fff;
    text-decoration: none;
}

.sidebar__logo-img {
    width: 80px; 
    height: 80px;
    object-fit: cover; 
    border-radius: 50%; 
    border: 2px solid #005bbd;
    margin-right: 10px;
}

.sidebar__menu {
    list-style: none;
    padding: 0;
}

.sidebar__item {
    margin-bottom: 5px;
}

.sidebar__link {
    display: block;
    padding: 10px 15px;
    color: #adb5bd;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.sidebar__link:hover {
    background-color: #495057;
    color: white;
}

.sidebar__link--active {
    background-color: #005bbd; 
    color: white;
    font-weight: bold;
}

/* БЛОК: ОСНОВНОЕ СОДЕРЖИМОЕ (CONTENT) */
/* ========================================================================= */
.content {
    flex-grow: 1; 
    padding: 30px;
    background-color: #a1aebb;
}

.content-header {
    border-bottom: 1px solid #005bbd;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.content-back-link {
    display: inline-block;
    margin-top: 10px;
    color: #005bbd;
    text-decoration: none;
    font-weight: bold;
}

.content-back-link:hover {
    text-decoration: underline;
}

/* БЛОК: ИНСТРУКЦИЯ (GUIDE) */
/* ========================================================================= */
.usage-guide {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
    max-width: 600px;
}

.step-card {
    background: #e9ecef;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #005bbd;
}

.step-card h3 {
    color: #005bbd;
    margin-top: 0;
    font-size: 1.2em;
}

.code-block {
    background-color: #343a40;
    color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.9em;
}


/* БЛОК: КАТАЛОГ КОМПОНЕНТОВ (CATALOG VIEW) */
/* ========================================================================= */
.component-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, 300px); 
    gap: 30px; 
    margin-top: 20px;
}

.component-item {
    background: white;
    border-radius: 12px; 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; 
}

.component-item:hover {
    transform: translateY(-8px); 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); 
    cursor: pointer;
}

.component-link {
    display: block;
    text-decoration: none;
    color: #333;
    height: 100%;
}

.component-details {
    padding: 20px;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.05);
}

.component-image {
    width: 100%;
    height: 200px; 
    background-size: contain; 
    background-repeat: no-repeat; 
    background-color: #f8f8f8; 
    background-position: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    transition: transform 0.3s ease; 
}

.component-item:hover .component-image {
    transform: scale(1.03); 
}

.component-details h4 {
    color: #005bbd; 
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 20px;
}

.component-details p {
    font-size: 16px;
    color: #6c757d;
}
