
/* Estilos para los diálogos */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.dialog-overlay.active {
    opacity: 1;
    visibility: visible;
}

.dialog-container {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.dialog-overlay.active .dialog-container {
    transform: translateY(0);
}

.dialog-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dialog-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.dialog-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #777;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.dialog-close:hover {
    color: #f44336;
}

.dialog-content {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.dialog-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.dialog-button {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.dialog-button.cancel {
    background-color: #f1f1f1;
    color: #333;
}

.dialog-button.cancel:hover {
    background-color: #e0e0e0;
}

.dialog-button.create,
.dialog-button.apply {
    background-color: #4CAF50;
    color: white;
}

.dialog-button.create:hover,
.dialog-button.apply:hover {
    background-color: #388E3C;
}

.dialog-button.generate-report {
    background-color: #2196F3;
    color: white;
}

.dialog-button.generate-report:hover {
    background-color: #1976D2;
}

.dialog-button.close-dialog {
    background-color: #f1f1f1;
    color: #333;
}

/* Estilos para las categorías */
.categories-section,
.new-category-section {
    margin-bottom: 20px;
}

.categories-section h4,
.new-category-section h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #555;
    font-size: 16px;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.category-item input[type="checkbox"] {
    cursor: pointer;
}

.category-item label {
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 13px;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* Colores para las categorías */
.category-tag.blue { background-color: rgba(33, 150, 243, 0.1); color: #2196F3; }
.category-tag.green { background-color: rgba(76, 175, 80, 0.1); color: #4CAF50; }
.category-tag.red { background-color: rgba(244, 67, 54, 0.1); color: #F44336; }
.category-tag.yellow { background-color: rgba(255, 193, 7, 0.1); color: #FFC107; }
.category-tag.purple { background-color: rgba(156, 39, 176, 0.1); color: #9C27B0; }

/* Estilos para la lista de quejas */
.complaints-dialog {
    max-width: 600px;
}

.complaints-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.complaint-item {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.complaint-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: #ddd;
}

.complaint-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.complaint-message {
    color: #333;
    line-height: 1.5;
}

/* Responsive adaptations */
@media (max-width: 768px) {
    .dialog-container {
        width: 95%;
        max-height: 90vh;
    }

    .new-category-form {
        flex-direction: column;
    }
}

/* Animation for dialog appearance */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.dialog-container {
    animation: fadeIn 0.3s forwards;
}
