/* HUB de Soporte RetalentIA - Estilos */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.5rem;
    color: #1a202c;
}

nav a {
    color: #4a5568;
    text-decoration: none;
    margin-left: 1rem;
    transition: color 0.2s;
}

nav a:hover {
    color: #2d3748;
}

.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.filters {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filters form {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filters label {
    font-weight: 500;
    color: #4a5568;
}

.filters select {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
}

.tickets-info {
    margin-bottom: 1rem;
    color: #6b7280;
}

.tickets-table {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tickets-table thead {
    background-color: #f9fafb;
}

.tickets-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.tickets-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.tickets-table tbody tr:hover {
    background-color: #f9fafb;
}

.tickets-table code {
    background-color: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: 'Monaco', 'Courier New', monospace;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-abierto {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-esperando_cliente {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-resuelto {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-cerrado {
    background-color: #e5e7eb;
    color: #374151;
}

.badge-priority-alta {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-priority-media {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-priority-baja {
    background-color: #dbeafe;
    color: #1e40af;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #4f46e5;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #4338ca;
}

.btn-primary {
    background-color: #059669;
}

.btn-primary:hover {
    background-color: #047857;
}

.btn-danger {
    background-color: #dc2626;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

.pagination {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.ticket-header {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-header h2 {
    font-size: 1.5rem;
    color: #1a202c;
}

.ticket-meta {
    display: flex;
    gap: 0.5rem;
}

.ticket-info {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ticket-info p {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.ticket-info strong {
    color: #1a202c;
}

.messages {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.messages h3 {
    margin-bottom: 1.5rem;
    color: #1a202c;
}

.message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    border-left: 4px solid #d1d5db;
}

.message-cliente {
    background-color: #f9fafb;
    border-left-color: #4f46e5;
}

.message-soporte {
    background-color: #eff6ff;
    border-left-color: #059669;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.message-header strong {
    color: #1a202c;
}

.message-date {
    color: #6b7280;
    font-size: 0.875rem;
}

.message-body {
    color: #4a5568;
    white-space: pre-wrap;
}

.reply-form {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.reply-form h3 {
    margin-bottom: 1rem;
    color: #1a202c;
}

.reply-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.875rem;
    resize: vertical;
}

.reply-form textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.close-ticket-form {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.close-ticket-form h3 {
    margin-bottom: 1rem;
    color: #1a202c;
}

.attachments a:hover {
    background-color: #e5e7eb;
}

