/* Блок «Что вас беспокоит?» (render-top-problems).
   Перенесено из инлайнового <style> шаблона widgets/render_top_problem.blade.php. */
.widget-title {
    color: #2c3e50;
    font-weight: 600;
    text-align: center;
}

.top-problems-widget .problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.top-problems-widget .problem-item {
    margin: 0;
}

.top-problems-widget .problem-checkbox {
    display: none;
}

.top-problems-widget .problem-label {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    height: 100%;
}

.top-problems-widget .problem-content {
    flex: 1;
    padding-right: 10px;
}

.top-problems-widget .problem-label strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2c3e50;
}

.top-problems-widget .problem-label p {
    font-size: 12px;
    color: #6c757d;
    margin: 0;
    line-height: 1.3;
}

.top-problems-widget .check-icon {
    width: 20px;
    height: 20px;
    border: 2px solid #adb5bd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.top-problems-widget .check-icon i {
    font-size: 10px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: bold;
}

.top-problems-widget .problem-label:hover {
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.top-problems-widget .problem-checkbox:checked + .problem-label {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.top-problems-widget .problem-checkbox:checked + .problem-label .check-icon {
    background: #28a745;
    border-color: #28a745;
}

.top-problems-widget .problem-checkbox:checked + .problem-label .check-icon i {
    opacity: 1;
}

.top-problems-widget .problem-checkbox:checked + .problem-label p {
    color: #0f5132;
}

@media (max-width: 768px) {
    .top-problems-widget {
        padding: 1rem;
    }

    .top-problems-widget .problems-grid {
        grid-template-columns: 1fr;
    }

    .top-problems-widget .problem-label {
        padding: 12px;
    }
}
