/* Ultra Modern Comment Styling with Glassmorphism */
.card-no-border {
    border: none;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-no-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-no-border:hover {
    transform: translateY(-1px);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.card-no-border:hover::before {
    opacity: 1;
}

.card-left-margin {
    margin-left: 10px;
}

.card-text {
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 12px;
}

.card-subtitle {
    font-size: 13px;
    color: #6b7280;
}

.hidden {
    display: none;
}

/* Smooth transitions for comments */
.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Prevent first-child margin collapse and ensure comments are contained */
.comments-container {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 0.75rem;
    overflow: auto; /* creates a new block formatting context to avoid margin collapse */
}

/* Ultra Modern Nested Comment Styling */
.ml-3 {
    margin-left: 2.5rem;
    position: relative;
}

.ml-3::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.6) 50%, rgba(240, 147, 251, 0.6) 100%);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
}

.ml-3::after {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 50%;
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.6), transparent);
    border-radius: 2px;
}

.ml-6 {
    margin-left: 5rem;
    position: relative;
}

.ml-6::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(240, 147, 251, 0.6) 0%, rgba(245, 87, 108, 0.6) 50%, rgba(102, 126, 234, 0.6) 100%);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(240, 147, 251, 0.3);
}

.ml-6::after {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 50%;
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, rgba(240, 147, 251, 0.6), transparent);
    border-radius: 2px;
}

.ml-9 {
    margin-left: 7.5rem;
    position: relative;
}

.ml-9::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(245, 87, 108, 0.6) 0%, rgba(102, 126, 234, 0.6) 50%, rgba(118, 75, 162, 0.6) 100%);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(245, 87, 108, 0.3);
}

.ml-9::after {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 50%;
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, rgba(245, 87, 108, 0.6), transparent);
    border-radius: 2px;
}

/* Ultra Modern Reply Form Styling */
.reply-form {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.5);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.reply-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 16px 16px 0 0;
}

.reply-form textarea {
    resize: vertical;
    min-height: 90px;
    border: 1px solid rgba(209, 213, 219, 0.6);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.6;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.reply-form textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.1),
        inset 0 2px 4px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.95);
}

.reply-form .btn {
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.reply-form .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.reply-form .btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.reply-form .btn:hover::before {
    left: 100%;
}

/* Ultra Modern Avatar Styling */
.card-body img {
    border-radius: 50%;
    border: 3px solid rgba(229, 231, 235, 0.8);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.card-body img:hover {
    border-color: rgba(59, 130, 246, 0.6);
    transform: scale(1.1) rotate(5deg);
    box-shadow:
        0 8px 20px rgba(59, 130, 246, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.12);
}

/* Avatar fallback styling */
.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Ultra Modern Button Styling */
.reply-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow:
        0 4px 15px rgba(102, 126, 234, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reply-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.reply-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 50%, #e879f9 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 8px 25px rgba(102, 126, 234, 0.6),
        0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
}

.reply-btn:hover::before {
    left: 100%;
}

.reply-btn:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

/* Ultra Modern Like Button Styling */
.like-btn {
    border: 1px solid rgba(209, 213, 219, 0.5);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #6b7280;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.like-btn:not(.bi)::before {
    /* decorative overlay used for button-like elements only.
       Avoid applying to inline icon elements (.bi) which rely on ::before for glyphs. */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.like-btn:hover {
    background: rgba(243, 244, 246, 0.95);
    border-color: rgba(156, 163, 175, 0.7);
    color: #374151;
    transform: translateY(-1px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.06);
}

.like-btn:hover::before {
    opacity: 1;
}

.like-btn.liked {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #f87171 100%);
    border-color: rgba(220, 38, 38, 0.3);
    color: white;
    box-shadow:
        0 4px 15px rgba(239, 68, 68, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.1);
    animation: pulse 0.6s ease-out;
}

.like-btn.liked:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #ef4444 100%);
    transform: translateY(-1px);
    box-shadow:
        0 6px 16px rgba(239, 68, 68, 0.5),
        0 3px 6px rgba(0, 0, 0, 0.12);
}

.like-count {
    font-weight: 600;
    margin-left: 4px;
    transition: all 0.3s ease;
}

.like-btn.liked .like-count {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Ultra Modern Typography */
.card-body .small {
    font-weight: 600;
    color: #374151;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    letter-spacing: 0.2px;
}

.card-body .fw-semibold {
    background: linear-gradient(135deg, #374151 0%, #6b7280 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Comment timestamp styling */
.text-muted {
    color: rgba(156, 163, 175, 0.8) !important;
    font-size: 12px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Ultra Modern Main Comment Form Styling */
[id^="form-"] {
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

[id^="form-"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 30%, #f093fb 60%, #f5576c 100%);
    border-radius: 20px 20px 0 0;
}

[id^="form-"] textarea {
    border: 1px solid rgba(209, 213, 219, 0.6);
    border-radius: 16px;
    padding: 16px 20px;
    font-size: 15px;
    line-height: 1.6;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
    min-height: 120px;
}

[id^="form-"] textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.1),
        inset 0 2px 8px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.01);
}

[id^="form-"] .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border: none;
    border-radius: 30px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow:
        0 6px 20px rgba(102, 126, 234, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

[id^="form-"] .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

[id^="form-"] .btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 50%, #e879f9 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 12px 30px rgba(102, 126, 234, 0.6),
        0 6px 12px rgba(0, 0, 0, 0.15);
}

[id^="form-"] .btn-primary:hover::before {
    left: 100%;
}

[id^="form-"] .btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

/* Ultra Modern Animation for New Comments */
@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        filter: blur(5px);
    }
    50% {
        opacity: 0.7;
        transform: translateY(10px) scale(0.98);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes fadeInGlow {
    0% {
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.1),
            0 2px 8px rgba(0, 0, 0, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }
    100% {
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.1),
            0 2px 8px rgba(0, 0, 0, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.8),
            0 0 20px rgba(102, 126, 234, 0.2);
    }
}

.card-no-border {
    animation: slideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-no-border:nth-child(odd) {
    animation-delay: 0.1s;
}

.card-no-border:nth-child(even) {
    animation-delay: 0.2s;
}

/* Hover glow effect removed to prevent jerky animations */

/* Enhanced Comment Form Styles */
.card-footer {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.95) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(226, 232, 240, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-footer:hover {
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.98) 0%, rgba(235, 242, 250, 0.98) 100%);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Enhanced Avatar Styles */
.card-footer img.rounded-circle {
    border: 2px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-footer img.rounded-circle:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: scale(1.05);
}

/* Enhanced Form Control */
.form-floating .form-control {
    border: 1px solid rgba(209, 213, 219, 0.4);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.form-floating .form-control:focus {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

/* Enhanced Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 50%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-outline-primary {
    border-color: rgba(59, 130, 246, 0.4);
    color: #3b82f6;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    color: white;
    transform: translateY(-1px);
}

.btn-outline-success {
    border-color: rgba(34, 197, 94, 0.4);
    color: #22c55e;
    transition: all 0.3s ease;
}

.btn-outline-success:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: #22c55e;
    color: white;
    transform: translateY(-1px);
}

/* Enhanced Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 8px;
    font-size: 0.75em;
}

/* Enhanced Alert Styles */
.alert {
    border-radius: 12px;
    border: 1px solid rgba(191, 219, 254, 0.2);
    background: rgba(191, 219, 254, 0.1);
}

/* Animation Classes */
.animate__animated {
    animation-duration: 0.6s;
    animation-fill-mode: both;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Enhanced Tooltip Styles */
.tooltip-inner {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.tooltip-arrow::before {
    border-top-color: rgba(0, 0, 0, 0.8);
}

/* Gradient Background for Avatars */
.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Enhanced Comment Thread Indicator */
.comment-thread-count {
    font-size: 0.75rem;
    color: rgba(107, 114, 128, 0.8);
    font-weight: 500;
}

/* Smooth Scrolling for Comments */
.comments-container {
    scroll-behavior: smooth;
}

/* Ensure top-level comments are contained and not visually pushed outside by pseudo-elements/margins */
.comments-container .comment-list-wrapper {
    padding-top: 0.75rem;
}
.comments-container .comment-item:first-child .card {
    margin-top: 0 !important;
}

/* Enhanced Focus States */
.btn:focus,
.form-control:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Loading Animation for Comments */
@keyframes commentLoading {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.comment-loading {
    animation: commentLoading 1.5s ease-in-out infinite;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .card-footer .row > .col-auto {
        margin-bottom: 1rem;
    }

    .card-footer .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start !important;
    }

    .btn {
        width: 100%;
    }
}

/* Like Button and Tooltip Styles */
.like-btn {
    color: #6b7280;
    transition: all 0.3s ease;
    cursor: pointer;
}

.like-btn:hover {
    color: #ef4444;
    transform: scale(1.05);
}

.like-btn.fill {
    color: #ef4444;
}

/* Specific styles for like button when applied to icon element */
.like-btn.bi {
    padding: 0;
    border: none;
    background: none;
    font-size: 1.1rem;
    line-height: 1;
    vertical-align: middle;
    font-family: "bootstrap-icons" !important;
}

.like-btn.bi:hover {
    transform: scale(1.05);
    color: #ef4444 !important;
}

.like-btn.bi.fill {
    color: #ef4444 !important;
}

.like-btn.bi::before {
    /* Ensure the icon pseudo-element renders visibly and uses the Bootstrap Icons font.
       We override layout/opacity rules from the generic like-btn::before overlay. */
    display: inline-block;
    position: static;
    width: auto;
    height: auto;
    content: "\f417";
    font-family: "bootstrap-icons" !important;
    font-style: normal;
    font-weight: normal !important;
    line-height: 1;
    vertical-align: middle;
    opacity: 1 !important;
    font-size: inherit;
    color: inherit;
}

.likers-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.likers-tooltip img {
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Enhanced Edit Button Styling - matches reply button aesthetic */
.edit-btn {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0e7490 100%);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow:
        0 4px 15px rgba(6, 182, 212, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.edit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.edit-btn:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 50%, #155e75 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 8px 25px rgba(6, 182, 212, 0.6),
        0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
}

.edit-btn:hover::before {
    left: 100%;
}

.edit-btn:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

/* Ensure reply button text is highly visible */
.reply-btn {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.reply-btn:hover {
    color: white !important;
}