* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
  background-color: #f9fafb; /* Tailwind gray-50 */
  color: #1f2937; /* Tailwind gray-800 */
  padding: 20px;
  height: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

header {
  background-color: #fff;
  border-bottom: 1px solid #e5e7eb; /* Tailwind gray-200 */
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
  font-size: 2rem;
  font-weight: 600;
  color: #036141; /* Scarf primary green */
}

.header-actions {
  display: flex;
  gap: 10px;
}

button {
  background-color: #036141; /* Scarf primary green */
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #024e34; /* Darker shade of primary green */
}

/* Add pool layout */
#post-pool {
  background-color: #f3f4f6; /* Tailwind gray-100 */
  border-radius: 8px;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  min-height: 180px;
  max-height: 280px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* Tailwind shadow-md */
}

#post-pool h2 {
  padding: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827; /* Tailwind gray-900 */
}

.pool-container {
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  overflow-y: auto;
}

/* Board layout */
#board {
  display: flex;
  flex: 1;
  gap: 20px;
  overflow: visible;
}

.column {
  border-radius: 8px;
  width: 33.333%;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 300px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* Tailwind shadow-md */
}

/* Distinct background colors for each column */
#editing-column {
  background-color: #fef9c3; /* Tailwind yellow-200 */
}

#scheduled-column {
  background-color: #dbeafe; /* Tailwind blue-200 */
}

#posted-column {
  background-color: #dcfce7; /* Tailwind green-200 */
}

.column h2 {
  padding: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827; /* Tailwind gray-900 */
}

.cards-container {
  padding: 10px;
  flex-grow: 1;
  overflow-y: visible;
}

.card {
  background-color: white;
  color: #1f2937; /* Tailwind gray-800 */
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 15px;
  margin-bottom: 10px;
  cursor: grab;
  position: relative;
  border-left: 4px solid #036141; /* Scarf primary green */
  width: 100%;
}

/* For the pool, cards should be a fixed width */
.pool-container .card {
  width: 250px;
  height: 140px;
  overflow: hidden;
}

.card h3 {
  margin-bottom: 5px;
  font-size: 1rem;
  color: #111827; /* Tailwind gray-900 */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-date {
  font-size: 0.8rem;
  color: #6b7280; /* Tailwind gray-500 */
  font-weight: normal;
}

.card-actions {
  display: flex;
  gap: 5px;
  position: absolute;
  top: 10px;
  right: 10px;
}

.action-btn {
  background-color: transparent;
  color: #6b7280; /* Tailwind gray-500 */
  padding: 3px 6px;
  font-size: 0.8rem;
}

.action-btn:hover {
  background-color: #f3f4f6; /* Tailwind gray-100 */
  color: #111827; /* Tailwind gray-900 */
}

.delete-btn {
  color: #ef4444; /* Tailwind red-500 */
}

.delete-btn:hover {
  background-color: #fef2f2; /* Tailwind red-50 */
  color: #ef4444; /* Tailwind red-500 */
}

.tag-label {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
  color: white;
  margin-bottom: 8px;
  background-color: #036141; /* Scarf primary green */
}

/* Modal styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.visible {
  display: flex;
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 500px;
  max-width: 90%;
  max-height: 90vh;
  min-height: 90vh;
  overflow-y: auto;
  padding: 20px;
}

/* Updated post editor styles for side-by-side layout */
.post-editor-content {
  display: flex;
  flex-direction: column;
  width: 600px; /* Increased width to accommodate side-by-side layout */
  max-width: 95%;
  height: 80vh;
  max-height: 90vh;
  padding: 20px;
  overflow: hidden; /* Hide scrollbars on the modal itself */
}

/* Create the side-by-side layout */
.post-editor-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: calc(100% - 60px); /* Subtract header height */
  overflow-y: auto;
}

/* Editor section takes remaining space */
.editor-section {
  width: 100%;
  overflow-y: auto;
  padding-right: 0;
}

/* Preview toggle button */
.preview-toggle-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.toggle-preview-btn {
  background-color: #036141; /* Scarf green */
  color: white;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-preview-btn:hover {
  background-color: #e5e7eb;
  color: #1f2937;
}



/* Make content editor expand to fill available space */
.content-editor {
  height: auto;
}


.content-editor textarea {
  height: 400px;
}

/* Preview section now at the top */
.preview-section {
  width: 100%;
  border-left: none;
  border-bottom: 1px solid #e5e7eb;
  padding-left: 0;
  padding-bottom: 20px;
  margin-bottom: 10px;
}

.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.editor-controls {
  display: flex;
  gap: 10px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #4b5563; /* Tailwind gray-600 */
}

input[type="text"], 
input[type="color"],
input[type="date"],
select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e5e7eb; /* Tailwind gray-200 */
  border-radius: 4px;
  font-size: 1rem;
}

textarea {
  width: 100%;
  height: 500px;
  padding: 10px;
  font-size: 1rem;
  line-height: 1.5;
  border: 1px solid #e5e7eb; /* Tailwind gray-200 */
  border-radius: 4px;
  resize: vertical;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 15px;
}

/* Drag and drop styling */
.dragging {
  opacity: 0.5;
}

.drop-zone {
  background-color: #dcfce7; /* Tailwind green-100 */
}

/* Tag management */
#tags-list {
  margin-top: 15px;
}

.tag-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #f3f4f6; /* Tailwind gray-100 */
}

.tag-color-preview {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
}

.tag-name-display {
  display: flex;
  align-items: center;
}

/* Status notifications */
#status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #1f2937; /* Tailwind gray-800 */
  color: white;
  padding: 10px 20px;
  font-size: 0.9rem;
  display: none;
}

.status-info {
  color: #38bdf8; /* Tailwind sky-400 */
}

.status-success {
  color: #4ade80; /* Tailwind green-400 */
}

.status-error {
  color: #f87171; /* Tailwind red-400 */
}

/* API not supported warning */
#api-warning {
  background-color: #fef2f2; /* Tailwind red-50 */
  border: 1px solid #fee2e2; /* Tailwind red-100 */
  color: #b91c1c; /* Tailwind red-700 */
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  display: none;
}

#server-warning {
  background-color: #fff7ed; /* Tailwind orange-50 */
  border: 1px solid #ffedd5; /* Tailwind orange-100 */
  color: #c2410c; /* Tailwind orange-700 */
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
}

/* Folder sync warning */
#folder-sync-warning {
  background-color: #fef2f2; /* Tailwind red-50 */
  border: 1px solid #fee2e2; /* Tailwind red-100 */
  color: #b91c1c; /* Tailwind red-700 */
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  display: none;
}

/* Folder sync status */
#folder-sync-status {
  background-color: #ecfdf5; /* Tailwind green-50 */
  border: 1px solid #d1fae5; /* Tailwind green-100 */
  color: #036141; /* Scarf primary green */
  padding: 10px 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  display: none;
  font-size: 0.9rem;
}

#folder-sync-status.not-synced {
  background-color: #fef2f2; /* Tailwind red-50 */
  border-color: #fee2e2; /* Tailwind red-100 */
  color: #b91c1c; /* Tailwind red-700 */
}

/* Drop placeholder */
.drop-placeholder {
  height: 6px;
  background-color: #036141; /* Scarf primary green */
  margin: 5px 0;
  border-radius: 3px;
}

.emoji-label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

/* Add these styles to your existing CSS file */
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 36px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.title-container {
  display: flex;
  flex-direction: column;
}

.logo-container {
  margin-bottom: 8px;
}

.scarf-logo {
  height: 36px;
  width: auto;
}

.scarf-info {
  margin-top: 8px;
  font-size: 1rem;
  color: #6b7280; /* Tailwind gray-500 */
}

.scarf-info a {
  color: #036141; /* Scarf primary green */
  text-decoration: none;
}

.scarf-info a:hover {
  text-decoration: underline;
}

/* Status notification */
#status-notification {
  background-color: #fee2e2; /* Tailwind red-100 */
  border: 1px solid #fecaca; /* Tailwind red-200 */
  color: #b91c1c; /* Tailwind red-700 */
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

#status-notification.success {
  background-color: #d1fae5; /* Tailwind green-100 */
  border-color: #a7f3d0; /* Tailwind green-200 */
  color: #047857; /* Tailwind green-700 */
}

/* Vertical feedback button */
#vertical-feedback-btn {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999; /* Very high z-index to ensure it stays on top */
}

#vertical-feedback-btn button {
  border: none;
  background-color: #1D4ED8; /* Royal blue color */
  color: white;
  border-radius: 0 4px 4px 0;
  padding: 16px 8px;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: -2px 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  letter-spacing: 1px;
  cursor: pointer;
  margin: 0; /* Remove any default margin */
}

#vertical-feedback-btn button:hover {
  background-color: #1E40AF; /* Darker shade when hovering */
}

/* Feedback form modal styling */
.feedback-modal-content {
  width: 700px;
  max-width: 90%;
  max-height: 90vh;
}

.form-embed-container {
  width: 100%;
  height: calc(100% - 60px); /* Adjust for header height */
  overflow: hidden;
}

/* Disabled button style */
.btn-disabled {
  background-color: #9ca3af !important; /* Tailwind gray-400 */
  cursor: not-allowed !important;
}

.btn-disabled:hover {
  background-color: #9ca3af !important; /* Keep same color on hover */
}

.content-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #6b7280; /* Tailwind gray-500 */
  margin-top: 5px;
  padding: 0 5px;
}

.content-stats span {
  display: inline-block;
}

/* LinkedIn Preview Styles */
.linkedin-preview-container {
  width: 514px;  /* Exact LinkedIn width */
  max-width: 100%;
  padding: 16px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin: 10px 0;
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #000000e6;
}

/* Hidden state for preview */
.preview-section.hidden {
  display: none;
}

/* Preview content */
.preview-content {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Visible preview section */
.visible-preview {
  margin-bottom: 4px;
}

/* See more indicator */
.see-more-indicator {
  color: #0a66c2; /* LinkedIn blue */
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  margin: 4px 0;
}

/* Hidden preview content */
.hidden-preview {
  color: #00000099; /* Lighter color for hidden content */
  font-weight: 400;
  border-top: 1px solid #f0f0f0;
  margin-top: 8px;
  padding-top: 8px;
}

/* Truncation info */
.truncation-info {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #e0e0e0;
  font-size: 12px;
  color: #666666;
  font-style: italic;
}

/* Preview header */
.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.preview-title {
  font-size: 16px;
  font-weight: 600;
  color: #4b5563;
}

.preview-char-count {
  font-size: 14px;
  color: #6b7280;
}

.form-header {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-bottom: 15px;
}

.form-header .form-group {
  margin-bottom: 0;
}

/* Make title field take more space */
.title-group {
  flex: 3; /* 50% of the space */
}

/* Make date and tag fields smaller */
.date-group, .tag-group {
  flex: 1.5; /* 25% of the space each */
}

/* Optional: make the date field input and tag select more compact */
.date-group input[type="date"],
.tag-group select {
  padding: 8px;
}

/* Make sure labels are clear but not too large */
.form-header label {
  font-size: 0.9rem;
  margin-bottom: 4px;
}