/* Modal de problèmes */
.problem-modal {
    max-width: 700px;
}

.problem-steps {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    position: relative;
}

.problem-steps::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: #e9ecef;
    z-index: 0;
}

.problem-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.problem-step .step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    font-weight: bold;
    color: #6c757d;
    transition: all 0.3s ease;
}

.problem-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.problem-step.active .step-number,
.problem-step.completed .step-number {
    background-color: #ffc107;
    color: #212529;
}

.problem-step .step-text {
    font-size: 0.9rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.problem-step.active .step-text {
    color: #ffc107;
    font-weight: bold;
}

.problem-step-content {
    display: none;
    padding: 15px 0;
}

.problem-step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.category-selection h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #495057;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.category-card {
    background-color: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.category-card.selected {
    border-color: #ffc107;
    background-color: #fff8e1;
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #6c757d;
}

.category-card.selected .category-icon {
    color: #ffc107;
}

.category-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #495057;
}

.category-card.selected .category-name {
    color: #212529;
}

.category-desc {
    font-size: 0.85rem;
    color: #6c757d;
}

.priority-selector {
    display: flex;
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.priority-option {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
    border-right: 1px solid #e9ecef;
}

.priority-option:last-child {
    border-right: none;
}

.priority-option i {
    margin-right: 5px;
}

.priority-option.low {
    color: #28a745;
}

.priority-option.medium {
    color: #ffc107;
}

.priority-option.high {
    color: #dc3545;
}

.priority-option.active {
    background-color: #f8f9fa;
    font-weight: bold;
}

.priority-option.low.active {
    background-color: #d4edda;
}

.priority-option.medium.active {
    background-color: #fff3cd;
}

.priority-option.high.active {
    background-color: #f8d7da;
}

.problem-summary {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.problem-summary h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #495057;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

.summary-item {
    display: flex;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.summary-label {
    font-weight: bold;
    color: #6c757d;
    width: 100px;
}

.summary-value {
    color: #212529;
}

.description-summary {
    flex-direction: column;
}

.description-summary .summary-label {
    margin-bottom: 5px;
}

.problem-preview {
    background-color: #fff;
    border-radius: 6px;
    padding: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
}

#summaryCategoryIcon {
    margin-right: 5px;
}

.pending-problems {
    margin-top: 25px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.pending-problems-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.pending-problems-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.pending-count {
    background-color: #ffc107;
    color: #212529;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.85rem;
    font-weight: bold;
}

.pending-problems-list {
    max-height: 250px;
    overflow-y: auto;
}

.problem-item {
    background-color: #fff;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.problem-item:hover {
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.problem-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.problem-category {
    font-weight: bold;
    color: #495057;
    display: flex;
    align-items: center;
}

.problem-category i {
    margin-right: 5px;
}

.problem-priority {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

.problem-priority.low {
    background-color: #d4edda;
    color: #28a745;
}

.problem-priority.medium {
    background-color: #fff3cd;
    color: #856404;
}

.problem-priority.high {
    background-color: #f8d7da;
    color: #721c24;
}

.problem-content {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.problem-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #adb5bd;
}

.problem-status {
    display: flex;
    align-items: center;
}

.problem-status i {
    margin-right: 3px;
}

.problem-status.unsolved {
    color: #dc3545;
}

.problem-status.solved {
    color: #28a745;
}

.problem-date {
    display: flex;
    align-items: center;
}

.problem-date i {
    margin-right: 3px;
}

/* Responsive design pour les petits écrans */
@media (max-width: 576px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .problem-summary {
        padding: 15px;
    }
    
    .summary-item {
        flex-direction: column;
    }
    
    .summary-label {
        width: auto;
        margin-bottom: 5px;
    }
}
