.attachment-preview { display: flex; gap: 8px; align-items: center; }
.attach-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid #e5e7eb; }
.comment-input-row .comment-input { padding-right: 86px; }
.comment-input-row .inline-attach-thumb { position: absolute; right: 36px; bottom: 8px; width: 32px; height: 32px; object-fit: cover; border-radius: 6px; border: 1px solid #e5e7eb; }
/* Compact feed images grid */
.feed-images-grid {
    display: grid;
    gap: 6px;
}
.feed-images-grid.count-1 { grid-template-columns: 1fr; }
.feed-images-grid.count-2 { grid-template-columns: repeat(2, 1fr); }
.feed-images-grid.count-3 { grid-template-columns: repeat(3, 1fr); }

.feed-image-thumb {
    width: 100%;
    height: 120px;
    object-fit: contain; /* prevent cropping */
    border-radius: 8px;
    background: #f8f9fa;
}
.feed-image-thumb.count-1 { height: 260px; }
.feed-image-thumb.count-2 { height: 180px; }
.feed-image-thumb.count-3 { height: 120px; }

/* Advanced feed gallery layouts for 1–5 images */
.feed-gallery {
    display: grid;
    gap: 6px;
}

/* Unify on 6 equal columns so we can span for different layouts */
.feed-gallery.layout-1,
.feed-gallery.layout-2,
.feed-gallery.layout-3,
.feed-gallery.layout-4,
.feed-gallery.layout-5 {
    grid-template-columns: repeat(6, 1fr);
}

.feed-gallery .tile {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.feed-gallery .tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Layout rules */
/* 1 image: big banner */
.feed-gallery.layout-1 .tile:nth-child(1) {
    grid-column: span 6;
    height: 260px;
}

/* 2 images: two-up */
.feed-gallery.layout-2 .tile { height: 220px; }
.feed-gallery.layout-2 .tile:nth-child(1) { grid-column: span 3; }
.feed-gallery.layout-2 .tile:nth-child(2) { grid-column: span 3; }

/* 3 images: big on top, two below */
.feed-gallery.layout-3 .tile:nth-child(1) {
    grid-column: span 6;
    height: 220px;
}
.feed-gallery.layout-3 .tile:nth-child(2),
.feed-gallery.layout-3 .tile:nth-child(3) {
    grid-column: span 3;
    height: 120px;
}

/* 4 images: big on top, three below */
.feed-gallery.layout-4 .tile:nth-child(1) {
    grid-column: span 6;
    height: 220px;
}
.feed-gallery.layout-4 .tile:nth-child(2),
.feed-gallery.layout-4 .tile:nth-child(3),
.feed-gallery.layout-4 .tile:nth-child(4) {
    grid-column: span 2;
    height: 110px;
}

/* 5 images: two-up on top, three below */
.feed-gallery.layout-5 .tile:nth-child(1),
.feed-gallery.layout-5 .tile:nth-child(2) {
    grid-column: span 3;
    height: 200px;
}
.feed-gallery.layout-5 .tile:nth-child(3),
.feed-gallery.layout-5 .tile:nth-child(4),
.feed-gallery.layout-5 .tile:nth-child(5) {
    grid-column: span 2;
    height: 110px;
}

@media (max-width: 576px) {
    /* So the gallery scales nicely on phones */
    .feed-gallery.layout-1 .tile:nth-child(1) { height: 220px; }
    .feed-gallery.layout-2 .tile { height: 180px; }
    .feed-gallery.layout-3 .tile:nth-child(1) { height: 200px; }
    .feed-gallery.layout-4 .tile:nth-child(1) { height: 200px; }
    .feed-gallery.layout-5 .tile:nth-child(1),
    .feed-gallery.layout-5 .tile:nth-child(2) { height: 180px; }
}

/* Image modal presentation */
#imageModal .modal-content { background: transparent; border: none; box-shadow: none; }
#imageModal .modal-body { background: transparent; text-align: center; }
.image-stage { position: relative; display: inline-block; }
.image-stage img { display: block; max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 8px; }

.image-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(0,0,0,0.45); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.image-nav.prev { left: -56px; }
.image-nav.next { right: -56px; }
.image-nav[disabled] { opacity: 0.35; cursor: default; }

.image-close { position: absolute; top: -56px; right: -56px; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(0,0,0,0.6); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; cursor: pointer; }

@media (max-width: 576px) {
  .image-nav.prev { left: 8px; }
  .image-nav.next { right: 8px; }
  .image-close { top: 8px; right: 8px; }
}

/* Darker backdrop when viewing images */
.modal-backdrop.image-backdrop { background-color: #000 !important; opacity: 0.8 !important; }

/* Dim any open modal underneath the image viewer */
.modal.dimmed-under-modal { filter: brightness(0.35); }

/* Product mention styling - compact, no grey border */
.mentioned-product {
    background: #f7f8fa; /* neutral, cleaner */
    border-left: 4px solid #d0d5dd; /* subtle accent */
    border-radius: 8px;
    padding: 8px 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Mentioned products dropdown tweaks */
.mentioned-products { margin-top: 6px; }
.mentioned-toggle { color: #2563eb; font-weight: 500; border-radius: 6px; padding: 2px 8px; display: inline-flex; align-items: center; gap: 6px; }
.mentioned-toggle:hover { text-decoration: none; background: #eaf1ff; }
.mentioned-toggle::after { content: "\25BC"; font-size: 0.8em; transition: transform 0.15s ease; }
.mentioned-toggle.open::after { transform: rotate(-180deg); }

.mentioned-product.compact {
    background: #f7f8fa;
    border: none; /* remove any extra borders */
    border-left: 4px solid #d0d5dd; /* ensure only one subtle line */
    border-radius: 6px;
    padding: 6px 8px;
}

.mentioned-product:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(16, 24, 40, 0.06);
}

.mentioned-product .product-row {
    display: grid;
    grid-template-columns: 1fr 64px; /* reserve space on right for image */
    align-items: center;
    gap: 12px;
}

.mentioned-product .product-info {
    min-width: 0;
}

.mentioned-product .product-name {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* limit to two lines */
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25rem;
    max-height: calc(1.25rem * 2);
}

.mentioned-product strong {
    color: #111827; /* near-black for better readability */
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
}

.mentioned-product small {
    color: #64748b;
}

.mentioned-product img,
.mentioned-product .product-image {
    width: 64px;
    height: 64px;
    object-fit: contain; /* avoid cropping product images */
    border-radius: 6px;
    background: #fff;
    justify-self: end; /* stick to the right reserved column */
}

/* Product search modal styling */
.product-search-item:hover {
    background-color: #f8f9fa;
}

.product-search-results {
    max-height: 400px;
    overflow-y: auto;
}

/* Loading state for product mentions */
.product-loading {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    color: #6c757d;
}

/* Feed filter buttons styling */
.feed-filter-buttons .btn-group {
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
}

.feed-filter-buttons .btn {
    border-radius: 0;
    border: 1px solid #cfcfcf;
    background: white;
    color: #2f2f2f;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.2s ease;
    position: relative;
}

.feed-filter-buttons .btn:hover {
    background: #f5f5f5;
    transform: translateY(-1px);
}

.feed-filter-buttons .btn.active {
    background: #2f2f2f;
    color: white;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feed-filter-buttons .btn:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.feed-filter-buttons .btn:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.feed-filter-buttons .btn i {
    margin-right: 6px;
}

/* Animation for switching filters */
.feed-posts-container {
    transition: opacity 0.3s ease;
}

.feed-posts-container.loading {
    opacity: 0.6;
}

/* Reuse actions styling inside modal */
.modal-actions {
    display: flex;
    gap: 12px;
    border-top: 1px solid #eef2f7;
    padding-top: 8px;
}
.modal-actions .action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #374151;
}
.modal-actions .action-btn:hover {
    background: #f9fafb;
}

/* Trending indicator for posts */
.trending-post {
    position: relative;
}

.trending-post::before {
    content: "🔥";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4757;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

/* Comments Section */
.comments-section {
    margin-top: 20px !important;
    padding: 20px !important;
    background: #f8f9fa !important;
    border-radius: 12px !important;
    border: 1px solid #e9ecef !important;
}

.comment-container {
    background: white !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
    border: 1px solid #e9ecef !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.comment-container:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border-color: #dee2e6 !important;
}

.comment-header {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 12px !important;
}

.comment-header .profile-picture {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    margin-right: 12px !important;
    object-fit: cover !important;
    border: 2px solid #e9ecef !important;
    transition: border-color 0.2s ease !important;
}

.comment-header .profile-picture:hover {
    border-color: #d0d0d0;
}

.comment-info {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.comment-info .username {
    font-weight: 600 !important;
    color: #333 !important;
    font-size: 15px !important;
    margin-bottom: 2px !important;
}

.comment-info .timestamp {
    color: #6c757d !important;
    font-size: 13px !important;
}

.reply-badge {
    /* Make reply badge minimal and unobtrusive */
    background: transparent !important;
    color: #6c757d !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin-left: auto !important;
}

.reply-to-info {
    /* Remove colored background/stripe for cleaner look */
    margin-bottom: 6px !important;
    padding: 0 !important;
    background: transparent !important;
    border-left: none !important;
    border-radius: 0 !important;
    font-size: 13px !important;
    color: #6c757d !important;
}

.comment-content {
    color: #333 !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    margin-bottom: 12px !important;
    word-wrap: break-word !important;
}

/* Preserve author-entered line breaks and blank lines inside posts */
.post-content {
    white-space: pre-wrap !important; /* honor \n and multiple newlines */
}

.comment-actions {
    display: flex !important;
    gap: 16px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

.comment-actions button {
    background: none !important;
    border: none !important;
    color: #6c757d !important;
    font-size: 13px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 12px !important;
    border-radius: 20px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    font-weight: 500 !important;
}

.comment-actions button:hover {
    background-color: #f1f3f4 !important;
    color: #333 !important;
    transform: translateY(-1px) !important;
}

.comment-actions .like-button.liked {
    color: #dc3545 !important;
    background-color: transparent !important;
}

.comment-actions .like-button.liked:hover {
    background-color: #ffcdd2;
}

.comment-actions .reply-button:hover {
    background-color: #f1f3f4 !important;
    color: #333 !important;
}

.comment-actions .toggle-replies-button:hover {
    background-color: #f1f3f4;
    color: #333;
}

.reply-form {
    margin-top: 12px !important;
    padding: 12px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    border: 1px solid #e9ecef !important;
    animation: slideDown 0.2s ease !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reply-form-header {
    margin-bottom: 8px !important;
    font-size: 13px !important;
    color: #6c757d !important;
}

.reply-textarea {
    width: 100% !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 8px !important;
    padding: 12px !important;
    font-size: 14px !important;
    resize: vertical !important;
    min-height: 80px !important;
    margin-bottom: 12px !important;
    font-family: inherit !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.reply-textarea:focus {
    border-color: #1f1f1f !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06) !important;
    outline: none !important;
}

.reply-textarea:disabled {
    background-color: #f8f9fa;
    opacity: 0.7;
}

.reply-form-actions {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
}

.submit-reply {
    background: #2f2f2f !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.submit-reply:hover:not(:disabled) {
    background: #1f1f1f !important;
}

.submit-reply:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cancel-reply {
    background-color: #6c757d !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.cancel-reply:hover {
    background-color: #5a6268 !important;
}

/* Nested Comments Styling - Clean and Minimal */
.replies-section {
    margin-top: 12px !important;
    position: relative !important;
    margin-left: 8px !important; /* tighter thread spacing */
}

/* Simple thread line for all comment depths */
.replies-section::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    bottom: 20px;
    width: 1px;
    background-color: #eceff1; /* lighter guide line */
}

/* When indentation is capped in JS, prevent additional left offset */
.replies-section.no-indent {
    margin-left: 0 !important;
}
.replies-section.no-indent::before {
    left: 0;
}

/* Remove all colorful borders and backgrounds - keep it clean */
.comment-container.depth-0,
.comment-container.depth-1,
.comment-container.depth-2,
.comment-container.depth-3,
.comment-container.depth-4,
.comment-container.depth-5,
.comment-container.depth-6 {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 12px !important;
}

/* Error and Success Messages */
.error-message {
    color: #dc3545 !important;
    background-color: #f8d7da !important;
    border: 1px solid #f5c6cb !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    margin-top: 8px !important;
}

.success-message {
    color: #155724 !important;
    background-color: #d4edda !important;
    border: 1px solid #c3e6cb !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    margin-top: 8px !important;
}

/* Alert styling */
.alert {
    border-radius: 8px;
    border: none;
    font-size: 13px;
}

/* Airplane send button inside modal comment input */
.comment-send-btn {
    position: absolute;
    right: 40px; /* place airplane left of the plus */
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent; /* no circle */
    color: #111827; /* black icon */
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 24px;
    height: 24px;
    z-index: 2;
}
.comment-send-btn:hover { color: #000; }
.comment-send-btn i { font-size: 16px; line-height: 1; position: relative; top: -3px; }

/* Plus button and attach menu */
.comment-plus-btn {
	position: absolute;
	right: 14px; /* slight move to the left */
	top: 50%;
	transform: translateY(-50%);
	margin-top: -6px; /* slight move up */
	border: none !important;
	background: transparent !important;
	color: #111827;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	z-index: 999 !important;
	outline: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	-webkit-appearance: none;
	appearance: none;
}

.comment-attach-menu {
	position: absolute;
	right: 0;
	bottom: calc(100% + 6px);
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 8px 20px rgba(0,0,0,0.08);
	padding: 6px 0;
	min-width: 180px;
}
.comment-attach-menu .attach-item {
	padding: 8px 12px;
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}
.comment-attach-menu .attach-item:hover { background: #f9fafb; }

/* Reply form attachment controls */
.reply-form { position: relative !important; overflow: visible !important; }
.reply-plus-btn {
	position: absolute;
	right: 10px;
	bottom: 10px;
	border: none !important;
	background: transparent !important;
	color: #111827;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	z-index: 999 !important;
	outline: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	-webkit-appearance: none;
	appearance: none;
}
.reply-attach-menu {
	position: absolute;
	right: 0;
	bottom: calc(100% + 6px);
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 8px 20px rgba(0,0,0,0.08);
	padding: 6px 0;
	min-width: 180px;
}
.reply-attach-menu .attach-item {
	padding: 8px 12px;
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}
.reply-attach-menu .attach-item:hover { background: #f9fafb; }

.attachments-tray {
    margin-top: 8px;
    background: #f7f8fa;
    border-radius: 8px;
    padding: 8px;
    display: grid;
    grid-template-columns: 1fr 136px; /* two columns: products (fluid) + photos (fixed rail) */
    column-gap: 12px;
    align-items: stretch;
    grid-auto-flow: row;
    grid-auto-rows: auto; /* rows grow to fit products; photos rail will span all rows */
    min-height: 128px;
}
.attachments-row { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.attachments-row.products { align-items: stretch; grid-column: 1; grid-row: 1; width: 100%; }
.attachments-row.photos { align-items: flex-start; grid-column: 2; grid-row: 1 / -1; justify-content: flex-end; display: grid; grid-auto-rows: 128px; row-gap: 8px; }

@media (max-width: 576px) {
  .attachments-tray { grid-template-columns: 1fr; }
  .attachments-row.products { grid-column: 1; grid-row: 1; }
  .attachments-row.photos { grid-column: 1; grid-row: 2; justify-content: flex-start; }
}
.attach-photo {
    position: relative;
    height: 128px;
    width: 124px; /* fit cleanly within the right rail */
    box-sizing: border-box;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
}
.attach-photo img { height: 100%; width: 100%; object-fit: cover; display: block; }
.attach-photo.more { display:flex; align-items:center; justify-content:center; padding: 0 10px; font-weight: 600; color:#374151; }
.attach-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    border: none;
    background: rgba(0,0,0,0.5);
    color: #fff;
    width: 20px;
    height: 20px;
    line-height: 18px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
}
.mention-chip {
    position: relative;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid #d0d5dd;
    border: 1px solid #e5e7eb;
}
.mention-chip { width: 100%; }
.attachments-row.products { display: flex; flex-direction: column; align-items: stretch; width: 100%; }
.attachments-row.products .mention-chip { flex: 0 0 auto; width: 100%; height: 128px; }
.mention-chip .chip-content {
    display: grid;
    grid-template-columns: 1fr 128px;
    gap: 8px;
    padding: 8px 8px 8px 10px;
    height: 100%;
    box-sizing: border-box;
    align-items: center;
}
.mention-chip .chip-text { min-width: 0; }
.mention-chip .chip-text strong { display:block; font-size: 0.9rem; color:#111827; }
.mention-chip .chip-text small { color:#64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mention-chip .chip-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mention-chip { min-height: 96px; }
.mention-chip .chip-image { width:128px; height:96px; border:1px solid #e5e7eb; border-radius:6px; overflow:hidden; box-sizing:border-box; background:#fff; position: relative; }
.mention-chip .chip-image img { width:100%; height:100%; object-fit: contain; display:block; }
.mention-chip { position: relative; }
.mention-chip .attach-remove { position:absolute; top: 2px; right: 2px; background: rgba(0,0,0,0.5); color:#fff; width:20px; height:20px; line-height:18px; border-radius:50%; font-size:14px; cursor:pointer; }

/* Remove blue focus ring/border for the custom upload button */
.btn-upload-photos { color: #2f2f2f; }
.btn-upload-photos:hover { background: #f0f0f0; }
.btn-upload-photos:focus, .btn-upload-photos:active { outline: none !important; box-shadow: none !important; border: none !important; }

/* Subtle grow + shadow effect reused by Add Photos and Mention Product */
.btn-action-grow { transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease; }
.btn-action-grow:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 8px 18px rgba(16,24,40,0.12); }
.btn-action-grow:active { transform: translateY(0) scale(0.99); box-shadow: 0 4px 10px rgba(16,24,40,0.10); }

/* Composer rotating placeholder animation */
.composer-placeholder { display: inline-block; opacity: 0.9; color: #6b7280; will-change: transform, opacity; }
@keyframes placeholderSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.composer-animate { animation: placeholderSlide 220ms ease forwards; }

/* Composer textarea: start at one line and auto-expand */
.form-floating textarea#id_content {
  min-height: 40px; /* match profile picture (40px) */
  height: 40px;
  resize: none;
  overflow-y: auto;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  line-height: 1.25rem;
}

/* Override Bootstrap's fixed height for floating controls specifically for the composer */
.form-floating > textarea#id_content.form-control {
  height: auto; /* allow JS to expand */
  min-height: 40px;
}
/* Hide the floating label for the composer to avoid visual overlap and caret offset */
.form-floating > label[for="id_content"] { display: none; }

/* Rotating prompt container positioned inside input */
.composer-hint { position: absolute; left: 12px; top: 8px; color: #6b7280; pointer-events: none; font-size: 0.95rem; white-space: nowrap; opacity: 0.85; }
.composer-hint.hidden { display: none; }

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .comment-container {
        padding: 12px;
        margin-bottom: 8px;
    }
    
    .comment-container.depth-1,
    .comment-container.depth-2,
    .comment-container.depth-3,
    .comment-container.depth-4,
    .comment-container.depth-5,
    .comment-container.depth-6 {
        margin-left: 10px !important;
    }
    
    .comment-header .profile-picture {
        width: 32px !important;
        height: 32px !important;
        margin-right: 8px !important;
    }
    
    .comment-actions {
        gap: 12px;
    }
    
    .comment-actions button {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .reply-form {
        padding: 12px;
    }
    
    .reply-form-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .submit-reply,
    .cancel-reply {
        width: 100%;
        justify-content: center;
    }
} 