html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Общие стили для заголовков страниц */
.page-header {
    text-align: center;
    padding: 8px 0;
    margin-bottom: 0;
}

.page-header.text-start {
    text-align: left;
}

.page-title {
    color: #212529;
    font-weight: 600;
    margin: 0;
    display: inline-flex;
    align-items: center;
    font-size: 28px;
}

.page-title i {
    color: #007bff;
    font-size: 32px;
}

/* Адаптивные стили для заголовков */
@media (max-width: 768px) {
    .page-title {
        font-size: 24px;
    }

    .page-title i {
        font-size: 28px;
    }

    .page-header {
        padding: 6px 0;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 20px;
    }

    .page-title i {
        font-size: 24px;
    }

    .page-header {
        padding: 4px 0;
    }
}

h1:focus {
    outline: none;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.button-container button {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 8px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    max-width: 450px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

    .modal-content h4 {
        margin-bottom: 12px;
        font-size: 18px;
        font-weight: bold;
        color: #333;
    }

    .modal-content label {
        display: block;
        font-weight: bold;
        margin-top: 8px;
        text-align: left;
        font-size: 0.9rem;
    }

    .modal-content select,
    .modal-content input {
        width: 100%;
        padding: 6px;
        margin-top: 4px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 14px;
        transition: border-color 0.2s ease-in-out;
    }

        .modal-content select:focus,
        .modal-content input:focus {
            border-color: #25b7d4;
            outline: none;
        }

.modal-buttons {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
}

    .modal-buttons button {
        flex: 1;
        padding: 8px;
        margin: 3px;
        border: none;
        border-radius: 4px;
        font-size: 14px;
        cursor: pointer;
        transition: background 0.2s ease-in-out;
    }

    .modal-buttons .btn-primary {
        background: #25b7d4;
        color: white;
    }

        .modal-buttons .btn-primary:hover {
            background: #1c94a9;
        }

    .modal-buttons .btn-secondary {
        background: #ccc;
        color: black;
    }

        .modal-buttons .btn-secondary:hover {
            background: #b3b3b3;
        }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.color-box {
    display: inline-block;
    width: 100px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-left: 8px;
    vertical-align: middle;
}

/* Полноширинный блок страницы деталей (раньше max-width:300px ломал сетку и колонки). */
.component-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

    .component-details label {
        font-weight: bold;
    }

    .component-details input {
        padding: 5px;
    }
