/* Social Inbox Styles */

.social-inbox-page {
  max-width: 1400px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin: 0 0 8px 0;
}

.page-description {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin: 0;
}

.header-stats {
  display: flex;
  gap: 16px;
}

.stat-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 20px;
  background: rgba(233, 69, 96, 0.1);
  border: 1px solid rgba(233, 69, 96, 0.3);
  border-radius: 12px;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e94560;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Filters */
.inbox-filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 150px;
}

.filter-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-select {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: white;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-select:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(167, 139, 250, 0.4);
}

/* Inbox List */
.inbox-container {
  position: relative;
}

.inbox-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inbox-item {
  display: block;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.inbox-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(167, 139, 250, 0.4);
  transform: translateY(-1px);
}

.inbox-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.inbox-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.platform-icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

.author-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.author-name {
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.message-type-badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(167, 139, 250, 0.2);
  border-radius: 4px;
  font-size: 0.75rem;
  color: #a78bfa;
  text-transform: capitalize;
}

.inbox-item-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.message-time {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-badge.status-open {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.status-badge.status-pending {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.status-badge.status-resolved {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.inbox-item-content {
  margin-bottom: 12px;
}

.message-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0 0 8px 0;
}

.post-preview {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid rgba(167, 139, 250, 0.5);
  border-radius: 4px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.preview-label {
  color: rgba(255, 255, 255, 0.4);
  margin-right: 4px;
}

.inbox-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.assigned-indicator {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.unassigned-indicator {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Inbox Detail Page */
.inbox-detail-page {
  max-width: 1400px;
  margin: 0 auto;
}

.inbox-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.back-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: white;
}

.message-actions {
  display: flex;
  gap: 12px;
}

.message-detail-container {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 24px;
}

.message-thread {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
}

.thread-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.thread-author {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.author-avatar-large {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.5rem;
}

.author-info-detailed h2 {
  color: white;
  font-size: 1.25rem;
  margin: 0 0 4px 0;
}

.author-email {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin: 0 0 12px 0;
}

.message-meta-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.platform-badge {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(167, 139, 250, 0.2);
  color: #a78bfa;
}

.type-badge {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  text-transform: capitalize;
}

.thread-time {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
}

.conversation-thread {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.conversation-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.conversation-message.message-outgoing {
  align-items: flex-end;
}

.message-bubble {
  max-width: 70%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.message-outgoing .message-bubble {
  background: rgba(167, 139, 250, 0.2);
}

.message-from {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
  font-weight: 600;
}

.message-content {
  color: white;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 4px;
}

.message-timestamp {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
}

.reply-form {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.reply-textarea {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: white;
  font-size: 0.875rem;
  resize: vertical;
  margin-bottom: 12px;
}

.reply-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Sidebar */
.message-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
}

.sidebar-section h3 {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.assignment-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.assigned-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.unassigned-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  margin: 0;
}

.btn-block {
  width: 100%;
}

.form-select {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: white;
  font-size: 0.875rem;
  cursor: pointer;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag {
  padding: 4px 12px;
  background: rgba(167, 139, 250, 0.2);
  border-radius: 6px;
  font-size: 0.75rem;
  color: #a78bfa;
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.75rem;
}

.notes-textarea {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: white;
  font-size: 0.875rem;
  resize: vertical;
  margin-bottom: 12px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.empty-state h2 {
  color: white;
  font-size: 1.5rem;
  margin: 0 0 8px 0;
}

.empty-state p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .message-detail-container {
    grid-template-columns: 1fr;
  }

  .message-sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .inbox-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    width: 100%;
  }

  .inbox-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .inbox-item-right {
    width: 100%;
    justify-content: space-between;
  }

  .header-stats {
    flex-direction: column;
  }

  .message-bubble {
    max-width: 90%;
  }
}

