/* Estilos para el sistema de consulta de tickets */
.ticket-search-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

button {
    background-color: #0073aa;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #005177;
}

#ticket-details {
    margin-top: 20px;
    padding: 20px;
    border-radius: 4px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
}

#ticket-comments {
    margin-top: 20px;
}

.success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.comment {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    background-color: #fff;
}

.comment-header {
    font-weight: bold;
    margin-bottom: 8px;
    color: #555;
    font-size: 0.9em;
}

.comment-content {
    line-height: 1.5;
}

.ticket-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.9em;
    font-weight: bold;
}

.status-pending {
    background-color: #fcf8e3;
    color: #8a6d3b;
}

.status-in_progress {
    background-color: #d9edf7;
    color: #31708f;
}

.status-resolved {
    background-color: #dff0d8;
    color: #3c763d;
}

.status-closed {
    background-color: #f5f5f5;
    color: #777;
}

.status-rejected {
    background-color: #f2dede;
    color: #a94442;
}

.status-reopened {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.ticket-description {
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
}

.ticket-attachments {
    margin-top: 15px;
}

.ticket-attachments ul {
    margin-left: 20px;
}

.ticket-actions {
    margin-top: 20px;
}

#close-ticket {
    background-color: #d9534f;
}

#close-ticket:hover {
    background-color: #c9302c;
}

/* Añadir estos estilos al final de ticket-styles.css */

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.button-secondary {
    background-color: #6c757d;
}

.button-secondary:hover {
    background-color: #5a6268;
}

.button-danger {
    background-color: #dc3545;
}

.button-danger:hover {
    background-color: #c82333;
}

#cancel-search {
    margin-left: 10px;
}

.loading {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #dee2e6;
}

/* Mejoras para dispositivos móviles */
@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
    }
    
    .button-group button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    #cancel-search {
        margin-left: 0;
    }
}