/* Header button spacing */
.header-right .botton-sub {
    margin-left: 20px;
}

.header-right .botton-sub:first-child {
    margin-left: 0;
}

/* Header actions layout */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.write-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 14px;
}

.write-link:hover {
    color: #495057;
    text-decoration: none;
}

.write-link i {
    font-size: 20px;
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.auth-buttons .btn-subscribe {
    margin-left: 0;
}

/* Pill-shaped buttons for all frontend buttons */
.btn,
.btn-subscribe,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.btn-light,
.btn-dark,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-light,
.btn-outline-dark,
.btn-custom,
.btn-read-more,
.btn-reply,
.btn-submit,
.search-btn,
.btn-link {
    border-radius: 50px !important;
    padding: 6px 16px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

/* Button hover effects */
.btn:hover,
.btn-subscribe:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-success:hover,
.btn-danger:hover,
.btn-warning:hover,
.btn-info:hover,
.btn-light:hover,
.btn-dark:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-success:hover,
.btn-outline-danger:hover,
.btn-outline-warning:hover,
.btn-outline-info:hover,
.btn-outline-light:hover,
.btn-outline-dark:hover,
.btn-custom:hover,
.btn-read-more:hover,
.btn-reply:hover,
.btn-submit:hover,
.search-btn:hover,
.btn-link:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

/* Special styling for small buttons */
.btn-sm {
    padding: 4px 12px !important;
    font-size: 14px !important;
}

/* Responsive adjustments for header buttons */
@media screen and (max-width: 768px) {
    .header-right .botton-sub {
        margin-left: 15px;
    }

    .header-right .botton-sub .btn-subscribe {
        padding: 5px 12px !important;
        font-size: 14px;
    }

    .header-actions {
        gap: 15px;
    }

    .auth-buttons {
        gap: 10px;
    }
}

@media screen and (max-width: 576px) {
    .header-right .botton-sub {
        margin-left: 10px;
    }

    .header-right .botton-sub .btn-subscribe {
        padding: 4px 10px !important;
        font-size: 13px;
    }

    .header-actions {
        gap: 10px;
    }

    .auth-buttons {
        gap: 8px;
    }

    .write-link {
        font-size: 16px;
    }

    .write-link i {
        font-size: 16px;
    }
}

/* ===========================================
   General Article List Styles
=========================================== */

/* General article list container */
.post-item {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.post-item:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
}

.post-item:last-child {
    margin-bottom: 0;
}

/* Article list layout */
.post-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.post-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

/* Post header */
.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.pinned-badge {
    background: #ffc107;
    color: #212529;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pinned-badge i {
    font-size: 10px;
}

.publication-info {
    color: #6c757d;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Post title */
.post-title {
    margin: 0;
    line-height: 1.4;
}

.post-title a {
    color: #212529;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #007bff;
}

/* Post excerpt */
.post-excerpt {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Post footer */
.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 13px;
}

.meta-item i {
    font-size: 14px;
}

.meta-item .count {
    font-weight: 500;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Action Button Main Style */
.action-btn {
    background: none;
    border: none;
    padding: 6px;
    border-radius: 4px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    font-size: 15px;
}
.action-btn:hover {
    background: #f8f9fa;
    color: #007bff;
}
.action-btn.active,
.action-btn.bookmark.active,
.action-btn.like.active {
    color: #007bff;
}
.action-btn i {
    font-size: 1em;
}

/* Responsive Size */
@media screen and (max-width: 576px) {
    .action-btn {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    .action-btn i {
        font-size: 0.9em;
    }
}

/* Dark Mode */
.dark .action-btn {
    color: #a0aec0;
}
.dark .action-btn:hover {
    background: #4a5568;
    color: #63b3ed;
}
.dark .action-btn.active,
.dark .action-btn.bookmark.active,
.dark .action-btn.like.active {
    color: #63b3ed;
}

/* Special Scene Override (keep if necessary, otherwise merge to main style) */
.answer-actions .action-btn,
.comment-actions .action-btn {
    min-width: 40px;
    height: 32px;
    font-size: 15px;
}
@media screen and (max-width: 576px) {
    .answer-actions .action-btn,
    .comment-actions .action-btn {
        min-width: 28px;
        height: 28px;
        font-size: 13px;
    }
}

/* Other scenes like .post-list-modern, etc., can directly inherit main style if no special requirements */

.action-btn.bookmark.active {
    color: #007bff;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #dee2e6;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
}

.empty-state p {
    font-size: 14px;
    margin: 0;
}

/* Pagination */
.pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .post-content {
        flex-direction: column;
        gap: 16px;
    }

    .post-thumbnail {
        width: 100%;
        height: 200px;
    }

    .post-title a {
        font-size: 16px;
    }

    .post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .post-meta {
        gap: 12px;
    }
}

@media screen and (max-width: 576px) {
    .post-item {
        padding: 16px;
    }

    .post-title a {
        font-size: 15px;
    }

    .post-excerpt {
        font-size: 13px;
    }

    .meta-item {
        font-size: 12px;
    }

    .action-btn {
        width: 28px;
        height: 28px;
    }
}

/* Dark mode support */
.dark .post-item {
    background: #2d3748;
    border-color: #4a5568;
}

.dark .post-item:hover {
    border-color: #3182ce;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.2);
}

.dark .post-title a {
    color: #e2e8f0;
}

.dark .post-title a:hover {
    color: #63b3ed;
}

.dark .post-excerpt {
    color: #a0aec0;
}

.dark .meta-item {
    color: #a0aec0;
}

.dark .action-btn {
    color: #a0aec0;
}

.dark .action-btn:hover {
    background: #4a5568;
    color: #63b3ed;
}

.dark .action-btn.bookmark.active {
    color: #63b3ed;
}

.dark .pinned-badge {
    background: #d69e2e;
    color: #1a202c;
}

.dark .publication-info {
    color: #a0aec0;
}

.dark .empty-state {
    color: #a0aec0;
}

.dark .empty-icon {
    color: #4a5568;
}

.dark .empty-state h3 {
    color: #e2e8f0;
}

/* Dropdown animation for more options */
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* More options dropdown styles for post-item */
.post-item .more-options-dropdown {
    background: white;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 180px;
    animation: dropdownFadeIn 0.2s ease-out;
    padding: 8px;
    position: absolute;
    z-index: 1000;
}

.dark .post-item .more-options-dropdown {
    background: #2d3748;
    border-color: #4a5568;
}

/* ===========================================
   Modern Article List Styles - Medium-inspired Design
=========================================== */

/* New article list container - Medium style */
.post-list-modern {
    background: #ffffff;
    border-radius: 0;
    padding: 32px 0;
    margin-bottom: 0;
    border-bottom: 1px solid #e6e6e6;
    transition: all 0.2s ease;
    position: relative;
}

.post-list-modern:last-child {
    border-bottom: none;
}

.post-list-modern:hover {
    background-color: #fafafa;
}

/* Article list layout - Medium style */
.post-list-modern .post-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.post-list-modern .post-main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-list-modern .post-thumbnail {
    flex-shrink: 0;
    width: 112px;
    height: 112px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    background-color: #f8f9fa;
}

.post-list-modern .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-list-modern:hover .post-thumbnail img {
    transform: scale(1.05);
}

/* Author section - Medium style */
.post-list-modern .author-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.post-list-modern .author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.post-list-modern .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.post-list-modern .author-name {
    color: #6b6b6b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.post-list-modern .author-name:hover {
    color: #1a1a1a;
}

/* Featured badge - Medium style */
.post-list-modern .featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff3cd;
    color: #856404;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.post-list-modern .featured-badge i {
    font-size: 10px;
}

/* Article title - Medium style */
.post-list-modern .post-title {
    margin: 0;
    line-height: 1.3;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.post-list-modern .post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-list-modern .post-title:hover a {
    color: #007bff;
}

/* Article excerpt - Medium style */
.post-list-modern .post-excerpt {
    color: #6b6b6b;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Bottom section - Left and Right Layout */
.post-list-modern .post-bottom-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

/* Metadata - Left side */
.post-list-modern .post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.post-list-modern .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6b6b6b;
    font-size: 13px;
    font-weight: 400;
}

.post-list-modern .meta-item i {
    font-size: 14px;
    opacity: 0.7;
}

.post-list-modern .meta-item .count {
    font-weight: 500;
}

/* Reading time indicator */
.post-list-modern .reading-time {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6b6b6b;
    font-size: 13px;
    font-weight: 400;
}

.post-list-modern .reading-time::before {
    content: "•";
    margin-right: 8px;
    color: #c4c4c4;
}

/* Action buttons - Right side */
.post-list-modern .post-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
}

.post-list-modern .action-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border: none;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b6b6b;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    padding: 0px;
}

.post-list-modern .action-btn:hover {
    background-color: #f0f0f0;
    color: #1a1a1a;
    transform: none;
}

.post-list-modern .action-btn.bookmark {
    color: #6b6b6b;
}

/* Category tags */
.post-list-modern .category-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.post-list-modern .category-tag {
    background: #f8f9fa;
    color: #6b6b6b;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.post-list-modern .category-tag:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
}

/* Responsive design - Medium style */
@media screen and (max-width: 768px) {
    .post-list-modern {
        padding: 24px 0;
    }

    .post-list-modern .post-content-wrapper {
        gap: 20px;
        padding: 0 16px;
    }

    .post-list-modern .post-thumbnail {
        width: 80px;
        height: 80px;
    }

    .post-list-modern .post-title {
        font-size: 18px;
        line-height: 1.4;
    }

    .post-list-modern .post-excerpt {
        font-size: 15px;
    }

    .post-list-modern .post-bottom-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .post-list-modern .post-meta {
        gap: 12px;
    }

    .post-list-modern .post-actions {
        gap: 6px;
        align-self: flex-end;
    }
}

@media screen and (max-width: 576px) {
    .post-list-modern {
        padding: 20px 0;
    }

    .post-list-modern .post-content-wrapper {
        flex-direction: column;
        gap: 16px;
        padding: 0 16px;
    }

    .post-list-modern .post-thumbnail {
        width: 100%;
        height: 200px;
        order: -1;
    }

    .post-list-modern .post-title {
        font-size: 16px;
        line-height: 1.4;
    }

    .post-list-modern .post-excerpt {
        font-size: 14px;
    }

    .post-list-modern .post-bottom-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .post-list-modern .meta-item {
        font-size: 12px;
    }

    .post-list-modern .action-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

/* Dark theme support - Medium style */
.dark .post-list-modern {
    background: #1a1a1a;
    border-bottom-color: #2d2d2d;
}

.dark .post-list-modern:hover {
    background-color: #242424;
}

.dark .post-list-modern .post-title {
    color: #ffffff;
}

.dark .post-list-modern .post-title:hover a {
    color: #4ade80;
}

.dark .post-list-modern .post-excerpt {
    color: #a1a1aa;
}

.dark .post-list-modern .author-name {
    color: #a1a1aa;
}

.dark .post-list-modern .author-name:hover {
    color: #ffffff;
}

.dark .post-list-modern .meta-item {
    color: #71717a;
}

.dark .post-list-modern .action-btn {
    color: #71717a;
}

.dark .post-list-modern .action-btn:hover {
    background-color: #27272a;
    color: #ffffff;
}

.dark .post-list-modern .action-btn.bookmark:hover {
    color: #4ade80;
}

.dark .post-list-modern .action-btn.bookmark.active {
    color: #4ade80;
}

.dark .post-list-modern .featured-badge {
    background: #451a03;
    color: #fbbf24;
}

.dark .post-list-modern .category-tag {
    background: #27272a;
    color: #a1a1aa;
}

.dark .post-list-modern .category-tag:hover {
    background: #3f3f46;
    color: #ffffff;
}

/* Enhanced typography */
.post-list-modern .post-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: -0.025em;
}

.post-list-modern .post-excerpt {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Smooth animations */
.post-list-modern {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state */
.post-list-modern.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Prevent loading state from affecting action buttons */
.action-btn.loading {
    pointer-events: auto !important;
}

/* Empty state styling */
.post-list-modern .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b6b6b;
}

.post-list-modern .empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.post-list-modern .empty-state p {
    font-size: 16px;
    margin: 0;
}

.dark .post-list-modern .empty-state {
    color: #a1a1aa;
}

/* ===========================================
   Medium-Inspired Article Detail Page Styles
=========================================== */

/* Article Container */
.post-single-medium {
    padding: 40px 0;
    background: #ffffff;
    margin-top: 60px;
}

/* Article Header */
.article-header {
    margin-bottom: 40px;
}

.article-header .featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff3cd;
    color: #856404;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.article-header .featured-badge i {
    font-size: 10px;
}

.article-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: -0.025em;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e6e6e6;
}

.author-info {
    align-items: center;
}

.post-author-info{
    display: flex;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details {
    flex-direction: column;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    margin-right: 10px;
}

.author-name:hover {
    color: #007bff;
}

.follow-btn {
    background: #1a1a1a;
    color: #ffffff;
    border: 1px solid #1a1a1a;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: fit-content;
}

.follow-btn:hover {
    background: #ffffff;
    color: #1a1a1a;
}

.article-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #6b6b6b;
    font-size: 14px;
}

.category-tag {
    display: inline-block;
    background: #f8f9fa;
    color: #6b6b6b;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-tag:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
}

/* Article Hero Image */
.article-hero {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.article-hero img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Content */
.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #1a1a1a;
    margin-bottom: 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.article-content p {
    margin-bottom: 24px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

.article-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 20px;
    margin: 24px 0;
    font-style: italic;
    color: #6b6b6b;
}

.article-content code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
}

.article-content pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
}

/* Article Footer */
.article-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e6e6e6;
}

.engagement-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.action-buttons{
    display: flex;
    gap: 10px;
    position: relative;
}

.engagement-metrics {
    display: flex;
    gap: 24px;
}

.metric {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b6b6b;
    font-size: 14px;
}

.metric i {
    font-size: 16px;
}

.action-btn {
    border: 1px solid #e6e6e6;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b6b6b;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #f8f9fa;
    color: #1a1a1a;
}

.action-btn.bookmark.active {
    color: #007bff;
    border-color: #007bff;
}

/* Tags Section */
.tags-section {
    margin-bottom: 40px;
}

.tags-section h5 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

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

.tag-item {
    background: #f8f9fa;
    color: #6b6b6b;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-item:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
}

/* Social Share */
.social-share {
    margin-bottom: 40px;
}

.social-share h5 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e6e6e6;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b6b6b;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: #f8f9fa;
    color: #1a1a1a;
    text-decoration: none;
}

.share-btn.facebook:hover {
    background: #1877f2;
    color: #ffffff;
    border-color: #1877f2;
}

.share-btn.twitter:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.share-btn.linkedin:hover {
    background: #0077b5;
    color: #ffffff;
    border-color: #0077b5;
}

/* Author Section */
.author-section-medium {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e6e6e6;
}

.author-card {
    background: #f8f9fa;
    border-radius: 12px;
}

.author-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.author-card .author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
}

.author-card .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-card .author-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.author-bio {
    color: #6b6b6b;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.author-stats {
    display: flex;
    gap: 12px;
    color: #6b6b6b;
    font-size: 14px;
}

.follow-author-btn {
    background: #1a1a1a;
    color: #ffffff;
    border: 1px solid #1a1a1a;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.follow-author-btn:hover {
    background: #ffffff;
    color: #1a1a1a;
}

.author-description {
    margin-bottom: 20px;
}

.author-description p {
    color: #6b6b6b;
    font-size: 16px;
    line-height: 1.6;
}

.author-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    border: 1px solid #e6e6e6;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b6b6b;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: #f8f9fa;
    color: #1a1a1a;
    text-decoration: none;
}

/* Comments Section */
.comments-section-medium {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e6e6e6;
}

.comments-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 32px;
}

.comment-item {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #f0f0f0;
}

.comment-body{
    display: flex;
    gap: 16px;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

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

.comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-author .author-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
}

.comment-author .author-name:hover {
    color: #007bff;
}

.author-badge {
    background: #007bff;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.comment-meta {
    color: #6b6b6b;
    font-size: 12px;
}

.comment-text {
    margin-bottom: 12px;
}

.comment-text p {
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.comment-actions {
    display: flex;
    gap: 16px;
}

.reply-btn {
    background: none;
    border: none;
    color: #6b6b6b;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.reply-btn:hover {
    color: #1a1a1a;
}

/* Replies */
.replies-section {
    margin-top: 20px;
    padding-left: 20px;
    border-left: 2px solid #f0f0f0;
}

.reply-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.reply-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.reply-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reply-content {
    flex: 1;
}

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

.reply-author .author-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
}

.reply-meta {
    color: #6b6b6b;
    font-size: 11px;
}

.reply-text p {
    color: #1a1a1a;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* Comment Form */
.comment-form-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 32px;
}

.comment-form-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.guest-notice {
    background: #e3f2fd;
    color: #1976d2;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-control {
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    height: auto !important;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: rgb(25, 25, 25);
    box-shadow: 0 0 0 3px rgba(26, 137, 23, 0.1);
}

.submit-btn {
    background: rgb(25, 25, 25);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: fit-content;
}
/* Reply Form */
.reply-form {
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.form-actions {
    display: flex;
    gap: 8px;
}

.cancel-btn {
    background: #6b6b6b;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cancel-btn:hover {
    background: #5a5a5a;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .article-title {
        font-size: 32px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .engagement-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .author-header {
        flex-direction: column;
        text-align: center;
    }

    .comment-item {
        gap: 12px;
    }

    .replies-section {
        padding-left: 12px;
    }
}

@media screen and (max-width: 576px) {
    .article-title {
        font-size: 28px;
    }

    .article-content {
        font-size: 16px;
    }

    .author-card {
        padding: 20px;
    }

    .comment-form-section {
        padding: 20px;
    }
}

/* Dark theme support */
.dark .post-single-medium {
    background: #1a1a1a;
}

.dark .article-title {
    color: #ffffff;
}

.dark .article-content {
    color: #e5e5e5;
}

.dark .article-meta {
    border-bottom-color: #2d2d2d;
}

.dark .author-name {
    color: #ffffff;
}

.dark .follow-btn {
    background: #ffffff;
    color: #1a1a1a;
    border-color: #ffffff;
}

.dark .follow-btn:hover {
    background: #1a1a1a;
    color: #ffffff;
}

.dark .article-footer {
    border-top-color: #2d2d2d;
}

.dark .action-btn {
    background: #2d2d2d;
    border-color: #404040;
    color: #e5e5e5;
}

.dark .action-btn:hover {
    background: #404040;
    color: #ffffff;
}

.dark .author-card {
    background: #2d2d2d;
}

.dark .comment-form-section {
    background: #2d2d2d;
}

.dark .form-control {
    background: #1a1a1a;
    border-color: #404040;
    color: #e5e5e5;
}

.dark .form-control:focus {
    border-color: #4ade80;
}

/* ===========================================
   Medium Style User Menu
=========================================== */

/* Medium style user menu */
.user-menu-dropdown {
    position: relative;
}

.user-menu-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.user-avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
}

.user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
}

.user-menu-medium {
    position: absolute;
    top: 100%;
    right: 0 !important;
    left: auto !important;
    width: 240px;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    margin-top: 0.5rem;
    padding: 0;
    overflow: hidden;
}

.user-profile-section {
    display: flex;
    align-items: center;
    padding: .7rem 1.5rem;
    border-bottom: 1px solid #e1e5e9;
    background: #f8f9fa;
}

.user-avatar-placeholder-large {
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.5rem;
}

.user-details {
    flex: 1;
}

.user-details .user-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #242424;
    margin: 0 0 0.25rem 0;
}

.user-details .user-email {
    font-size: 0.875rem;
    color: #6b6b6b;
    margin: 0;
}

.menu-section {
    padding: 0.5rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.475rem 1rem;
    color: #242424;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.menu-item:hover {
    background-color: #f8f9fa;
    color: #242424;
    text-decoration: none;
}

.menu-item i {
    width: 18px;
    text-align: center;
    font-size: 1rem;
    color: #6b6b6b;
}

.menu-divider {
    height: 1px;
    background-color: #e1e5e9;
    margin: 0.5rem 0;
}

.logout-form {
    margin: 0;
}

.logout-btn {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    color: #242424;
    font-size: 0.875rem;
    font-weight: 500;
}

.logout-btn:hover {
    color: #242424;
}

.user-email-display {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    color: #6b6b6b;
    text-align: center;
    border-top: 1px solid #e1e5e9;
    background: #f8f9fa;
}

/* Dark theme support for user menu */
.dark .user-menu-medium {
    background: #2d2d2d;
    border-color: #404040;
}

.dark .user-profile-section {
    background: #404040;
    border-bottom-color: #404040;
}

.dark .user-details .user-name {
    color: #e5e5e5;
}

.dark .user-details .user-email {
    color: #a1a1aa;
}

.dark .menu-item {
    color: #e5e5e5;
}

.dark .menu-item:hover {
    background-color: #404040;
    color: #e5e5e5;
}

.dark .menu-item i {
    color: #a1a1aa;
}

.dark .menu-divider {
    background-color: #404040;
}

.dark .logout-btn {
    color: #e5e5e5;
}

.dark .logout-btn:hover {
    color: #e5e5e5;
}

.dark .user-email-display {
    background: #404040;
    border-top-color: #404040;
    color: #a1a1aa;
}

/* ===========================================
   Article Detail JavaScript Dependencies
=========================================== */

/* Notification Styles */
.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    margin-left: 8px;
}

/* More Options Menu */
.more-options-menu {
    position: absolute;
    background: white;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 150px;
    font-size: 14px;
}

/* Table of Contents */
.table-of-contents {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 24px;
}

.table-of-contents h4 {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 8px;
}

.table-of-contents a {
    color: #6b6b6b;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.table-of-contents a:hover {
    color: #007bff;
}

/* Lazy Loading */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* Code Blocks */
pre {
    position: relative;
}

.line-numbers {
    position: absolute;
    left: 0;
    top: 0;
    background: #f8f9fa;
    padding: 20px 12px 20px 20px;
    border-right: 1px solid #e6e6e6;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    color: #6b6b6b;
    line-height: 1.5;
}

.line-numbers span {
    display: block;
}

.copy-code-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.copy-code-btn:hover {
    background: white;
    border-color: #007bff;
    color: #007bff;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Dark theme support for JS elements */
.dark .more-options-menu {
    background: #2d2d2d;
    border-color: #404040;
}

.dark .table-of-contents {
    background: #2d2d2d;
}

.dark .table-of-contents a {
    color: #e5e5e5;
}

.dark .line-numbers {
    background: #2d2d2d;
    border-right-color: #404040;
    color: #a1a1aa;
}

.dark .copy-code-btn {
    background: rgba(45,45,45,0.9);
    border-color: #404040;
    color: #e5e5e5;
}

.dark .copy-code-btn:hover {
    background: #404040;
    border-color: #4ade80;
    color: #4ade80;
}

/* ===========================================
   Q&A Community Styles
=========================================== */

/* Question List Styles */
.question-item {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.question-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.vote-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.vote-btn {
    border: none;
    background: transparent;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.vote-btn:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.vote-btn.voted {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}

.vote-btn.downvote.voted {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

.btn-success.vote-btn {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}

.btn-danger.vote-btn {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

.vote-btn.voting {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.vote-count {
    font-size: 14px;
    color: #6c757d;
    min-width: 20px;
    text-align: center;
}

.question-meta {
    font-size: 12px;
    color: #6c757d;
}

.question-meta a {
    text-decoration: none;
}

.question-meta a:hover {
    text-decoration: underline;
}

.question-meta .author-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 12px;
}

.question-meta .author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.question-meta .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.question-meta .author-name {
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
}

.question-meta .author-name:hover {
    text-decoration: underline;
}

.question-meta .answer-users {
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.question-meta .answer-avatar-stack {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-left: -8px;
    transition: transform 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.question-meta .answer-avatar-stack:first-child {
    margin-left: 0;
}

.question-meta .answer-avatar-stack:hover {
    transform: scale(1.1);
    z-index: 10;
}

.question-meta .answer-avatar-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.question-tags {
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.question-tags .badge {
    font-size: 11px;
    padding: 4px 8px;
    margin-right: 4px;
    margin-bottom: 4px;
}

.question-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Question Details Page Styles */
.answers-section {
    margin-top: 2rem;
}

.answer-item {
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.answer-content {
    line-height: 1.6;
    color: #333;
}

.answer-meta {
    font-size: 12px;
    color: #6c757d;
}

.answer-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.accept-answer-btn {
    font-size: 12px;
    padding: 4px 8px;
}

.delete-answer-btn {
    font-size: 12px;
    padding: 4px 8px;
}

/* Answer Form Styles */
.question-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.question-form .form-label {
    font-weight: 600;
    color: #333;
}

.question-form .form-text {
    font-size: 12px;
    color: #6c757d;
}

/* Filter and Sort Styles */
.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-buttons .btn {
    font-size: 12px;
    padding: 6px 12px;
}

/* Sidebar Styles */
.sidebar-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.sidebar-card .card-header {
    background: transparent;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.sidebar-card .card-header h6 {
    margin: 0;
    font-weight: 600;
    color: #333;
}

/* Popular Tags Styles */
.popular-tags .badge {
    display: inline-block;
    margin: 2px;
    font-size: 11px;
    padding: 4px 8px;
    transition: all 0.2s ease;
}

.popular-tags .badge:hover {
    transform: scale(1.05);
}

/* Question Stats Styles */
.question-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: center;
}

.stat-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.stat-item .stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

.stat-item .stat-label {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .vote-buttons {
        flex-direction: row;
        gap: 8px;
    }

    .question-stats {
        flex-direction: row;
        gap: 16px;
    }

    .answer-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .filter-buttons {
        justify-content: center;
    }
}

@media screen and (max-width: 576px) {
    .question-item .card-body {
        padding: 12px;
    }

    .vote-buttons {
        margin-bottom: 12px;
    }

    .question-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Dark Theme Support */
.dark .question-item {
    background: #2d2d2d;
    border-color: #404040;
}

.dark .question-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.dark .vote-btn:hover {
    background-color: #404040;
    color: #4ade80;
}

.dark .question-meta {
    color: #a1a1aa;
}

.dark .question-meta a {
    color: #4ade80;
}

.dark .question-meta .author-name {
    color: #4ade80;
}

.dark .question-meta .author-name:hover {
    color: #22c55e;
}

.dark .question-meta .answer-avatar-stack {
    border-color: #2d2d2d;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.dark .answer-item {
    border-left-color: #404040;
}

.dark .answer-item:hover {
    border-left-color: #4ade80;
}

.dark .answer-content {
    color: #e5e5e5;
}

.dark .question-form {
    background: #2d2d2d;
}

.dark .sidebar-card {
    background: #2d2d2d;
}

.dark .sidebar-card .card-header {
    border-bottom-color: #404040;
}

.dark .sidebar-card .card-header h6 {
    color: #e5e5e5;
}

.dark .stat-item {
    background: #2d2d2d;
}

.dark .stat-item .stat-number {
    color: #4ade80;
}

.dark .stat-item .stat-label {
    color: #a1a1aa;
}

/* ===========================================
   JavaScript Dynamic Styles
=========================================== */

/* Notification Styles */
.notification {
    position: fixed;
    top: 90px; /* Adjust top distance to ensure below 70px navbar */
    right: 20px;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999; /* Increase z-index to ensure on top */
    max-width: 300px;
    animation: slideIn 0.3s ease;
}

/* Mobile responsive for notifications */
@media screen and (max-width: 768px) {
    .notification {
        top: 80px; /* Slightly adjust position for mobile */
        right: 10px;
        left: 10px;
        max-width: none;
        width: auto;
    }
}

@media screen and (max-width: 576px) {
    .notification {
        top: 75px; /* Further adjust for small screens */
        right: 5px;
        left: 5px;
        padding: 10px 12px;
        font-size: 14px;
    }
}

.notification.notification-success {
    background: #10b981;
}

.notification.notification-error {
    background: #ef4444;
}

.notification.notification-info {
    background: #3b82f6;
}

/* More Options Menu */
.more-options-menu {
    position: absolute;
    background: white;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 150px;
    font-size: 14px;
}

.more-options-menu .menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.more-options-menu .menu-item:hover {
    background-color: #f8f9fa;
}

/* Reading Progress */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: #007bff;
    z-index: 1001;
    transition: width 0.1s ease;
}

/* Dark theme support for dynamic elements */
.dark .more-options-menu {
    background: #2d2d2d;
    border-color: #404040;
}

.dark .more-options-menu .menu-item:hover {
    background-color: #404040;
}

/* Report Modal Styles */
.report-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: modalFadeIn 0.3s ease-out;
}

.report-modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.report-modal-content h3 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.report-reasons {
    margin-bottom: 20px;
}

.report-reasons label {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    color: #1a1a1a;
    cursor: pointer;
}

.report-reasons input[type="radio"] {
    margin-right: 8px;
}

#report-reason-text {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    resize: vertical;
}

.report-block-author {
    margin-bottom: 20px;
}

.report-block-author label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #1a1a1a;
    cursor: pointer;
}

.report-block-author input[type="checkbox"] {
    margin-right: 8px;
}

.button-group {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-cancel {
    background: #f8f9fa;
    color: #6b6b6b;
}

.btn-cancel:hover {
    background: #e9ecef;
    color: #495057;
}

.btn-report {
    background: #dc3545;
    color: white;
}

.btn-report:hover {
    color: #fff;
    background: #c82333;
}

.btn-report:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

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

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

/* Dark theme support for report modal */
.dark .report-modal-content {
    background: #2d2d2d;
    color: #e5e5e5;
}

.dark .report-modal-content h3 {
    color: #e5e5e5;
}

.dark .report-reasons label {
    color: #e5e5e5;
}

.dark #report-reason-text {
    background: #404040;
    border-color: #555;
    color: #e5e5e5;
}

.dark .report-block-author label {
    color: #e5e5e5;
}

.dark .btn-cancel {
    background: #404040;
    color: #e5e5e5;
}

.dark .btn-cancel:hover {
    background: #555;
}

/* Share Options Menu Styles */
.share-options-menu {
    position: absolute;
    background: white;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 220px;
    padding: 8px 0;
    font-size: 14px;
}

.share-options-menu .share-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #1a1a1a;
    text-decoration: none;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-size: 14px;
    font-family: inherit;
    position: relative;
}

.share-options-menu .share-menu-item:hover {
    background-color: #f8f9fa;
}

.share-options-menu .share-menu-item i {
    font-size: 16px;
    width: 16px;
    text-align: center;
    display: inline-block;
}

.share-options-menu .share-menu-item[data-action="facebook"] i {
    color: #1877f2;
}

.share-options-menu .share-menu-item[data-action="linkedin"] i {
    color: #0077b5;
}

.share-options-menu .share-menu-item[data-action="copy-link"] i {
    color: #6b6b6b;
}

.share-options-menu .share-menu-item span {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
    display: inline-block;
    flex: 1;
}

.share-menu-divider {
    height: 1px;
    background-color: #e6e6e6;
    margin: 4px 0;
}

/* Dark theme support for share options menu */
.dark .share-options-menu {
    background: #2d2d2d;
    border-color: #404040;
}

.dark .share-options-menu .share-menu-item {
    color: #e5e5e5;
}

.dark .share-options-menu .share-menu-item:hover {
    background-color: #404040;
}

.dark .share-options-menu .share-menu-item span {
    color: #e5e5e5;
}

.dark .share-menu-divider {
    background-color: #404040;
}

/* Q&A Community Modern Styles - Card Layout */
.questions-page {
    background: #f8f9fa;
    min-height: 100vh;
    padding-bottom: 50px;
}

.header-section {
    background: white;
    padding: 40px 0;
    margin-top: 50px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0;
}

.ask-btn {
    background: #007bff;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ask-btn:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.filter-bar {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.filter-buttons {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 6px 12px;
    border: 1px solid #e9ecef;
    background: white;
    color: #666;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: #007bff;
    color: #007bff;
}

.filter-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.questions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.question-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.question-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.question-content {
    padding: 20px 20px 0 20px;
}

.question-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.question-title {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}



.question-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 16px;
    position: relative;
}

.read-more {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

.read-more:hover {
    color: #0056b3;
}

.read-more i {
    font-size: 0.8rem;
}

.question-meta {
    margin-bottom: 10px;
}

.meta-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #666;
}

.date {
    color: #999;
}

.status.solved {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.interaction-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.vote-section {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 20px;
}

.vote-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vote-btn:hover {
    color: #007bff;
    background: rgba(0,123,255,0.1);
    transform: scale(1.1);
}

.vote-btn.voted {
    color: #007bff;
    background: rgba(0,123,255,0.15);
}

.vote-count {
    color: #333;
    font-size: 1rem;
    min-width: 18px;
    text-align: center;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.action-btn {
    background: white;
    border: 1px solid #e9ecef;
    color: #666;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    min-width: 80px;
    justify-content: center;
}

.action-btn:hover {
    color: #007bff;
    border-color: #007bff;
    background: rgba(0,123,255,0.05);
    transform: translateY(-1px);
}

.action-btn.active {
    color: #007bff;
    border-color: #007bff;
    background: rgba(0,123,255,0.1);
}

.action-btn i {
    font-size: 0.9rem;
}

.action-btn.bookmark.active {
    color: #ffc107;
    border-color: #ffc107;
    background: rgba(255,193,7,0.1);
}

.action-btn.like.active {
    color: #e91e63;
    border-color: #e91e63;
    background: rgba(233,30,99,0.1);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    min-width: 140px;
    z-index: 1000;
    display: none;
    padding: 8px 0;
    margin-top: 8px;
    backdrop-filter: blur(10px);
}

.dropdown-menu.show {
    display: block;
    animation: dropdownFadeIn 0.2s ease-out;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #007bff;
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.more-options-dropdown .dropdown-menu {
    top: 0px;
}

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

.empty-state {
    background: white;
    border-radius: 8px;
    padding: 60px 40px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.empty-icon {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-weight: 600;
}

.empty-state p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1rem;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}



/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .interaction-bar {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        padding: 20px;
    }

    .vote-section {
        align-self: center;
        margin-bottom: 8px;
    }

    .action-buttons {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .action-btn {
        min-width: 70px;
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .header-section {
        padding: 30px 0;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .question-content {
        padding: 16px 16px 0 16px;
    }

    .question-meta {
        padding: 0 16px 12px 16px;
    }

    .interaction-bar {
        padding: 16px;
        gap: 12px;
    }

    .vote-section {
        padding: 6px 10px;
        gap: 8px;
    }

    .vote-btn {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .vote-count {
        font-size: 0.9rem;
        min-width: 20px;
    }

    .action-buttons {
        gap: 6px;
    }

    .action-btn {
        min-width: 60px;
        padding: 5px 8px;
        font-size: 0.75rem;
        gap: 4px;
    }

    .action-btn i {
        font-size: 0.8rem;
    }

    .meta-info {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* Dark Mode Support */
.dark .questions-page {
    background: #1a1a1a;
}

.dark .header-section,
.dark .filter-bar,
.dark .question-card,
.dark .sidebar-card,
.dark .empty-state {
    background: #2d2d2d;
    border-color: #404040;
    color: #e2e8f0;
}

.dark .page-title {
    color: #e2e8f0;
}

.dark .question-title a {
    color: #e2e8f0;
}

.dark .question-title a:hover {
    color: #007bff;
}

.dark .question-excerpt {
    color: #a0aec0;
}

.dark .meta-info {
    color: #a0aec0;
}

.dark .vote-btn {
    color: #a0aec0;
}

.dark .vote-btn:hover {
    color: #007bff;
}

.dark .action-btn {
    color: #a0aec0;
}

.dark .action-btn:hover {
    color: #007bff;
}

.dark .search-input input {
    background: #404040;
    border-color: #404040;
    color: #e2e8f0;
}

.dark .search-input input:focus {
    background: #2d2d2d;
    border-color: #007bff;
}

.dark .tag-item {
    background: #404040;
    color: #a0aec0;
}

.dark .stat-box {
    background: #404040;
}

.dark .stat-number {
    color: #e2e8f0;
}

.dark .stat-label {
    color: #a0aec0;
}



.empty-icon {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #333;
    margin-bottom: 10px;
}

.empty-state p {
    color: #666;
    margin-bottom: 30px;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.sidebar-card .card-header {
    background: transparent;
    color: #333;
    border: none;
    padding: 0px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-card .card-header h5 {
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-size: 1.1rem;
}

.sidebar-card .card-header h5 i {
    color: #667eea;
}

.sidebar-card .card-body {
    padding: 0px;
}

.search-input {
    position: relative;
}

.search-input input {
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 12px 50px 12px 20px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input .search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #667eea;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-input .search-btn:hover {
    transform: translateY(-50%) scale(1.1) !important;
    background: #5a6fd8;
}

.tags-cloud {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tag-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
    background: #f8f9fa;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.tag-item:hover {
    background: #667eea;
    color: white;
}

.tag-name {
    font-weight: 500;
}

.tag-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.stat-box:hover .stat-icon {
    background: rgba(255, 255, 255, 0.2);
}

.stat-info {
    flex: 1;
}

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

.stat-box:hover .stat-number {
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    letter-spacing: 1px;
}

.stat-box:hover .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-tabs {
        gap: 15px;
    }

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .question-card {
        flex-direction: column;
        gap: 15px;
    }

    .question-vote {
        flex-direction: row;
        justify-content: center;
    }

    .question-header {
        flex-direction: column;
        gap: 10px;
    }

    .question-meta {
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .filter-section {
        padding: 20px;
    }

    .question-card {
        padding: 20px;
    }

    .sidebar-card .card-body {
        padding: 20px;
    }
}

/* Ask Question Page Styles */
.ask-question-page {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 120px 0 40px 0; /* Increase top padding to avoid being covered by fixed header */
    margin-top: 0;
}

.page-header {
    margin-bottom: 30px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 50%;
    color: #666;
    text-decoration: none;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateX(-2px);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.page-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

.question-form-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.form-section {
    margin-bottom: 25px;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label i {
    color: #667eea;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-text {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #666;
}

.char-count {
    font-weight: 600;
    color: #667eea;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

.form-actions .btn {
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-actions .btn-primary {
    background: #667eea;
    border: none;
}

.form-actions .btn-primary:hover {
    transform: translateY(-2px);
}

.more-options-dropdown{
    height: 80px;
}

.guide-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.guide-header {
    background: #f8f9fa;
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
}

.guide-header h5 {
    margin: 0;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-header h5 i {
    color: #667eea;
}

.guide-content {
    padding: 30px;
}

.guide-section {
    margin-bottom: 20px;
}

.guide-section h6 {
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-section.good h6 {
    color: #28a745;
}

.guide-section.bad h6 {
    color: #dc3545;
}

.guide-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-section li {
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
    color: #666;
    font-size: 0.95rem;
}

.guide-section li:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ask-question-page {
        padding: 100px 0 20px 0; /* Reduce top padding for mobile devices */
    }

    .page-title {
        font-size: 2rem;
    }

    .question-form-card {
        padding: 20px;
    }

    .guide-content {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
        gap: 15px;
    }

    .form-actions .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .ask-question-page {
        padding: 80px 0 20px 0; /* Further reduce top padding for small screens */
    }

    .page-title {
        font-size: 1.8rem;
    }

    .question-form-card {
        padding: 15px;
    }

    .guide-content {
        padding: 15px;
    }
}




.report-reasons input[type="radio"] {
    accent-color: #222;
    margin-right: 8px;
}
#report-reason-text {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 7px;
    font-size: 15px;
    margin-bottom: 14px;
    background: #fff;
    transition: border-color 0.2s;
    min-height: 70px;
    resize: vertical;
    font-family: inherit;
}
.report-block-author {
    margin: 18px 0 10px 0;
    font-size: 15px;
}
.report-block-author input[type="checkbox"] {
    accent-color: #222;
    margin-right: 8px;
}
.button-group {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-top: 18px;
}
.btn {
    padding: 10px 32px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.btn-cancel {
    background: #fff;
    color: #222;
    border: 1.5px solid #bbb;
}
.btn-cancel:hover {
    background: #f3f4f6;
}
.btn-report {
    background: #e74c3c;
    color: #fff;
    border: 1.5px solid #e74c3c;
}
.btn-report:hover {
    background: #c0392b;
    border-color: #c0392b;
}
.btn-report:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}
@media (max-width: 480px) {
    .report-modal-content {
        min-width: 90vw;
        padding: 16px 6vw;
    }
}

/* X Platform Icon Styling */
.social-link.twitter i.fas.fa-times,
.share-options-menu .share-menu-item[data-action="twitter"] i.fas.fa-times {
    font-weight: bold !important;
    color: #000 !important;
    font-size: 16px;
}

.social-link.twitter:hover i.fas.fa-times,
.share-options-menu .share-menu-item[data-action="twitter"]:hover i.fas.fa-times {
    color: #000 !important;
}

/* Dark mode support for X icon */
.dark .social-link.twitter i.fas.fa-times,
.dark .share-options-menu .share-menu-item[data-action="twitter"] i.fas.fa-times {
    color: #fff !important;
}

.dark .social-link.twitter:hover i.fas.fa-times,
.dark .share-options-menu .share-menu-item[data-action="twitter"]:hover i.fas.fa-times {
    color: #fff !important;
}

/* Custom X SVG Icon */
.x-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
}

.x-icon svg {
    width: 100%;
    height: 100%;
    fill: #242424;
}

.social-link.twitter:hover .x-icon svg,
.share-options-menu .share-menu-item[data-action="twitter"]:hover .x-icon svg {
    fill: #242424;
}

/* Dark mode support for X SVG icon */
.dark .x-icon svg {
    fill: #ffffff;
}

.dark .social-link.twitter:hover .x-icon svg,
.dark .share-options-menu .share-menu-item[data-action="twitter"]:hover .x-icon svg {
    fill: #ffffff;
}

/* ===========================================
   User Profile Page Styles
=========================================== */

/* Author section enhancements */
.authors-info {
    position: relative;
}

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

.author-header h4 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
}

/* Follow button styles */
.follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.follow-btn:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.follow-btn.following {
    background: #28a745;
}

.follow-btn.following:hover {
    background: #1e7e34;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.follow-btn i {
    font-size: 16px;
}

/* User statistics */
.user-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 80px;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #6c757d;
    letter-spacing: 0.5px;
}

/* Author bio */
.author-bio {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

/* Q&A Section in sidebar */
.user-qa-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.user-qa-section .widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #007bff;
}

.qa-subsection {
    margin-bottom: 24px;
}

.qa-subsection:last-child {
    margin-bottom: 0;
}

.qa-subsection h5 {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qa-subsection h5 i {
    color: #007bff;
    font-size: 16px;
}

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

.qa-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #007bff;
    transition: all 0.3s ease;
}

.qa-item:hover {
    background: #e9ecef;
    transform: translateX(2px);
}

.qa-title {
    margin-bottom: 8px;
}

.qa-title a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
}

.qa-title a:hover {
    color: #007bff;
}

.qa-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #6c757d;
    flex-wrap: wrap;
}

.qa-answers,
.qa-views,
.qa-votes,
.qa-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.qa-solved-badge,
.qa-accepted-badge {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.qa-accepted-badge {
    background: #ffc107;
    color: #212529;
}

/* Stats summary */
.stats-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 13px;
    color: #6c757d;
}

.stat-value {
    font-size: 13px;
    color: #2c3e50;
    font-weight: 600;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .author-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .user-stats {
        gap: 15px;
    }

    .stat-item {
        min-width: 70px;
    }

    .stat-number {
        font-size: 20px;
    }

    .qa-meta {
        gap: 8px;
    }
}

@media screen and (max-width: 576px) {
    .user-stats {
        gap: 10px;
    }

    .stat-item {
        min-width: 60px;
    }

    .stat-number {
        font-size: 18px;
    }

    .stat-label {
        font-size: 11px;
    }

    .qa-item {
        padding: 10px;
    }

    .qa-title a {
        font-size: 13px;
    }
}

/* Dark mode support */
.dark .author-header h4 {
    color: #e9ecef;
}

.dark .follow-btn {
    background: #007bff;
}

.dark .follow-btn:hover {
    background: #0056b3;
}

.dark .follow-btn.following {
    background: #28a745;
}

.dark .follow-btn.following:hover {
    background: #1e7e34;
}

.dark .stat-number {
    color: #e9ecef;
}

.dark .stat-label {
    color: #adb5bd;
}

.dark .author-bio {
    color: #adb5bd;
}

.dark .user-qa-section {
    background: #2c3e50;
    border-color: #495057;
}

.dark .user-qa-section .widget-title {
    color: #e9ecef;
    border-bottom-color: #007bff;
}

.dark .qa-subsection h5 {
    color: #adb5bd;
}

.dark .qa-item {
    background: #343a40;
    border-left-color: #007bff;
}

.dark .qa-item:hover {
    background: #495057;
}

.dark .qa-title a {
    color: #e9ecef;
}

.dark .qa-title a:hover {
    color: #007bff;
}

.dark .qa-meta {
    color: #adb5bd;
}

.dark .stat-row {
    border-bottom-color: #495057;
}

.dark .stat-label {
    color: #adb5bd;
}

.dark .stat-value {
    color: #e9ecef;
}

/* ===========================================
   User Content Navigation Styles
=========================================== */

/* User content navigation */
.user-content-nav {
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    margin-top: 30px;
}

.content-tabs {
    padding: 0 20px;
}

.content-tabs .nav-tabs {
    border-bottom: none;
    gap: 10px;
}

.content-tabs .nav-item {
    margin-bottom: 0;
}

.content-tabs .nav-link {
    border: none;
    background: transparent;
    color: #6c757d;
    font-weight: 500;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.content-tabs .nav-link:hover {
    color: #007bff;
    background: #f8f9fa;
}

.content-tabs .nav-link.active {
    color: #007bff;
    background: #ffffff;
    border-bottom: 3px solid #007bff;
}

.content-tabs .nav-link i {
    font-size: 16px;
}

/* User content area */
.user-content-area {
    background: #ffffff;
}

/* ===========================================
   Question Item Modern Styles
=========================================== */

.question-item-modern {
    background: #ffffff;
    border-radius: 0;
    padding: 32px 0;
    margin-bottom: 0;
    border-bottom: 1px solid #e6e6e6;
    transition: all 0.2s ease;
    position: relative;
}

.question-item-modern:last-child {
    border-bottom: none;
}

.question-item-modern:hover {
    background-color: #fafafa;
}

.question-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.question-main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.question-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.question-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.question-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.question-author .author-name {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.question-author .author-name:hover {
    color: #007bff;
}

.solved-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.solved-badge i {
    font-size: 14px;
}



/* ===========================================
   Answer Item Modern Styles
=========================================== */

.answer-item-modern {
    background: #ffffff;
    border-radius: 0;
    padding: 32px 0;
    margin-bottom: 0;
    border-bottom: 1px solid #e6e6e6;
    transition: all 0.2s ease;
    position: relative;
}

.answer-item-modern:last-child {
    border-bottom: none;
}

.answer-item-modern:hover {
    background-color: #fafafa;
}

.answer-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.answer-main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.answer-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.answer-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.answer-author .author-name {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.answer-author .author-name:hover {
    color: #007bff;
}

.accepted-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #ffc107;
    color: #212529;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.accepted-badge i {
    font-size: 14px;
}

.question-context {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #007bff;
}

.context-label {
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
}

.question-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.question-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.answer-excerpt {
    color: #6c757d;
    line-height: 1.6;
    font-size: 15px;
}

.answer-bottom-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.answer-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.answer-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
    font-size: 13px;
}

.answer-meta .meta-item i {
    font-size: 14px;
}

.answer-meta .meta-item .count {
    font-weight: 600;
}

.answer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.answer-actions .action-btn {
    background: none;
    border: none;
    color: #6c757d;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    text-decoration: none;
}

.answer-actions .action-btn:hover {
    background: #f8f9fa;
    color: #007bff;
}

/* ===========================================
   Comment Item Modern Styles
=========================================== */

.comment-item-modern {
    background: #ffffff;
    border-radius: 0;
    padding: 32px 0;
    margin-bottom: 0;
    border-bottom: 1px solid #e6e6e6;
    transition: all 0.2s ease;
    position: relative;
}

.comment-item-modern:last-child {
    border-bottom: none;
}

.comment-item-modern:hover {
    background-color: #fafafa;
}

.comment-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.comment-main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-author .author-name {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.comment-author .author-name:hover {
    color: #007bff;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.approved {
    background: #28a745;
    color: white;
}

.status-badge.pending {
    background: #ffc107;
    color: #212529;
}

.post-context {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #007bff;
}

.post-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.post-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .content-tabs .nav-link {
        padding: 12px 15px;
        font-size: 13px;
    }

    .content-tabs .nav-link i {
        font-size: 14px;
    }

    .question-content-wrapper,
    .answer-content-wrapper,
    .comment-content-wrapper {
        gap: 20px;
    }

    .question-title,
    .answer-excerpt,
    .comment-excerpt,
    .comment-text {
        font-size: 14px;
    }

    .question-meta,
    .answer-meta,
    .comment-meta {
        gap: 15px;
    }
}

@media screen and (max-width: 576px) {
    .content-tabs {
        padding: 0 10px;
    }

    .content-tabs .nav-link {
        padding: 10px 12px;
        font-size: 12px;
    }

    .content-tabs .nav-link i {
        font-size: 12px;
    }

    .question-content-wrapper,
    .answer-content-wrapper,
    .comment-content-wrapper {
        gap: 15px;
    }

    .question-bottom-section,
    .answer-bottom-section,
    .comment-bottom-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .question-meta,
    .answer-meta,
    .comment-meta {
        gap: 10px;
    }
}

/* Dark mode support */
.dark .user-content-nav {
    background: #2c3e50;
    border-bottom-color: #495057;
}

.dark .content-tabs .nav-link {
    color: #adb5bd;
}

.dark .content-tabs .nav-link:hover {
    color: #007bff;
    background: #343a40;
}

.dark .content-tabs .nav-link.active {
    color: #007bff;
    background: #2c3e50;
}

.dark .question-item-modern,
.dark .answer-item-modern,
.dark .comment-item-modern {
    background: #2c3e50;
    border-bottom-color: #495057;
}

.dark .question-item-modern:hover,
.dark .answer-item-modern:hover,
.dark .comment-item-modern:hover {
    background: #343a40;
}

.dark .question-title a,
.dark .answer-excerpt,
.dark .comment-excerpt {
    color: #e9ecef;
}

.dark .question-title a:hover {
    color: #007bff;
}

.dark .question-excerpt,
.dark .answer-excerpt,
.dark .comment-content {
    background: #2c3e50;
    border-left-color: #007bff;
}

.dark .comment-text {
    color: #e9ecef;
}

.dark .comment-excerpt {
    color: #adb5bd;
}

.dark .question-author .author-name,
.dark .answer-author .author-name,
.dark .comment-author .author-name {
    color: #adb5bd;
}

.dark .question-author .author-name:hover,
.dark .answer-author .author-name:hover,
.dark .comment-author .author-name:hover {
    color: #007bff;
}

.dark .question-meta .meta-item,
.dark .answer-meta .meta-item,
.dark .comment-meta .meta-item {
    color: #adb5bd;
}

.dark .question-actions .action-btn,
.dark .answer-actions .action-btn,
.dark .comment-actions .action-btn {
    color: #adb5bd;
}

.dark .question-actions .action-btn:hover,
.dark .answer-actions .action-btn:hover,
.dark .comment-actions .action-btn:hover {
    background: #343a40;
    color: #007bff;
}

.dark .question-context,
.dark .post-context {
    background: #343a40;
    border-left-color: #007bff;
}

.dark .context-label {
    color: #adb5bd;
}

.dark .question-link,
.dark .post-link {
    color: #007bff;
}

.dark .question-link:hover,
.dark .post-link:hover {
    color: #0056b3;
}

.dark .tag-item {
    background: #343a40;
    color: #adb5bd;
}

.dark .tag-item:hover {
    background: #007bff;
    color: white;
}

/* Medium-style User Profile Styles */
.profile-header-medium {
    padding: 40px 0;
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
}

.profile-header-content {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 50px;
}

.profile-avatar-medium {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-avatar-medium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-box{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-info-medium {
    flex: 1;
}

.profile-name {
    font-size: 28px;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.profile-stats {
    display: flex;
    gap: 24px;
}

.profile-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.profile-stats .stat-number {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.profile-stats .stat-label {
    font-size: 14px;
    color: #6b6b6b;
}

.profile-bio {
    font-size: 16px;
    color: #6b6b6b;
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 600px;
}

.follow-btn-medium {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.follow-btn-medium:hover {
    background: #000;
    color: #fff;
    text-decoration: none;
}

.follow-btn-medium.following {
    background: #f0f0f0;
    color: #1a1a1a;
}

.follow-btn-medium.following:hover {
    background: #e0e0e0;
}

/* Navigation Tabs */
.profile-nav-medium {
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
}

.nav-tabs-medium {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-tabs-medium .nav-tabs {
    border: none;
    gap: 32px;
}

.nav-tabs-medium .nav-item {
    margin: 0;
}

.nav-tabs-medium .nav-link {
    border: none;
    padding: 16px 0;
    color: #6b6b6b;
    font-size: 15px;
    background: transparent;
    position: relative;
}

.nav-tabs-medium .nav-link:hover {
    color: #1a1a1a;
    background: transparent;
    border: none;
}

.nav-tabs-medium .nav-link.active {
    color: #1a1a1a;
    background: transparent;
    border: none;
}

.nav-tabs-medium .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #1a1a1a;
}

/* Content Area */
.profile-content-medium {
    padding: 40px 0;
    background: #fafafa;
    min-height: 600px;
}

.profile-content-medium .container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sidebar */
.sidebar-medium {
    position: sticky;
    top: 20px;
}

.profile-card-medium {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.profile-avatar-sidebar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
}

.profile-avatar-sidebar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name-sidebar {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.followers-count {
    font-size: 14px;
    color: #6b6b6b;
    margin-bottom: 16px;
}

.profile-bio-sidebar {
    font-size: 14px;
    color: #6b6b6b;
    line-height: 1.5;
    margin-bottom: 20px;
}

.follow-btn-sidebar {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
    text-align: center;
}

.follow-btn-sidebar:hover {
    background: #000;
    color: #fff;
    text-decoration: none;
}

.follow-btn-sidebar.following {
    background: #f0f0f0;
    color: #1a1a1a;
}

.follow-btn-sidebar.following:hover {
    background: #e0e0e0;
}

/* Following Section */
.following-section-medium {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 18px;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

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

.following-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.following-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.following-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.following-info {
    flex: 1;
}

.following-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
}

.following-name:hover {
    color: #007bff;
    text-decoration: none;
}

.following-actions {
    color: #6b6b6b;
    cursor: pointer;
    padding: 4px;
}

.following-actions:hover {
    color: #1a1a1a;
}

.see-all-following {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e6e6e6;
}

.see-all-following a {
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
}

.see-all-following a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-header-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .profile-name {
        font-size: 28px;
    }

    .profile-stats {
        justify-content: center;
        gap: 16px;
    }

    .nav-tabs-medium .nav-tabs {
        gap: 16px;
    }

    .nav-tabs-medium .nav-link {
        font-size: 14px;
        padding: 12px 0;
    }

    .profile-content-medium .col-lg-8 {
        margin-bottom: 24px;
    }

    .sidebar-medium {
        position: static;
    }
}

@media (max-width: 576px) {
    .profile-header-medium {
        padding: 24px 0;
    }

    .profile-name {
        font-size: 24px;
    }

    .profile-stats {
        flex-wrap: wrap;
        gap: 12px;
    }

    .profile-stats .stat-item {
        min-width: 60px;
    }

    .nav-tabs-medium .nav-tabs {
        gap: 8px;
    }

    .nav-tabs-medium .nav-link {
        font-size: 13px;
        padding: 8px 0;
    }
}

/* Dark Mode Support */
.dark .profile-header-medium {
    background: #1a1a1a;
    border-bottom-color: #333;
}

.dark .profile-name {
    color: #fff;
}

.dark .profile-stats .stat-number {
    color: #fff;
}

.dark .profile-stats .stat-label {
    color: #ccc;
}

.dark .profile-bio {
    color: #ccc;
}

.dark .follow-btn-medium {
    background: #fff;
    color: #1a1a1a;
}

.dark .follow-btn-medium:hover {
    background: #f0f0f0;
}

.dark .follow-btn-medium.following {
    background: #333;
    color: #fff;
}

.dark .follow-btn-medium.following:hover {
    background: #444;
}

.dark .profile-nav-medium {
    background: #1a1a1a;
    border-bottom-color: #333;
}

.dark .nav-tabs-medium .nav-link {
    color: #ccc;
}

.dark .nav-tabs-medium .nav-link:hover {
    color: #fff;
}

.dark .nav-tabs-medium .nav-link.active {
    color: #fff;
}

.dark .nav-tabs-medium .nav-link.active::after {
    background: #fff;
}

.dark .profile-content-medium {
    background: #0f0f0f;
}

.dark .profile-card-medium,
.dark .following-section-medium {
    background: #1a1a1a;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.dark .profile-name-sidebar {
    color: #fff;
}

.dark .followers-count {
    color: #ccc;
}

.dark .profile-bio-sidebar {
    color: #ccc;
}

.dark .follow-btn-sidebar {
    background: #fff;
    color: #1a1a1a;
}

.dark .follow-btn-sidebar:hover {
    background: #f0f0f0;
}

.dark .follow-btn-sidebar.following {
    background: #333;
    color: #fff;
}

.dark .follow-btn-sidebar.following:hover {
    background: #444;
}

.dark .section-title {
    color: #fff;
}

.dark .following-name {
    color: #fff;
}

.dark .following-name:hover {
    color: #007bff;
}

.dark .following-actions {
    color: #ccc;
}

.dark .following-actions:hover {
    color: #fff;
}

.dark .see-all-following {
    border-top-color: #333;
}

/* ===========================================
   Profile Comment List Styles - Separate from article comments
=========================================== */

/* Profile comment item container */
.profile-comment-item {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.profile-comment-item:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
}

/* Profile comment content wrapper */
.profile-comment-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Profile comment main content */
.profile-comment-main-content {
    flex: 1;
    min-width: 0;
}

/* Profile comment header */
.profile-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

/* Profile comment author */
.profile-comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-comment-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e6e6e6;
}

.profile-author-name {
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    font-size: 16px;
}

.profile-author-name:hover {
    color: #007bff;
}

/* Profile comment status */
.profile-comment-status {
    display: flex;
    gap: 8px;
}

.profile-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-status-badge.approved {
    background: #d4edda;
    color: #155724;
}

.profile-status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

/* Profile post context */
.profile-post-context {
    padding: 12px 0px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.profile-context-label {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    margin-right: 8px;
}

.profile-post-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
}

.profile-post-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Profile comment content */
.profile-comment-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin: 15px 0;
    position: relative;
}

.profile-comment-text {
    color: #495057;
    line-height: 1.7;
    font-size: 15px;
    margin: 0;
    font-weight: 400;
}

/* Profile comment bottom section */
.profile-comment-bottom-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

/* Profile comment meta */
.profile-comment-meta {
    display: flex;
    gap: 20px;
    align-items: center;
}

.profile-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 14px;
}

.profile-meta-item i {
    font-size: 16px;
}

/* Profile comment actions */
.profile-comment-actions {
    display: flex;
    gap: 8px;
}

.profile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: #f8f9fa;
    color: #6c757d;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.profile-action-btn:hover {
    background: #007bff;
    color: #ffffff;
    transform: translateY(-1px);
}

.profile-action-btn i {
    font-size: 16px;
}

/* Profile empty state */
.profile-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.profile-empty-state i {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 20px;
    display: block;
}

.profile-empty-state p {
    font-size: 16px;
    margin: 0;
    color: #6c757d;
}

/* Profile pagination */
.profile-pagination {
    margin-top: 30px;
}

.profile-pagination-area {
    display: flex;
    justify-content: center;
}

/* Responsive design for profile comments */
@media (max-width: 768px) {
    .profile-comment-item {
        padding: 15px;
        margin-bottom: 15px;
    }

    .profile-comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .profile-comment-author img {
        width: 32px;
        height: 32px;
    }

    .profile-author-name {
        font-size: 14px;
    }

    .profile-comment-text {
        font-size: 14px;
    }

    .profile-comment-bottom-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .profile-comment-meta {
        gap: 15px;
    }

    .profile-comment-actions {
        align-self: flex-end;
    }
}

/* Dark mode support for profile comments */
.dark .profile-comment-item {
    background: #2d3748;
    border-color: #4a5568;
}

.dark .profile-comment-item:hover {
    border-color: #3182ce;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.2);
}

.dark .profile-author-name {
    color: #e2e8f0;
}

.dark .profile-author-name:hover {
    color: #63b3ed;
}

.dark .profile-post-context {
    background: #2c3e50;
    border-left-color: #3182ce;
}

.dark .profile-context-label {
    color: #a0aec0;
}

.dark .profile-post-link {
    color: #63b3ed;
}

.dark .profile-post-link:hover {
    color: #90cdf4;
}

.dark .profile-comment-content {
    background: #2d3748;
    border-color: #4a5568;
}

.dark .profile-comment-text {
    color: #e9ecef;
}

.dark .profile-comment-bottom-section {
    border-top-color: #4a5568;
}

.dark .profile-meta-item {
    color: #a0aec0;
}

.dark .profile-meta-item i {
    color: #63b3ed;
}

.dark .profile-count {
    color: #63b3ed;
}

.dark .profile-action-btn {
    background: #4a5568;
    color: #a0aec0;
}

.dark .profile-action-btn:hover {
    background: #3182ce;
    color: #ffffff;
}

.dark .profile-empty-state {
    color: #a0aec0;
}

.dark .profile-empty-state i {
    color: #4a5568;
}

.dark .profile-empty-state p {
    color: #a0aec0;
}

/* Question detail page specific styles */
.question-detail-page {
    background: #f8f9fa;
    min-height: 100vh;
}

.question-detail-page .header-section {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 0;
    margin-bottom: 30px;
    margin-top: 70px;
}

.question-detail-page .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.question-detail-page .breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.question-detail-page .breadcrumb-item a:hover {
    color: #0056b3;
}

.question-detail-page .breadcrumb-item.active {
    color: #6c757d;
}

.question-detail-page .ask-btn {
    background: #007bff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.question-detail-page .ask-btn:hover {
    background: #0056b3;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.question-detail-page .question-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #191b1d;
    line-height: 1.3;
}

.question-detail-page .question-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.question-detail-page .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 0.9rem;
}

.question-detail-page .stat-item i {
    color: #007bff;
    font-size: 1rem;
}

.question-detail-page .stat-item .count {
    font-weight: 600;
    color: #333;
}

.question-detail-page .stat-item .label {
    color: #666;
}

.question-detail-page .section-header {
    margin-bottom: 20px;
}

.question-detail-page .section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #191b1d;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.question-detail-page .accepted-badge {
    background: #28a745;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 15px;
}

.question-detail-page .accepted-badge i {
    font-size: 0.9rem;
}

.question-detail-page .answer-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.question-detail-page .form-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #191b1d;
    margin-bottom: 20px;
}

.question-detail-page .answer-form {
    margin-top: 20px;
}

.question-detail-page .form-group {
    margin-bottom: 20px;
}

.question-detail-page .form-control {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.question-detail-page .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.question-detail-page .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

.question-detail-page .btn-primary {
    background: #007bff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    color: white;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.question-detail-page .btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.question-detail-page .sidebar-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.question-detail-page .sidebar-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.question-detail-page .sidebar-card .card-header {
    border-bottom: 1px solid #e9ecef;
}

.question-detail-page .sidebar-card .card-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #191b1d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.question-detail-page .sidebar-card .card-header h5 i {
    color: #007bff;
}
.question-detail-page .related-questions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.question-detail-page .related-question-item {
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.question-detail-page .related-question-item:hover {
    border-color: #007bff;
    background: rgba(0,123,255,0.05);
}

.question-detail-page .question-link {
    color: #191b1d;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
    display: block;
    margin-bottom: 8px;
}

.question-detail-page .question-link:hover {
    color: #007bff;
}

.question-detail-page .question-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
}

.question-detail-page .answers-count {
    color: #007bff;
    font-weight: 500;
}

.question-detail-page .date {
    color: #999;
}

/* Responsive design */
@media (max-width: 768px) {
    .question-detail-page .question-title {
        font-size: 1.5rem;
    }

    .question-detail-page .question-stats {
        gap: 15px;
    }

    .question-detail-page .stat-item {
        font-size: 0.8rem;
    }

    .question-detail-page .section-title {
        font-size: 1.2rem;
    }

    .question-detail-page .form-actions {
        flex-direction: column;
    }

    .question-detail-page .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .question-detail-page .header-section {
        padding: 15px 0;
        margin: 20px 0;
    }

    .question-detail-page .question-title {
        font-size: 1.3rem;
    }

    .question-detail-page .question-stats {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .question-detail-page .sidebar-card .card-body {
        padding: 15px;
    }
}

/* Dark mode support */
.dark .question-detail-page {
    background: #1a1a1a;
}

.dark .question-detail-page .header-section {
    background: #2d2d2d;
    border-bottom-color: #404040;
}

.dark .question-detail-page .question-title {
    color: #ffffff;
}

.dark .question-detail-page .stat-item {
    color: #cccccc;
}

.dark .question-detail-page .stat-item .count {
    color: #ffffff;
}

.dark .question-detail-page .stat-item .label {
    color: #cccccc;
}

.dark .question-detail-page .section-title {
    color: #ffffff;
}

.dark .question-detail-page .answer-content {
    color: #e0e0e0;
}

.dark .question-detail-page .form-title {
    color: #ffffff;
}

.dark .question-detail-page .form-control {
    background: #2d2d2d;
    border-color: #404040;
    color: #ffffff;
}

.dark .question-detail-page .form-control:focus {
    border-color: #007bff;
    background: #2d2d2d;
}

.dark .question-detail-page .sidebar-card {
    background: #2d2d2d;
    border-color: #404040;
}

.dark .question-detail-page .sidebar-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.dark .question-detail-page .sidebar-card .card-header {
    background: #333333;
    border-bottom-color: #404040;
}

.dark .question-detail-page .sidebar-card .card-header h5 {
    color: #ffffff;
}

.dark .question-detail-page .related-question-item {
    background: #2d2d2d;
    border-color: #404040;
}

.dark .question-detail-page .related-question-item:hover {
    border-color: #007bff;
    background: rgba(0,123,255,0.1);
}

.dark .question-detail-page .question-link {
    color: #ffffff;
}

.dark .question-detail-page .question-link:hover {
    color: #007bff;
}

.dark .question-detail-page .question-meta {
    color: #cccccc;
}

.dark .question-detail-page .date {
    color: #999999;
}

/* ===========================================
   Summernote Editor Styles (Frontend)
=========================================== */

/* Refer to AdminLTE Summernote style to beautify the frontend editor */
.note-toolbar {
    background-color: #fff !important;
    border-bottom: none;
    box-shadow: 0 2px 2px -2px rgba(34, 47, 62, .1), 0 8px 8px -4px rgba(34, 47, 62, .07);
}

.note-editor {
    border: 2px solid #eee !important;
    border-radius: 10px;
}

.note-editor .note-toolbar > .note-btn-group {
    margin-top: 5px;
    margin-left: 0;
    margin-right: 5px;
    border-radius: 3px;
}

.note-editor.note-airframe .note-statusbar,
.note-editor.note-frame .note-statusbar {
    background: none !important;
    border-top: 0px !important;
}

.note-btn-group .note-btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: transparent;
    border: none;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: none;
    position: relative;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    border-color: rgba(0, 0, 0, .2);
    padding: .28rem .65rem;
    font-size: 13px;
    border-radius: 0px !important;
}

.note-btn-group .note-btn:hover {
    border-radius: 0;
    box-shadow: none;
}

.note-btn-group .note-btn:focus,
.note-btn-group .note-btn.active {
    outline: 0;
    box-shadow: none;
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.note-btn-group .note-btn:not(:disabled):not(.disabled) {
    cursor: pointer;
}

.note-btn-group .note-btn:not(:disabled):not(.disabled).active,
.note-btn-group .note-btn:not(:disabled):not(.disabled):active {
    box-shadow: none;
}

/* Dark theme support for Summernote */
.dark .note-toolbar {
    background-color: #2d2d2d !important;
    border-color: #404040;
}

.dark .note-editor {
    border-color: #404040 !important;
    background-color: #1a1a1a;
}

.dark .note-btn-group .note-btn {
    color: #e5e5e5;
    background-color: transparent;
}

.dark .note-btn-group .note-btn:hover {
    background-color: #404040;
    color: #ffffff;
}

.dark .note-btn-group .note-btn:focus,
.dark .note-btn-group .note-btn.active {
    background-color: #404040;
    border-color: #4ade80;
    color: #4ade80;
}

/* ===========================================
   File Manager Styles (Frontend)
=========================================== */

/* File Item Styles */
.file-item {
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.file-item:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.file-item.selected {
    border-color: #007bff;
    background-color: #f8f9fa;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
}

.file-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.file-item .file-info {
    padding: 10px;
    background: #f8f9fa;
}

.file-item .file-name {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
    word-break: break-word;
}

.file-item .file-size {
    font-size: 11px;
    color: #6c757d;
}

/* File Item Overlay with Delete Button */
.file-item-overlay {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.file-item:hover .file-item-overlay {
    opacity: 1;
}

.delete-file-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: none;
    transition: all 0.3s ease;
}

.delete-file-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.delete-file-btn i {
    font-size: 14px;
}

/* Upload Area Styles */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.upload-area.dragover {
    border-color: #007bff;
    background: #e3f2fd;
}

.upload-area-content {
    text-align: center;
    padding: 40px 20px;
    width: 100%;
}

.upload-icon {
    position: relative;
    display: block;
    margin-bottom: 20px;
}

.upload-icon i {
    font-size: 3rem;
    color: #6c757d;
    opacity: 0.7;
}

.plus-icon {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.select-image-btn {
    border: 1px solid #6c757d;
    background: white;
    color: #6c757d;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.select-image-btn:hover {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.upload-hint {
    color: #6c757d;
    font-size: 0.875rem;
    margin: 0;
    opacity: 0.8;
}

/* Modal Styles */
.modal-xl {
    max-width: 90%;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Tab Styles */
.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: #6c757d;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    border-bottom-color: #007bff;
    color: #007bff;
    background: transparent;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: #007bff;
}

/* Progress Bar */
.progress {
    height: 8px;
    border-radius: 4px;
}

/* Dark theme support for file manager */
.dark .file-item {
    background: #2d2d2d;
    border-color: #404040;
}

.dark .file-item:hover {
    border-color: #007bff;
    background: #404040;
}

.dark .file-item.selected {
    border-color: #007bff;
    background: #404040;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
}

.dark .file-item .file-info {
    background: #404040;
}

.dark .file-item .file-name {
    color: #e5e5e5;
}

.dark .file-item .file-size {
    color: #a1a1aa;
}

.dark .upload-area {
    background: #2d2d2d;
    border-color: #404040;
}

.dark .upload-area:hover {
    border-color: #007bff;
    background: #404040;
}

.dark .upload-area.dragover {
    border-color: #007bff;
    background: #404040;
}

.dark .upload-icon i {
    color: #a1a1aa;
}

.dark .upload-hint {
    color: #a1a1aa;
}

/* Comment voting and reporting functionality styles */
.comment-actions-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.comment-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.comment-actions .action-btn {
    background: white;
    border: 1px solid #e9ecef;
    color: #666;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 16px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.comment-actions .action-btn:hover:not(:disabled) {
    color: #007bff;
    border-color: #007bff;
    background: rgba(0,123,255,0.05);
    transform: translateY(-1px);
}

.comment-actions .action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.comment-actions .report-btn {
    color: #dc3545;
    border-color: #dc3545;
}

.comment-actions .report-btn:hover {
    color: #c82333;
    border-color: #c82333;
    background: rgba(220,53,69,0.1);
}

/* Action button style adjustments in nested comments */
.nested-comments .comment-actions .action-btn {
    font-size: 0.75rem;
    padding: 4px 8px;
}

/* Dark mode support */
.dark .comment-actions .action-btn {
    background: #2d3748;
    border-color: #4a5568;
    color: #a0aec0;
}

.dark .comment-actions .action-btn:hover:not(:disabled) {
    color: #007bff;
    border-color: #007bff;
    background: rgba(0,123,255,0.1);
}

.dark .comment-actions .report-btn {
    color: #dc3545;
    border-color: #dc3545;
}

.dark .comment-actions .report-btn:hover {
    color: #c82333;
    border-color: #c82333;
    background: rgba(220,53,69,0.2);
}

/* Nested comment styles */
.nested-comments {
    margin-left: 20px;
    border-left: 2px solid #f0f0f0;
    padding-left: 20px;
    margin-top: 15px;
}

.comment-item {
    margin-bottom: 20px;
}

.comment-item .comment-item {
    margin-bottom: 15px;
}

.comment-item .comment-item .comment-item {
    margin-bottom: 10px;
}

/* Depth limit styles */
.comment-depth-limit {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
}

.comment-depth-limit i {
    margin-right: 5px;
}

/* Reply button styles in nested comments */
.nested-comments .reply-btn {
    font-size: 13px;
    padding: 4px 8px;
}

.nested-comments .comment-avatar {
    width: 32px;
    height: 32px;
}

.nested-comments .comment-text p {
    font-size: 13px;
}

.nested-comments .comment-meta {
    font-size: 11px;
}

/* Nested comment styles in dark mode */
.dark .nested-comments {
    border-left-color: #404040;
}

.dark .comment-depth-limit {
    background: #2d3748;
    border-color: #4a5568;
    color: #a0aec0;
}

/* Answer Comments Styles */
.answer-comments-section {
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
}

.comment-form {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.comment-form textarea {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.875rem;
    resize: vertical;
    min-height: 80px;
}

.comment-form .form-actions {
    margin-top: 0.75rem;
    gap: 0.5rem;
    display: flex;
}

.comment-form .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.comment-item {
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.comment-author .author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-author .author-name {
    font-weight: 600;
    color: #1e40af;
    text-decoration: none;
    font-size: 0.875rem;
}

.comment-author .author-name:hover {
    text-decoration: underline;
}

.comment-author .comment-date {
    color: #6b7280;
    font-size: 0.75rem;
}

.comment-message {
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.comment-actions .vote-section {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.comment-actions .vote-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.comment-actions .vote-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.comment-actions .vote-btn.voted {
    color: #dc2626;
}

.comment-actions .vote-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    min-width: 20px;
    text-align: center;
}

.reply-to-comment-btn,
.delete-comment-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.reply-to-comment-btn:hover {
    background: #f3f4f6;
    color: #1e40af;
}

.delete-comment-btn:hover {
    background: #fef2f2;
    color: #dc2626;
}

.comment-replies {
    margin-left: 2rem;
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 2px solid #e5e7eb;
}

.comment-replies .comment-item {
    padding: 0.75rem 0;
}

.reply-btn {
    color: #6b7280 !important;
}

.reply-btn:hover {
    color: #1e40af !important;
    background: #f8fafc !important;
}

/* Dark mode styles for comments */
.dark .answer-comments-section {
    border-top-color: #4a5568;
}

.dark .comment-form {
    background: #2d3748;
}

.dark .comment-form textarea {
    background: #1a202c;
    border-color: #4a5568;
    color: #e2e8f0;
}

.dark .comment-form textarea:focus {
    border-color: #63b3ed;
}

.dark .comment-item {
    border-bottom-color: #2d3748;
}

.dark .comment-author .author-name {
    color: #63b3ed;
}

.dark .comment-author .comment-date {
    color: #a0aec0;
}

.dark .comment-message {
    color: #e2e8f0;
}

.dark .comment-actions .vote-btn {
    color: #a0aec0;
}

.dark .comment-actions .vote-btn:hover {
    background: #2d3748;
    color: #e2e8f0;
}

.dark .comment-actions .vote-count {
    color: #e2e8f0;
}

.dark .reply-to-comment-btn,
.dark .delete-comment-btn {
    color: #a0aec0;
}

.dark .reply-to-comment-btn:hover {
    background: #2d3748;
    color: #63b3ed;
}

.dark .delete-comment-btn:hover {
    background: #2d3748;
    color: #f56565;
}

.dark .comment-replies {
    border-left-color: #4a5568;
}

.dark .reply-btn {
    color: #a0aec0 !important;
}

.dark .reply-btn:hover {
    color: #63b3ed !important;
    background: #2d3748 !important;
}

/* Reply Form Styles */
.reply-form {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.reply-form textarea {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 0.5rem;
    font-size: 0.875rem;
    resize: vertical;
    width: 100%;
}

.reply-form .form-actions {
    margin-top: 0.5rem;
    gap: 0.5rem;
    display: flex;
}

.dark .reply-form {
    background: #2d3748;
    border-color: #4a5568;
}

.dark .reply-form textarea {
    background: #1a202c;
    border-color: #4a5568;
    color: #e2e8f0;
}

.dark .reply-form textarea:focus {
    border-color: #63b3ed;
}
