/* Chat-style Content Upload UI - Clean & Professional */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.chat-header {
    background: #ffffff;
    color: #1a1a1a;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
}

.chat-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fafafa;
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 70%;
}

.chat-message.sent {
    align-self: flex-end;
}

.chat-message.received {
    align-self: flex-start;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 8px;
    word-wrap: break-word;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    line-height: 1.5;
}

.chat-message.sent .message-bubble {
    background: #1a1a1a;
    color: #ffffff;
}

.chat-message.received .message-bubble {
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid #e0e0e0;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 4px;
    padding: 0 8px;
}

.chat-message.sent .message-time {
    text-align: right;
}

.message-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-top: 4px;
    font-weight: 500;
    border: 1px solid;
}

.status-scheduled {
    background: #fff9e6;
    color: #856404;
    border-color: #f5d775;
}

.status-published {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #81c784;
}

.status-draft {
    background: #f5f5f5;
    color: #666;
    border-color: #d0d0d0;
}

.message-media {
    margin-top: 8px;
    border-radius: 8px;
    overflow: hidden;
}

.message-media img {
    max-width: 100%;
    display: block;
}

.chat-input-container {
    background: white;
    padding: 16px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.chat-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    font-size: 1rem;
    resize: none;
    min-height: 48px;
    max-height: 120px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.chat-input:focus {
    outline: none;
    border-color: #667eea;
}

.chat-attachments {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.attachment-preview {
    position: relative;
    padding: 8px 14px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #1a1a1a;
}

.attachment-preview .remove-btn {
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.2s;
}

.attachment-preview .remove-btn:hover {
    background: #333;
}

.chat-actions {
    display: flex;
    gap: 8px;
}

.chat-btn {
    width: 44px;
    height: 44px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.2s;
}

.chat-btn:hover {
    background: #f5f5f5;
    border-color: #1a1a1a;
}

.attach-btn {
    color: #666;
}

.send-btn {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.send-btn:hover {
    background: #333;
}

.send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.draft-btn {
    background: #ffffff;
    color: #666;
    padding: 10px 20px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.draft-btn:hover {
    background: #f5f5f5;
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.chat-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    padding: 40px;
    text-align: center;
}

.chat-empty-state-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.chat-empty-state h3 {
    margin: 0 0 8px 0;
    color: #666;
}

.chat-empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

/* Scheduled time display */
.scheduled-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    font-size: 0.75rem;
    margin-top: 4px;
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .chat-container {
        height: calc(100vh - 120px);
    }
    
    .chat-message {
        max-width: 85%;
    }
}
