/* Custom CSS for Support Ticket Platform Admin */

/* Chat message styling */
.chat-messages {
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 20px;
}

.chat-message {
    background: white;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.chat-message-author {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.chat-message-time {
    font-size: 0.85em;
    color: #666;
    margin-left: 10px;
}

.chat-message-text {
    margin: 5px 0;
    line-height: 1.5;
}

.chat-message-attachments {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.chat-message-attachments a {
    display: inline-block;
    margin-right: 10px;
    color: #5b21b6;
    text-decoration: none;
}

.chat-message-attachments a:hover {
    text-decoration: underline;
}

/* Ticket status badges */
.status-created {
    background-color: #3b82f6;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.9em;
}

.status-resolved {
    background-color: #10b981;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.9em;
}

.status-needs-clarification {
    background-color: #f59e0b;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.9em;
}

.status-cancelled {
    background-color: #ef4444;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.9em;
}

/* File upload area styling */
.file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: #5b21b6;
    background-color: #f9fafb;
}

.file-upload-area.drag-over {
    border-color: #5b21b6;
    background-color: #ede9fe;
}

/* Inline admin table improvements */
.inline-group table {
    width: 100%;
}

.inline-group td {
    vertical-align: top;
    padding: 8px;
}

/* Make text fields in inlines more readable */
.inline-group textarea {
    min-height: 60px;
}

