/* Moderation UI Styles */

/* Moderator badges */
.mod-badge {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    margin-left: 8px;
}

.admin-badge {
    background: #dc3545;
}

/* Message moderation status */
.chat-message.deleted {
    opacity: 0.5;
    font-style: italic;
}

.chat-message.reported {
    border-left: 3px solid #ffc107;
    padding-left: 10px;
}

/* User status indicators */
.user-muted::after {
    content: '🔇';
    margin-left: 5px;
}

.user-banned::after {
    content: '🚫';
    margin-left: 5px;
}

.user-warned {
    color: #ffc107;
}

/* Moderation controls */
.moderation-controls {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.mod-action-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.mod-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.mod-action-btn.delete {
    background: #dc3545;
    color: white;
}

.mod-action-btn.mute {
    background: #17a2b8;
    color: white;
}

.mod-action-btn.warn {
    background: #ffc107;
    color: #333;
}

.mod-action-btn.ban {
    background: #721c24;
    color: white;
}

/* Report modal */
.report-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 10001;
    min-width: 400px;
}

.report-modal h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.report-modal select,
.report-modal textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.report-modal textarea {
    min-height: 100px;
    resize: vertical;
}

.report-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-success {
    background: #28a745;
    color: white;
}

.notification-error {
    background: #dc3545;
    color: white;
}

.notification-warning {
    background: #ffc107;
    color: #333;
}

.notification-info {
    background: #17a2b8;
    color: white;
}

/* Moderator dashboard link */
#mod-dashboard-link {
    background: #ff6b35;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin: 10px;
    transition: all 0.3s;
}

#mod-dashboard-link:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 2px 10px rgba(255,107,53,0.3);
}

/* Muted user input */
.chat-input-muted {
    opacity: 0.5;
    cursor: not-allowed;
}

.mute-notice {
    background: #17a2b8;
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* Temporary room indicator */
.temp-room-indicator {
    background: #ffc107;
    color: #333;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
}

.room-expiry-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
}

/* Message hover actions */
.chat-message:hover .message-actions {
    opacity: 1;
}

.message-actions {
    opacity: 0;
    transition: opacity 0.3s;
    float: right;
}

.message-actions button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 6px;
    transition: all 0.3s;
}

.message-actions button:hover {
    color: #ff6b35;
    text-decoration: underline;
}

/* User list with moderation status */
.user-list-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.user-list-item:hover {
    background: #f8f9fa;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-status {
    font-size: 12px;
    color: #666;
}

.user-actions {
    display: flex;
    gap: 5px;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Report queue styling */
.report-priority-high {
    border-left: 4px solid #dc3545;
}

.report-priority-medium {
    border-left: 4px solid #ffc107;
}

.report-priority-low {
    border-left: 4px solid #28a745;
}

/* Quick action menu */
.quick-action-menu {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 5px 0;
    z-index: 1000;
    min-width: 150px;
}

.quick-action-menu button {
    display: block;
    width: 100%;
    padding: 8px 15px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.3s;
}

.quick-action-menu button:hover {
    background: #f8f9fa;
}

.quick-action-menu .separator {
    height: 1px;
    background: #eee;
    margin: 5px 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .mod-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .report-modal {
        width: 90%;
        min-width: unset;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        width: auto;
    }
}