/* LU24 Dashboard Styles */

.lu24-dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    font-family: inherit;
}

/* Блок 1: Header */
.lu24-header {
    margin-bottom: 30px;
}
.lu24-greeting {
    margin-top: 0;
    font-weight: 600;
    color: #333;
}
.lu24-subtitle {
    color: #777;
    font-size: 16px;
}
.lu24-gamification-panel {
    border-color: #f0ad4e;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.lu24-stat-icon {
    font-size: 24px;
    color: #f0ad4e;
    display: block;
    margin-bottom: 5px;
}
.lu24-stat-value {
    font-size: 22px;
    font-weight: bold;
    color: #333;
}
.lu24-stat-label {
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
}

/* Блок 2: Compass */
.lu24-compass {
    border-color: #31708f;
    margin-bottom: 30px;
    background-color: #f9fbfc;
}
.lu24-compass .panel-heading {
    background-color: #d9edf7;
    border-color: #31708f;
    color: #31708f;
}
.lu24-compass-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}
.lu24-compass-tag {
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.lu24-compass-tag:hover {
    background-color: #31708f;
    color: #fff;
    border-color: #31708f;
    transform: translateY(-2px);
}

/* Общие стили секций */
.lu24-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}
.lu24-section-title i {
    color: #5bc0de;
    margin-right: 8px;
}

/* Блок 3 и 4: Плитки инструментов */
.lu24-quick-access, .lu24-catalog {
    margin-bottom: 40px;
}
.lu24-category {
    margin-bottom: 30px;
}
.lu24-category-title {
    font-size: 18px;
    color: #555;
    margin-bottom: 15px;
    font-weight: 600;
}
.lu24-tool-tile {
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
    cursor: pointer;
}
.lu24-tool-tile:hover {
    border-color: #5bc0de;
    box-shadow: 0 4px 12px rgba(91, 192, 222, 0.2);
    transform: translateY(-3px);
}
.lu24-tile-icon {
    font-size: 32px;
    color: #5bc0de;
    margin-bottom: 15px;
    display: block;
}
.lu24-tool-tile h4 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}
.lu24-tile-desc {
    font-size: 13px;
    color: #777;
    margin-bottom: 15px;
    min-height: 36px;
}

/* Блок 5: Статистика */
.lu24-stats {
    margin-bottom: 30px;
}
.lu24-stat-box {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* AJAX Viewer (Замена модальному окну) */
.lu24-ajax-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    overflow-y: auto;
    padding: 40px 20px;
}
.lu24-ajax-loader {
    margin-top: 100px;
    color: #5bc0de;
}
.lu24-ajax-content {
    max-width: 900px;
    margin: 0 auto;
    animation: lu24FadeIn 0.4s ease-in-out;
}
.lu24-close-ajax-viewer {
    margin-top: 20px;
}

@keyframes lu24FadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .lu24-gamification-panel {
        margin-top: 20px;
    }
    .lu24-compass-tags {
        justify-content: center;
    }
    .lu24-tile-desc {
        min-height: auto;
    }
    .lu24-ajax-viewer {
        padding: 20px 15px;
    }
}

/* Стили для кнопки "Пройти быстрый тест" */
.lu24-compass-quick-test {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #d9edf7;
}

.lu24-compass-quick-test .btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
}

.lu24-compass-quick-test .btn i {
    margin-right: 8px;
}

/* Стили дляintro текста */
.lu24-compass-intro {
    text-align: center;
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
}

/* Стили для активного состояния фильтра */
.lu24-compass-tag.active {
    background-color: #31708f;
    color: #fff;
    border-color: #31708f;
}

/* Анимация появления/скрытия инструментов */
.lu24-tool-tile {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lu24-tool-tile[style*="display: none"] {
    opacity: 0;
    transform: scale(0.95);
}

/* Стили для кнопок фильтра */
.lu24-compass-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.lu24-compass-tag {
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.lu24-compass-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.lu24-compass-tag.active {
    background-color: #5cb85c;
    color: #fff;
    border-color: #4cae4c;
    box-shadow: 0 2px 6px rgba(92, 184, 92, 0.4);
}

.lu24-compass-tag.active:hover {
    background-color: #4cae4c;
    border-color: #449d44;
}

/* Анимация для плиток */
.lu24-tool-tile {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
}

.lu24-tool-tile.lu24-hidden {
    display: none !important;
    opacity: 0;
    transform: scale(0.8);
}

.lu24-tool-tile.lu24-showing {
    animation: lu24FadeInScale 0.4s ease forwards;
}

@keyframes lu24FadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Анимация для категорий */
.lu24-category {
    transition: all 0.4s ease;
    margin-bottom: 30px;
}

.lu24-category.lu24-hidden {
    display: none !important;
}

.lu24-category.lu24-showing {
    animation: lu24FadeIn 0.5s ease forwards;
}

@keyframes lu24FadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Плавное скрытие */
.lu24-fade-out {
    animation: lu24FadeOut 0.3s ease forwards;
}

@keyframes lu24FadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Режим фильтрации - используем flexbox вместо float */
.lu24-catalog.lu24-filtering-active .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

.lu24-catalog.lu24-filtering-active .col-md-3,
.lu24-catalog.lu24-filtering-active .col-sm-6,
.lu24-catalog.lu24-filtering-active .col-xs-12 {
    float: none;
    width: auto;
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Адаптивность для планшетов */
@media (max-width: 991px) {
    .lu24-catalog.lu24-filtering-active .col-md-3,
    .lu24-catalog.lu24-filtering-active .col-sm-6,
    .lu24-catalog.lu24-filtering-active .col-xs-12 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 767px) {
    .lu24-catalog.lu24-filtering-active .col-md-3,
    .lu24-catalog.lu24-filtering-active .col-sm-6,
    .lu24-catalog.lu24-filtering-active .col-xs-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Скрытые колонки в режиме фильтрации */
.lu24-catalog.lu24-filtering-active .lu24-col-hidden {
    display: none !important;
    width: 0 !important;
    flex: 0 0 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* Скрытые категории в режиме фильтрации */
.lu24-catalog.lu24-filtering-active .lu24-category.lu24-hidden {
    display: none !important;
}

/* Анимация появления колонок */
.lu24-col-showing {
    animation: lu24ColFadeIn 0.4s ease forwards;
}

@keyframes lu24ColFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Анимация исчезновения колонок */
.lu24-col-fade-out {
    animation: lu24ColFadeOut 0.3s ease forwards;
}

@keyframes lu24ColFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Анимация появления категорий */
.lu24-category.lu24-showing {
    animation: lu24FadeIn 0.5s ease forwards;
}

@keyframes lu24FadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Анимация исчезновения категорий */
.lu24-category.lu24-fade-out {
    animation: lu24FadeOut 0.3s ease forwards;
}

@keyframes lu24FadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Блок Настройки */
.lu24-settings {
    margin-bottom: 30px;
}

.lu24-settings .panel-heading {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.lu24-settings .panel-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.lu24-settings .panel-title i {
    color: #5bc0de;
    margin-right: 8px;
}

.lu24-settings-list {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: stretch;
}

.lu24-settings-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.lu24-settings-item:hover {
    background-color: #f8f9fa;
    border-color: #5bc0de;
    color: #5bc0de;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(91, 184, 222, 0.2);
}

.lu24-settings-icon {
    font-size: 20px;
    color: #5bc0de;
    width: 30px;
    text-align: center;
    margin-right: 15px;
}

.lu24-settings-label {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.lu24-settings-arrow {
    font-size: 14px;
    color: #ccc;
    transition: all 0.2s ease;
}

.lu24-settings-item:hover .lu24-settings-arrow {
    color: #5bc0de;
    transform: translateX(3px);
}

/* Адаптивность для планшетов и мобильных */
@media (max-width: 991px) {
    .lu24-settings-list {
        flex-direction: column;
    }
    
    .lu24-settings-item {
        padding: 15px 20px;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .lu24-settings-list {
        flex-direction: column;
        gap: 10px;
    }
    
    .lu24-settings-item {
        padding: 12px 15px;
    }
    
    .lu24-settings-icon {
        font-size: 18px;
        width: 25px;
        margin-right: 12px;
    }
    
    .lu24-settings-label {
        font-size: 14px;
    }
}