main > .container {
    padding: 70px 15px 20px;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at top left, #2f0b5d 0%, #09040f 45%, #040205 100%);
    color: #ece8ff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

html, body {
    background: radial-gradient(circle at top left, #2f0b5d 0%, #09040f 45%, #040205 100%) !important;
    color: #ece8ff !important;
}

.home-hero {
    position: relative;
    padding: 120px 0 100px;
    background: linear-gradient(135deg, #2a0f5c 0%, #110312 45%, #070205 100%);
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(159, 84, 255, 0.25), transparent 45%),
                radial-gradient(circle at bottom left, rgba(112, 47, 255, 0.18), transparent 30%);
    pointer-events: none;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.home-hero-content {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #c59dff;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

h1, h2, h3 {
    color: #f8f7ff;
}

h1 {
    font-size: clamp(2.5rem, 3.5vw, 4.5rem);
    line-height: 1.05;
}

.lead {
    font-size: 1.1rem;
    color: #d4ccff;
}

.btn-primary {
    background: #8d3cff;
    border-color: #8d3cff;
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #a161ff;
    border-color: #a161ff;
}

.btn-secondary {
    background: #1a0f33;
    border-color: #1a0f33;
    color: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: #2c1b59;
    border-color: #2c1b59;
}

.btn-xl {
    padding: 0.95rem 1.75rem;
    font-size: 1rem;
}

.card,
.forum-card,
.summary-card {
    background: rgba(20, 7, 35, 0.92);
    border: 1px solid rgba(156, 95, 255, 0.15);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.18);
    border-radius: 24px;
}

.card-dark {
    background: rgba(15, 4, 30, 0.97);
}

.trending-list .trending-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    margin-bottom: 0.75rem;
    padding: 1.15rem 1.3rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.trending-list .trending-item:hover {
    background: rgba(143, 61, 255, 0.18);
    transform: translateY(-2px);
}

.forum-card {
    display: flex;
    flex-direction: column;
    padding: 1.45rem;
    min-height: 100%;
}

.forum-card-header h3 {
    margin-bottom: 0.65rem;
    font-size: 1.35rem;
}

.forum-card-body {
    flex: 1;
}

.forum-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
    margin-top: 1rem;
}

.text-purple {
    color: #c37cff !important;
}

.bg-purple,
.badge.bg-purple {
    background-color: #8658ff !important;
    color: #fff !important;
}

.bg-purple-soft {
    background-color: rgba(140, 89, 255, 0.12);
    color: #e6d8ff;
}

.navbar {
    background: #070308 !important;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #e5d8ff !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.78) !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
    color: #c89cff !important;
}

.form-control,
.form-select,
textarea {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #f1ecff !important;
}

.form-control::placeholder,
.form-select::placeholder,
textarea::placeholder {
    color: rgba(241, 236, 255, 0.7) !important;
}

.card-dark .form-control,
.card-dark textarea,
body:not(.light-theme) .card-dark .form-control,
body:not(.light-theme) .card-dark textarea {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #f1ecff !important;
}

body:not(.light-theme) table,
body:not(.light-theme) th,
body:not(.light-theme) td,
body:not(.light-theme) .table {
    color: #f1ecff !important;
}

body:not(.light-theme) .table a {
    color: #70b7ff !important;
}

.form-control[disabled],
.form-control[readonly],
.form-select[disabled],
.form-select[readonly],
textarea[disabled],
textarea[readonly] {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f1ecff !important;
    opacity: 1;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    box-shadow: 0 0 0 0.2rem rgba(138, 72, 255, 0.25) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

.text-muted {
    color: rgba(228, 217, 255, 0.72) !important;
}

.nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 1.25rem;
}

.nav-tabs .nav-link {
    color: rgba(255, 255, 255, 0.78) !important;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom-color: transparent;
    margin-right: 0.25rem;
    border-radius: 0.85rem 0.85rem 0 0;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-link.show {
    color: #ffffff !important;
    background: rgba(111, 49, 255, 0.22);
    border-color: rgba(111, 49, 255, 0.35);
    border-bottom-color: transparent;
}

.nav-pills .nav-link,
.nav-tabs .nav-link {
    transition: all 0.2s ease;
}

.nav-pills .nav-link.active,
.nav-tabs .nav-link.active {
    background: rgba(141, 60, 255, 0.25) !important;
    color: #fff !important;
}

.list-group-item,
.list-group-item-action,
.card-header,
.card-body,
.card-footer,
.tab-pane {
    background: rgba(10, 4, 18, 0.96) !important;
    color: #ece8ff !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.list-group-item {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px;
    margin-bottom: 0.6rem;
}

.list-group-item a,
.list-group-item .form-check-label,
.list-group-item .d-flex {
    color: #ece8ff !important;
}

.card-header {
    background: rgba(20, 7, 35, 0.95) !important;
}

.card-body {
    background: rgba(10, 4, 20, 0.96) !important;
}

.card-footer {
    background: rgba(15, 5, 25, 0.95) !important;
}

.alert {
    background: rgba(38, 16, 73, 0.96) !important;
    border-color: rgba(141, 60, 255, 0.25) !important;
    color: #f5f0ff !important;
}

.footer {
    background-color: #0b0511;
    color: rgba(255, 255, 255, 0.65);
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.notification-item {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background-color: rgba(142, 59, 255, 0.14);
}

.notification-item.unread {
    background-color: rgba(142, 59, 255, 0.12);
}

.notification-item-text,
.notification-item-time {
    color: #d9d3ff;
}

.notification-item-time {
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Additional animations and effects */
.forum-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Loading animation */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .home-hero {
        padding: 80px 0 60px;
    }

    .forum-card, .forum-post {
        padding: 1rem;
    }

    .post-sidebar {
        width: 100px;
    }

    .post-avatar img {
        width: 80px;
        height: 80px;
    }

    .eyebrow {
        font-size: 0.75rem;
    }

    h1 {
        font-size: clamp(2rem, 4vw, 3rem);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(140, 89, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(140, 89, 255, 0.5);
}

/* Focus states */
.btn:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(138, 72, 255, 0.25) !important;
}

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Forum Styles */
.forum-index {
    background: transparent !important;
    color: #ece8ff !important;
}

.forum-card {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%) !important;
    border: 1px solid rgba(147, 51, 234, 0.3) !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.forum-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 40px rgba(147, 51, 234, 0.4) !important;
    border-color: rgba(147, 51, 234, 0.6) !important;
}

.forum-card-header {
    padding: 20px 20px 0 20px !important;
    border-bottom: 1px solid rgba(147, 51, 234, 0.2) !important;
}

.forum-card-body {
    padding: 15px 20px !important;
}

.forum-card-footer {
    padding: 0 20px 20px 20px !important;
    border-top: 1px solid rgba(147, 51, 234, 0.2) !important;
    color: #b794f6 !important;
}

/* Forum threads list layout */
.forum-threads-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.forum-thread-item {
    width: 100%;
}

.forum-thread-item .forum-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.forum-thread-item .forum-card-header {
    padding: 0 0 1rem 0 !important;
    border-bottom: 1px solid rgba(147, 51, 234, 0.2) !important;
    margin-bottom: 1rem;
}

.forum-thread-item .forum-card-body {
    padding: 0 !important;
    border: none !important;
    margin-bottom: 1rem;
}

.forum-thread-item .forum-card-footer {
    padding: 0 !important;
    border-top: none !important;
    text-align: left;
}

/* Admin panel text colors */
.admin-index {
    color: #f0f0f0;
}

.admin-index h1 {
    color: #ffffff !important;
}

.admin-index .card-title {
    color: #ffffff !important;
}

.admin-index .card-text {
    color: rgba(240, 240, 240, 0.85) !important;
}

.text-light {
    color: #ffffff !important;
}

/* Light Theme */
body.light-theme {
    background: #f5f5f5 !important;
    color: #333333 !important;
}

body.light-theme main {
    background: transparent;
}

body.light-theme .navbar {
    background: #ffffff !important;
    border-bottom: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.light-theme .navbar-brand {
    color: #0066cc !important;
}

body.light-theme .navbar-nav .nav-link {
    color: #666666 !important;
}

body.light-theme .navbar-nav .nav-link:hover,
body.light-theme .navbar-nav .nav-link.active {
    color: #0066cc !important;
}

body.light-theme .form-control,
body.light-theme .form-select {
    background: #ffffff !important;
    border: 1px solid #cccccc !important;
    color: #333333 !important;
}

body.light-theme .form-control::placeholder {
    color: #999999;
}

body.light-theme .card,
body.light-theme .forum-card,
body.light-theme .summary-card {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    color: #333333 !important;
}

body.light-theme .card-header,
body.light-theme .profile-view .card-header,
body.light-theme .profile-view .card-body,
body.light-theme .profile-view .card-footer,
body.light-theme .profile-view .tab-pane {
    background: #f8fafc !important;
    color: #111827 !important;
    border-color: #e2e8f0 !important;
}

body.light-theme .card-dark {
    background: #f9f9f9 !important;
    border: 1px solid #e0e0e0 !important;
    color: #333333 !important;
}

body.light-theme .thread-post,
body.light-theme .forum-post {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .profile-view .card-body,
body.light-theme .profile-view .card-header {
    background: #f8fafc !important;
    color: #111827 !important;
}

body.light-theme .profile-view .nav-tabs .nav-link {
    background: #f3f4f6 !important;
    color: #1f2937 !important;
    border-color: #e2e8f0 !important;
}

body.light-theme .profile-view .nav-tabs .nav-link.active {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: #cbd5e1 !important;
}

body.light-theme .post-content,
body.light-theme .post-header-top,
body.light-theme .post-stats,
body.light-theme .post-author,
body.light-theme .post-date {
    color: #333333 !important;
}

body.light-theme .post-quote {
    background: #f0f4ff !important;
    border-left-color: #6c8cff !important;
    color: #1f2937 !important;
}

body.light-theme .post-quote .post-quote-author,
body.light-theme .post-quote .post-quote-content {
    color: #1f2937 !important;
}

body.light-theme .post-quote .post-quote-author {
    color: #2563eb !important;
}

body.light-theme .btn-like,
body.light-theme .btn-dislike {
    background: #f3f4f6 !important;
    color: #111827 !important;
    border-color: #d1d5db !important;
}

body.light-theme .btn-like:hover {
    background: rgba(34, 197, 94, 0.15) !important;
    color: #16a34a !important;
}

body.light-theme .btn-dislike:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #dc2626 !important;
}

body.light-theme .card-dark .form-control,
body.light-theme .card-dark textarea {
    background: #ffffff !important;
    color: #111827 !important;
}

body.light-theme .card-dark .btn-primary {
    background: #2563eb !important;
    border-color: #2563eb !important;
}

body.light-theme .card-body {
    background: #ffffff !important;
    color: #333333 !important;
}

body.light-theme .card-footer {
    background: #f9f9f9 !important;
    color: #666666 !important;
}

body.light-theme .list-group-item {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
}

body.light-theme .list-group-item a {
    color: #0066cc !important;
}

body.light-theme .list-group-item a:hover {
    color: #0052a3 !important;
}

body.light-theme .list-group-item .form-check-label {
    color: #333333 !important;
}

body.light-theme .list-group-item .d-flex {
    color: #333333 !important;
}

body.light-theme table,
body.light-theme th,
body.light-theme td,
body.light-theme .table {
    color: #1f2937 !important;
}

body.light-theme .table a {
    color: #0052a3 !important;
}

body.light-theme .trending-list .trending-item {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    color: #333333 !important;
}

body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme h4,
body.light-theme h5,
body.light-theme h6 {
    color: #000000 !important;
}

body.light-theme .text-muted {
    color: #999999 !important;
}

body.light-theme .text-purple {
    color: #0066cc !important;
}

body.light-theme .btn-primary {
    background: #0066cc !important;
    border-color: #0066cc !important;
    color: #ffffff !important;
}

body.light-theme .btn-primary:hover,
body.light-theme .btn-primary:focus {
    background: #0052a3 !important;
    border-color: #0052a3 !important;
}

body.light-theme .btn-secondary {
    background: #e0e0e0 !important;
    border-color: #cccccc !important;
    color: #333333 !important;
}

body.light-theme .btn-outline-light {
    color: #666666 !important;
    border-color: #cccccc !important;
}

body.light-theme .btn-outline-light:hover {
    background: #f0f0f0 !important;
    color: #333333 !important;
}

body.light-theme .nav-tabs {
    border-bottom: 1px solid #e0e0e0 !important;
}

body.light-theme .nav-tabs .nav-link {
    color: #666666 !important;
    background: #f9f9f9 !important;
    border: 1px solid #e0e0e0 !important;
}

body.light-theme .nav-tabs .nav-link.active,
body.light-theme .nav-tabs .nav-link.show {
    color: #0066cc !important;
    background: #ffffff !important;
    border-color: #0066cc !important;
}

body.light-theme .alert {
    background: #f0f8ff !important;
    border-color: #0066cc !important;
    color: #003d99 !important;
}

body.light-theme .footer {
    background-color: #f5f5f5 !important;
    border-top: 1px solid #e0e0e0 !important;
    color: #666666 !important;
}

body.light-theme .trending-list .trending-item {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
}

body.light-theme .trending-list .trending-item:hover {
    background: #e8f0ff !important;
}

body.light-theme .forum-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .eyebrow {
    color: #0066cc !important;
}

body.light-theme .lead {
    color: #555555 !important;
}

body.light-theme .home-hero {
    background: linear-gradient(135deg, #e8f0ff 0%, #f5f5f5 45%, #ffffff 100%) !important;
}

body.light-theme .home-hero::before {
    background: none !important;
}

body.light-theme .home-hero-overlay {
    background: rgba(255, 255, 255, 0.5) !important;
}

body.light-theme .home-hero h1 {
    color: #000000 !important;
}

body.light-theme .home-hero .lead {
    color: #333333 !important;
}

body.light-theme .badge.bg-purple,
body.light-theme .bg-purple-soft {
    background-color: #e8f0ff !important;
    color: #0066cc !important;
}

body.light-theme .badge.bg-secondary {
    background-color: #cccccc !important;
    color: #333333 !important;
}

body.light-theme .text-light {
    color: #333333 !important;
}

body.light-theme .forum-card-footer {
    color: #0066cc !important;
}

body.light-theme .forum-threads-list .forum-thread-item {
    border-bottom: 1px solid #e0e0e0;
}

body.light-theme .card-title {
    color: #000000 !important;
}

body.light-theme .card-text {
    color: #666666 !important;
}

body.light-theme .dropdown-menu {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
}

body.light-theme .dropdown-item {
    color: #333333 !important;
}

body.light-theme .dropdown-item:hover,
body.light-theme .dropdown-item:focus {
    background: #f0f0f0 !important;
    color: #000000 !important;
}

body.light-theme .dropdown-divider {
    border-color: #e0e0e0 !important;
}

body.light-theme .admin-index {
    color: #333333 !important;
}

body.light-theme .summary-card {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
}

body.light-theme .summary-card h3,
body.light-theme .summary-card h4 {
    color: #000000 !important;
}

body.light-theme .summary-card p {
    color: #666666 !important;
}

body.light-theme .text-white {
    color: #0066cc !important;
}

body.light-theme .text-white:hover {
    color: #0052a3 !important;
}

body.light-theme .notification-item {
    background: #ffffff !important;
    border-color: #e0e0e0 !important;
    color: #333333 !important;
}

body.light-theme .notification-item:hover {
    background: #f0f0f0 !important;
}

body.light-theme .notification-item-text {
    color: #333333 !important;
}

body.light-theme .notification-item-time {
    color: #999999 !important;
}

body.light-theme .forum-thread-item .forum-card {
    background: #ffffff !important;
}

body.light-theme .forum-thread-item .forum-card-header h3 {
    color: #000000 !important;
}

body.light-theme .forum-thread-item .forum-card-header h3 a {
    color: #0066cc !important;
}

body.light-theme .forum-thread-item .forum-card-header h3 a:hover {
    color: #0052a3 !important;
}

body.light-theme .forum-thread-item .forum-card-header {
    border-color: #e0e0e0 !important;
}

body.light-theme .forum-thread-item .forum-card-body .badge {
    color: #333333 !important;
}

body.light-theme .forum-thread-item .forum-card-body .badge.bg-purple-soft {
    background-color: #e8f0ff !important;
    color: #0066cc !important;
}

body.light-theme .forum-thread-item .forum-card-body .badge.bg-secondary {
    background-color: #e0e0e0 !important;
    color: #333333 !important;
}

body.light-theme .forum-thread-item .forum-card-footer {
    color: #0066cc !important;
}

body.light-theme .forum-thread-item .small.text-muted {
    color: #999999 !important;
}

body.light-theme .fa,
body.light-theme [class*="fas fa-"],
body.light-theme [class*="far fa-"],
body.light-theme [class*="fab fa-"] {
    color: inherit;
}

body.light-theme .bg-danger {
    background-color: #dc3545 !important;
}

body.light-theme .text-danger {
    color: #dc3545 !important;
}

body.light-theme a {
    color: #0066cc;
}

body.light-theme a:hover {
    color: #0052a3;
}

/* Avatar Placeholder Styling */
.avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    border: 2px solid #8d3cff;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4a2566 0%, #2d1b3d 100%);
    font-size: 36px;
    font-weight: bold;
    color: #c37cff;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(141, 60, 255, 0.3);
}

/* Like and Dislike Button Styling */
.btn-like,
.btn-dislike {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px !important;
    border-radius: 8px;
    font-size: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #d4ccff;
}

.btn-like:hover {
    background: rgba(52, 211, 153, 0.2);
    border-color: rgba(52, 211, 153, 0.4);
    color: #34d399;
    transform: translateY(-2px);
}

.btn-dislike:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    transform: translateY(-2px);
}

.btn-like .like-icon,
.btn-like .like-count,
.btn-dislike .dislike-icon,
.btn-dislike .dislike-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-like .like-count,
.btn-dislike .dislike-count {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 11px;
}

.btn-like:active,
.btn-dislike:active {
    transform: translateY(0);
}

.post-actions .btn {
    margin-right: 6px;
}
