body {
    background: #f0f4f8;
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
    font-family: 'Roboto', sans-serif;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    padding-top: 2rem;
    padding-bottom: 2rem;
    max-width: 960px;
    margin: 0 auto;
    width: 90%;
}

.navbar {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
}

.navbar-brand h3 {
    color: #606c76;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: #007bff !important;
    font-size: 1.125rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #0056b3 !important;
}

.card {
    border-radius: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

h1 {
    color: #007bff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 1rem;
}

.form-control {
    border-radius: 0.5rem;
    font-size: 1.125rem;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
}

/* Стилизация кнопок */
.custom-btn {
    font-size: 1.125rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.custom-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.custom-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.custom-btn-primary {
    background: linear-gradient(45deg, #007bff, #00aaff);
    border: none;
    color: #fff;
}

.custom-btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #0088cc);
}

.custom-btn-danger {
    background: linear-gradient(45deg, #dc3545, #ff4d4d);
    border: none;
    color: #fff;
}

.custom-btn-danger:hover {
    background: linear-gradient(45deg, #c82333, #e63939);
}

.custom-btn i {
    font-size: 1.25rem;
}

.success {
    margin-top: 1rem;
    font-weight: 500;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
}

.text-success {
    background: #d4edda;
    color: #28a745;
    border: 1px solid #c3e6cb;
}

.text-danger {
    background: #f8d7da;
    color: #dc3545;
    border: 1px solid #f5c6cb;
}

.text-muted {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.4em + 0.2rem) center;
    background-size: calc(0.8em + 0.4rem) calc(0.8em + 0.4rem);
}

.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.4em + 0.2rem) center;
    background-size: calc(0.8em + 0.4rem) calc(0.8em + 0.4rem);
}



     /* Ваши существующие стили для body, wrapper, container, navbar и т.д. */

     /* Стили для модального окна */
 .instruction-modal {
     display: none;
     opacity: 0;
     transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-color: rgba(0, 0, 0, 0.6);
     z-index: 1050;
     backdrop-filter: blur(5px);
 }

.instruction-modal.active {
    display: block;
    opacity: 1;
}

.instruction-modal-content {
    transform: scale(0.95) translate(-50%, -50%);
    transition: transform 0.4s ease-in-out;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 2rem;
    border-radius: 1rem;
    max-width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.instruction-modal.active .instruction-modal-content {
    transform: scale(1) translate(-50%, -50%);
}

.instruction-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.75rem;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    border-radius: 50%;
    padding: 0.25rem;
}

.instruction-modal-close:hover {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    transform: rotate(90deg);
}

.instruction-modal-content h3 {
    color: #007bff;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: 600;
    text-align: center;
}

.instruction-modal-content p {
    color: #444;
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: left;
}



/* Стили для страницы авторизации */
.auth-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}



/* Стили для кнопки авторизации (совместимы с custom-btn из предыдущего кода) */
.custom-btn {
    font-size: 1.25rem;
    font-weight: 500;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.custom-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.custom-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.custom-btn-primary {
    background: linear-gradient(45deg, #007bff, #00aaff);
    border: none;
    color: #fff;
}

.custom-btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #0088cc);
}

.custom-btn i {
    font-size: 1.25rem;
    margin-right: 0.5rem;
}




/* Стили для шагов в модальном окне */
.step {
    margin-bottom: 2rem;
    padding: 1rem;
    border-left: 4px solid #007bff;
    background: #f8f9fa;
    border-radius: 0.5rem;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.code-block {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1rem;
    border-radius: 0.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 1rem 0;
    max-height: 300px;
    overflow-y: auto;
}

/* Стили для placeholders скриншотов */
.screenshot-placeholder {
    background: #e9ecef;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-top: 1rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ced4da;
}

.placeholder-text {
    font-style: italic;
    color: #6c757d;
    margin: 0;
}





/* Стили для шагов в модальном окне */
.step {
    margin-bottom: 2rem;
    padding: 1rem;
    border-left: 4px solid #007bff;
    background: #f8f9fa;
    border-radius: 0.5rem;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.code-block {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1rem;
    border-radius: 0.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 1rem 0;
    max-height: 300px;
    overflow-y: auto;
}

/* Стили для placeholders скриншотов */
.screenshot-placeholder {
    background: #e9ecef;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-top: 1rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ced4da;
}

.placeholder-text {
    font-style: italic;
    color: #6c757d;
    margin: 0;
}

/* Стили для модального окна (повтор для нового окна) */
.instruction-modal {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1050;
    backdrop-filter: blur(5px);
}

.instruction-modal.active {
    display: block;
    opacity: 1;
}

.instruction-modal-content {
    transform: scale(0.95) translate(-50%, -50%);
    transition: transform 0.4s ease-in-out;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 2rem;
    border-radius: 1rem;
    max-width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.instruction-modal.active .instruction-modal-content {
    transform: scale(1) translate(-50%, -50%);
}

.instruction-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.75rem;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    border-radius: 50%;
    padding: 0.25rem;
}

.instruction-modal-close:hover {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    transform: rotate(90deg);
}

.instruction-modal-content h3 {
    color: #007bff;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: 600;
    text-align: center;
}

.instruction-modal-content p {
    color: #444;
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: left;
}


/* Добавим дополнительные стили для изображений */
.screenshot-placeholder img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}