/* ==========================================================================
   WHM Tickets — styles spécifiques vue admin (palette #FA83FF)
   Les styles frontend tickets sont dans frontend-style.css
   ========================================================================== */

/* Vue détail ticket admin */
.whm-ticket-view {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.whm-ticket-view-header {
    background: linear-gradient(135deg, #FA83FF 0%, #e040fb 100%);
    color: white;
    padding: 24px 28px;
}

.whm-ticket-view-header h3 { margin: 0 0 12px; font-size: 20px; color: white; }

.whm-ticket-view-meta { display: flex; flex-wrap: wrap; gap: 10px; }

.whm-ticket-badge {
    background: rgba(255,255,255,.2);
    padding: 5px 12px; border-radius: 6px;
    font-size: 13px; font-weight: 600;
}

.whm-ticket-status-badge,
.whm-ticket-priority-badge {
    background: rgba(255,255,255,.9);
    padding: 5px 12px; border-radius: 6px;
    font-size: 13px; font-weight: 600;
}

.whm-ticket-status-badge-open        { color: #065f46; }
.whm-ticket-status-badge-in-progress { color: #1e40af; }
.whm-ticket-status-badge-waiting     { color: #92400e; }
.whm-ticket-status-badge-closed      { color: #4b5563; }

/* Conversation */
.whm-ticket-conversation {
    padding: 24px 28px;
    max-height: 500px;
    overflow-y: auto;
}

.whm-ticket-msg { display: flex; gap: 12px; margin-bottom: 20px; }
.whm-msg-avatar { flex-shrink: 0; }
.whm-msg-avatar img { border-radius: 50%; }

.whm-msg-content {
    flex: 1; background: #f9fafb;
    padding: 14px 18px; border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.whm-msg-admin .whm-msg-content {
    background: #fff0ff;
    border-left: 3px solid #FA83FF;
}

.whm-msg-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.whm-msg-header strong { color: #1f2937; }

.whm-staff-badge {
    background: linear-gradient(135deg, #FA83FF 0%, #e040fb 100%);
    color: white; padding: 2px 8px;
    border-radius: 4px; font-size: 11px; font-weight: 600;
}

.whm-msg-time { color: #6b7280; font-size: 12px; margin-left: auto; }
.whm-msg-body { color: #1f2937; line-height: 1.6; font-size: 14px; }

/* Réponse */
.whm-ticket-reply-box {
    padding: 24px 28px;
    background: #fafafa;
    border-top: 2px solid #f3f4f6;
}

.whm-ticket-reply-box h4 { margin: 0 0 14px; font-size: 15px; color: #1f2937; }

.whm-ticket-reply-box textarea {
    width: 100%; padding: 12px 16px;
    border: 1.5px solid #e5e7eb; border-radius: 10px;
    font-size: 14px; font-family: inherit;
    resize: vertical; min-height: 110px;
    margin-bottom: 12px; box-sizing: border-box;
    transition: border-color .2s;
}

.whm-ticket-reply-box textarea:focus {
    outline: none;
    border-color: #FA83FF;
    box-shadow: 0 0 0 3px rgba(250,131,255,.12);
}

.whm-ticket-closed-notice {
    padding: 24px 28px; background: #fef9c3;
    text-align: center; display: flex;
    flex-direction: column; align-items: center; gap: 10px;
}
.whm-ticket-closed-notice p { margin: 0; color: #92400e; font-size: 14px; }
