#contentWarning::placeholder {
  opacity: 0.5;
}

.post-container {
  position: relative;
  margin-bottom: 3.125em;
}

.chunk-text {
  padding: 2.5em 0.75em 0.75em 0.75em;
  /* Add space at the top to ensure text does not overlap with char-count and btn-copy */
  color: #383d41;
  background-color: #ddd;
  border-color: #d6d8db;
}


.char-count {
  position: absolute;
  top: 0.25em;
  right: 0.6em;
  font-size: 0.9rem;
  color: #555;
}

.btn-copy {
  position: absolute;
  top: 0.25em !important;
  left: -0.0625em !important;
  font-size: 0.9rem;
  background-color: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 0.3125em 0.6em;
  border-radius: 0.2em;
  box-shadow: 0.0625em 0.0625em 0.3125em rgba(0,0,0,0.1);
}

.btn-copy:hover {
  background-color: #0056b3;
}

.btn-copy.copied {
  background-color: #28a745; /* Bootstrap green color */
  border-color: #28a745;
}

h3, textarea {  /* Assuming your headlines are h3 elements */
  margin-bottom: 0.9375em;  /* Adjust the value as needed */
  margin-top: 0.9375em;  /* Adjust the value as needed */
}

ol {  /* Assuming your headlines are h2 elements */
  margin-top: 3.125em;  /* Adjust the value as needed */
  margin-bottom: 3.125em;  /* Adjust the value as needed */
  color: #888;
}

#previewArea a {
  color: #007bff; /* Bootstrap's default link color */
  text-decoration: underline;
}

#charLimit {
  width: 4.375em;
  margin-right: 0.6em !important;
}

.content-warning-display {
  background-color: #f8d7da;
  padding: 0.25em;
  border-radius: 0.2em;
}
.btn-secondary {
  margin-top: -0.3125em;
  left: 0;
  font-size: 0.9rem;
  background-color: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 0.3125em 0.6em;
  border-radius: 0.2em;
  box-shadow: 0.0625em 0.0625em 0.3125em rgba(0,0,0,0.1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.subheading {
  font-style: italic;
}
.subtitle {
  animation-name: fadeIn;
  animation-duration: 1s;
}

.jumbotron {
  padding-top: 0.6em !important;
  padding-bottom: 0.6em !important;
}

.btn-copy.copied {
  background-color: #28a745; /* Bootstrap green color */
  border-color: #28a745;
}

.footer {
  color: #d2d2d2;
  left: 0;
  bottom: 0;
  width: 100%;
  padding-top: 0.125em !important; /* reduce padding-top to half */
  padding-bottom: 0.125em !important; /* reduce padding-bottom to half */
  font-size: 0.9em;
}

.copied-post .chunk-text {
  background-color: #e6ffe6; /* This is a very light green tint */
}

.line-limited {
    overflow-y: scroll;
    max-height: 30rem;
}

.header {

}

#header-icon {
  height: 3rem;
  align: bottom;
  padding-right: 1rem;
}

label {
  user-select: none;
}

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

.modal-content {
  background-color: #fff;
  padding: 1.875em;
  border-radius: 0.5em;
  box-shadow: 0 0.25em 1.25em rgba(0, 0, 0, 0.3);
  max-width: 25em;
  width: 90%;
  position: relative;
}

.modal-content h3 {
  margin-top: 0;
  margin-bottom: 0.9375em;
}

.modal-content p {
  margin-bottom: 0.6em;
  color: #666;
}

.modal-close {
  position: absolute;
  top: 0.6em;
  right: 0.9375em;
  font-size: 1.5em;
  cursor: pointer;
  color: #888;
  line-height: 1;
}

.modal-close:hover {
  color: #333;
}

.modal-error {
  color: #dc3545;
  margin-top: 0.6em;
  font-size: 0.9rem;
}

#fileProtocolError {
  text-align: left;
}

#fileProtocolError a {
  color: #007bff;
}

/* Mastodon Controls */
.mastodon-controls {
  margin-top: 0.9375em;
  padding-top: 0.9375em;
  border-top: 0.0625em solid #dee2e6;
}

.mastodon-controls button {
  margin-right: 0.6em;
}

/* Post Status Message */
.post-status-message {
  display: inline-block;
  margin-left: 0.6em;
  padding: 0.3125em 0.6em;
  border-radius: 0.25em;
  font-size: 0.9rem;
}

.status-success {
  color: #155724;
  background-color: #d4edda;
  border: 0.0625em solid #c3e6cb;
}

#errorModalMessage,
.status-error {
  color: #721c24;
  background-color: #f8d7da;
  border: 0.0625em solid #f5c6cb;
}
#errorModalMessage,
p.status-error {
  padding: 0.3em;
}

/* Visibility Selector */
.visibility-selector {
  margin-bottom: 0.6em;
}

.visibility-selector label {
  font-weight: 500;
}

/* Reply-to Section (Accordion) */
#replyToSection {
  margin-top: 0.6em;
}

#replyToSection .accordion-item {
  border: 0.0625em solid rgba(0, 0, 0, 0.125);
  border-radius: 0.25rem;
}

#replyToSection .accordion-header {
  margin-bottom: 0;
}

#replyToSection .accordion-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: #495057;
  text-align: left;
  background-color: #f8f9fa;
  border: 0;
  border-radius: 0;
  overflow-anchor: none;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#replyToSection .accordion-button:not(.collapsed) {
  color: #0c63e4;
  background-color: #e7f1ff;
}

#replyToSection .accordion-button:focus {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#replyToSection .accordion-button::after {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: auto;
  content: "";
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 1.25rem;
  transition: transform 0.2s ease-in-out;
}

#replyToSection .accordion-button:not(.collapsed)::after {
  transform: rotate(-180deg);
}

#replyToSection .accordion-collapse {
  border-top: 0;
}

#replyToSection .accordion-body {
  padding: 1rem;
}

#replyToSection .input-group {
  margin-bottom: 0.3125em;
}

#replyToSection #clearReplyTo {
  border-color: #ced4da;
}

#replyToStatus {
  font-size: 0.85rem;
}

#replyToStatus.status-error {
  color: #dc3545;
  background-color: transparent;
  border: none;
}

#replyToStatus.status-info {
  color: #6c757d;
}

.reply-to-preview {
  margin-top: 0.5em;
  padding: 0.6em;
  background: #e9ecef;
  border-radius: 0.25em;
  border-left: 0.2em solid #6c757d;
  font-size: 0.9em;
}

.reply-to-preview .preview-header {
  margin-bottom: 0.3125em;
  color: #495057;
}

.reply-to-preview .preview-content {
  color: #212529;
  overflow-y: auto;
}

.reply-to-preview .carousel {
  margin-top: 0.5em;
  border-radius: 0.25em;
  overflow: hidden;
}

/* Quote Post Option */
.quote-post-option {
  margin-top: 0.6em;
}

.quote-post-option label {
  display: flex;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
  color: #495057;
}

.quote-post-option input[type="checkbox"]:disabled + span,
.quote-post-option label:has(input:disabled) {
  color: #adb5bd;
  cursor: not-allowed;
}

#quotePostCheckbox:disabled {
  cursor: not-allowed;
}

.quote-warning {
  margin-top: 0.5em;
  padding: 0.5em 0.75em;
  background-color: #fff3cd;
  border: 0.0625em solid #ffc107;
  border-radius: 0.25em;
  color: #856404;
  font-size: 0.9em;
}

.hint {
  border: solid 1px gray;
  margin: 1em;
  border-radius: 0.5em;
  padding: 0.5em;
  background: #e0e0e0;
}

/* Mention autocomplete dropdown */
.mention-autocomplete-dropdown {
    position: fixed;
    z-index: 1050;
    background: #fff;
    border: 0.0625em solid #ccc;
    border-radius: 0.25em;
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 12.5em;
    overflow-y: auto;
    box-shadow: 0 0.125em 0.5em rgba(0,0,0,0.15);
    min-width: 12.5em;
}

.mention-autocomplete-dropdown li {
    display: flex;
    align-items: center;
    padding: 0.375em 0.625em;
    cursor: pointer;
    gap: 0.5em;
}

.mention-autocomplete-dropdown li:hover,
.mention-autocomplete-dropdown li.active {
    background: #e8f0fe;
}

.mention-autocomplete-dropdown li img {
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    flex-shrink: 0;
}

.mention-autocomplete-dropdown li .acct-name {
    font-weight: bold;
    font-size: 0.9em;
}

.mention-autocomplete-dropdown li .acct-handle {
    font-size: 0.8em;
    color: #666;
}
