﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.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;
}

html {
    position: relative;
    min-height: 100%;
}


/*Слева снизу таймер*/
.fixed-bottom-rightTM {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
}

.fixed-bottom-right-table {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.vertical-navbar {
    width: 70px;
    height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1040;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}




.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.auth-container {

    padding: 2rem 1rem; 
    border-radius: 8px;
    min-height: calc(100vh - 200px); 
}

.auth-tabs {
    display: flex;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

    .tab-btn.active {
        border-bottom: 2px solid #007bff;
        color: #007bff;
    }


.form-group {
    margin-bottom: 1rem;
}


.external-auth {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}


/* Фиксированный навбар */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030; /* Убедитесь, что навбар поверх других элементов */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Небольшая тень для эффекта */
}


/* Для мобильных устройств */
@media (max-width: 991.98px) {
    .navbar {
        position: static; /* На мобильных можно отключить фиксацию */
    }

    body {
        padding-top: 0;
    }
}


.question-card {
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

    .question-card:hover {
        background-color: #e9ecef;
    }

.answer-item {
    background-color: white;
    transition: all 0.2s ease;
}

    .answer-item:hover {
        background-color: #f1f1f1;
    }

    .answer-item .form-check-input {
        margin-top: 0.45rem;
    }

.answers-section {
    min-height: 50px;
}

.answer-item {
    cursor: move;
    margin-bottom: 5px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
/* Стили для формы завершения регистрации */
#completeProfileForm {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

    #completeProfileForm .form-label {
        font-weight: 500;
        color: #495057;
    }

    #completeProfileForm .card {
        border: none;
        border-radius: 10px;
    }

    #completeProfileForm .card-header {
        border-radius: 10px 10px 0 0 !important;
    }

    #completeProfileForm .alert {
        margin-bottom: 25px;
    }


    /* COOCKIE*/
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 0;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text h5 {
    margin: 0 0 8px 0;
    font-weight: 600;
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.cookie-link {
    color: #ffd700 !important;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-details {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-settings-modal .modal-content {
    border-radius: 15px;
    border: none;
}

.cookie-settings-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
    border-radius: 15px 15px 0 0;
}

.cookie-settings-modal .modal-body {
    padding: 25px;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

    .cookie-toggle:last-child {
        border-bottom: none;
    }

.cookie-toggle-label {
    flex: 1;
}

    .cookie-toggle-label h6 {
        margin: 0;
        font-weight: 600;
    }

    .cookie-toggle-label p {
        margin: 4px 0 0 0;
        font-size: 0.85rem;
        color: #666;
    }

/* Адаптивность */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }

    .cookie-details {
        display: none;
    }
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
   
    background: left 13% / 13% 30% repeat url("/images/back.png");
    margin: 0;
    min-height: 100vh;
    position: relative;
    align-items: center;
    background-position: center;
    background-attachment: fixed;
}



@media (max-width: 991.98px) {
    .navbar {
        position: static;
    }

    body {
        padding-top: 0;
    }

    .vertical-navbar {
        display: none; /* Скрываем вертикальный навбар на мобильных */
    }

    .auth-container {
        margin: 1rem auto;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
}