/* AndroidNewWorld Custom Styles */

:root {
    /* Android Logo Inspired Color Palette */
    --android-green: #3ddc84;          /* Primary Android green */
    --android-green-dark: #00c851;     /* Darker green for hovers */
    --android-green-light: #a8f5c8;    /* Light green for backgrounds */

    --android-blue: #4285f4;           /* Google/Android blue */
    --android-blue-dark: #1a73e8;      /* Darker blue for depth */
    --android-blue-light: #e3f2fd;     /* Light blue backgrounds */

    --android-gray: #202124;           /* Modern dark gray */
    --android-gray-light: #5f6368;     /* Medium gray for text */
    --android-surface: #ffffff;        /* Clean white surface */
    --android-background: #f8f9fa;     /* Light gray background */

    /* Semantic color assignments */
    --primary-color: var(--android-gray);
    --secondary-color: var(--android-green);
    --accent-color: var(--android-blue);
    --success-color: var(--android-green);
    --info-color: var(--android-blue);

    /* Light Theme Variables (Default) */
    --theme-bg: #f7f9fc;
    --theme-surface: #ffffff;
    --theme-text: #202124;
    --theme-text-secondary: #5f6368;
    --theme-text-muted: #9aa0a6;
    --theme-border: #dadce0;
    --theme-shadow: rgba(32, 33, 36, 0.1);
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --theme-bg: #121212;
    --theme-surface: #1e1e1e;
    --theme-text: #e8eaed;
    --theme-text-secondary: #9aa0a6;
    --theme-text-muted: #5f6368;
    --theme-border: #3c4043;
    --theme-shadow: rgba(0, 0, 0, 0.3);
}

html {
    height: 100%;
}

body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--theme-bg);
    color: var(--theme-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Ensure main content grows to push footer down */
body > main,
body > .container,
body > .container-fluid {
    flex-grow: 1;
}

/* Main content container improvements */
.container {
    position: relative;
}

/* Content containers with theme support */
.container h1, .container h2, .container h3, .container h4, .container h5, .container h6 {
    color: var(--theme-text);
    font-weight: 700;
}

.container p, .container li, .container span {
    color: var(--theme-text);
}

.container .text-muted {
    color: var(--theme-text-secondary);
}

.navbar {
    background: var(--theme-surface);
    box-shadow: 0 2px 12px var(--theme-shadow);
    border-bottom: 2px solid var(--android-green);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--theme-text) !important;
}

/* Navbar links theme support */
.navbar-nav .nav-link {
    color: var(--theme-text) !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--android-green) !important;
}

/* Navbar toggle button for mobile */
.navbar-toggler {
    border-color: var(--theme-border);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-theme="dark"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.hero-section {
    background: linear-gradient(135deg, var(--android-gray) 0%, var(--android-blue) 50%, var(--android-green) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(32, 33, 36, 0.1);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.post-card {
    border-radius: 12px;
    overflow: hidden;
    background: var(--theme-surface);
    box-shadow: 0 2px 8px var(--theme-shadow);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--theme-border);
    border-left: 4px solid transparent;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(32, 33, 36, 0.15);
    border-left-color: var(--android-green);
}

.post-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 700 !important;
    text-decoration: none;
    color: var(--theme-text) !important;
    margin: 0.75rem 0 0.5rem 0;
    line-height: 1.4;
}

.post-title a {
    color: var(--theme-text) !important;
    text-decoration: none;
    font-weight: 700 !important;
}

.post-title a:hover {
    color: var(--android-blue) !important;
}

/* Post content text using theme system with strong contrast */
.post-card .post-excerpt,
.post-card p,
.post-card .card-text,
.post-card .post-content {
    color: var(--theme-text) !important;
}

/* Ensure all text in cards uses theme colors */
.post-card h1, .post-card h2, .post-card h3, .post-card h4, .post-card h5, .post-card h6 {
    color: var(--theme-text) !important;
    font-weight: 700 !important;
}

/* Removed overly broad .post-card * override that prevented hover/excerpt colors from working */

.post-title:hover {
    color: var(--android-green);
    text-decoration: none;
}

.post-excerpt {
    color: var(--theme-text-secondary);
    margin: 1rem 0;
    flex-grow: 1;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--theme-border);
    font-size: 0.875rem;
    color: var(--theme-text-secondary);
}

.post-category {
    background: var(--android-green);
    color: white !important;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--android-green-dark);
    box-shadow: 0 1px 3px rgba(61, 220, 132, 0.2);
}

.post-category:hover {
    background: var(--android-green-dark);
    color: white !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(61, 220, 132, 0.3);
    border-color: var(--android-green);
}

.author-section {
    display: flex;
    align-items: center;
}

.author-name {
    font-weight: 500;
    color: var(--theme-text-secondary);
}

.post-stats {
    font-size: 0.8rem;
    color: var(--theme-text-secondary);
}

.post-stats i {
    margin-right: 0.25rem;
}

/* User Avatar Styles */
.author-avatar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    text-align: center !important;
    font-weight: 600 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: white !important;
    border-radius: 50% !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    flex-shrink: 0 !important;
    object-fit: cover !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    letter-spacing: -0.3px !important;
    text-transform: uppercase !important;
}

.author-avatar img {
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* Search box styling */
.search-box {
    position: relative;
}

.search-box input {
    padding-right: 50px;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
}

.search-box input::placeholder {
    color: rgba(255,255,255,0.8);
}

.search-box input:focus {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    color: white;
    box-shadow: none;
}

.search-box .btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.8);
}

.search-box .btn:hover {
    color: white;
}

/* Footer styling with theme support */
footer {
    background: var(--theme-surface);
    color: var(--theme-text);
    margin-top: auto;
    border-top: 3px solid var(--android-green);
    padding-top: 3rem;
    padding-bottom: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 -2px 10px var(--theme-shadow);
}

footer h5 {
    color: var(--theme-text);
    margin-bottom: 1rem;
    font-weight: 700;
}

footer p,
footer span,
footer li {
    color: var(--theme-text-secondary);
}

footer a {
    color: var(--theme-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--android-green);
    text-decoration: none;
}

footer .text-white-50 {
    color: var(--theme-text-secondary) !important;
    opacity: 1;
}

footer .text-white-50:hover {
    color: var(--android-green) !important;
    opacity: 1;
}

/* Footer social media icons styling */
footer .fab,
footer .fas {
    color: var(--theme-text-secondary);
    transition: color 0.3s ease;
    font-size: 1.2rem;
}

footer .fab:hover,
footer .fas:hover {
    color: var(--android-green);
    transform: translateY(-2px);
}

/* Footer links list styling */
footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    color: var(--theme-text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

footer ul li a:hover {
    color: var(--android-green);
    padding-left: 8px;
    text-decoration: none;
}

/* Button styles */
.btn-primary {
    background: var(--android-blue);
    border-color: var(--android-blue);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: var(--android-blue-dark);
    border-color: var(--android-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.btn-success {
    background: var(--android-green);
    border-color: var(--android-green);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-success:hover {
    background: var(--android-green-dark);
    border-color: var(--android-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(61, 220, 132, 0.3);
}

/* Post title (main h1) styling - make it smaller */
article.post-article h1.mb-3,
.post-article > h1,
article h1.mb-3,
.col-lg-8 article h1:not(.post-content h1) {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: var(--theme-text) !important;
    margin-bottom: 1rem !important;
}

@media (min-width: 768px) {
    article.post-article h1.mb-3,
    .post-article > h1,
    article h1.mb-3,
    .col-lg-8 article h1:not(.post-content h1) {
        font-size: 1.5rem !important;
    }
}

@media (min-width: 1200px) {
    article.post-article h1.mb-3,
    .post-article > h1,
    article h1.mb-3,
    .col-lg-8 article h1:not(.post-content h1) {
        font-size: 1.75rem !important;
    }
}

.post-content {
    background: transparent;
}

@media (max-width: 767px) {
    .post-article {
        padding: 1rem;
    }
}

.post-content h1, .post-content h2 {
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--android-gray);
    border-left: 4px solid var(--android-green);
    padding-left: 1rem;
}

.post-content h3 {
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
    color: var(--android-gray);
    border-left: 3px solid var(--android-blue);
    padding-left: 0.8rem;
}

.post-content h4, .post-content h5, .post-content h6 {
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.post-content p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
    text-align: justify;
}

.post-content ul, .post-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.post-content pre {
    background-color: #f5f5f5;
    border: none !important;
    border-radius: 5px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

/* Remove Bootstrap .border utility and any third-party borders on code blocks */
.post-content pre.border,
.post-content pre [class*="border"],
.post-content .border:has(pre),
.post-content pre *,
.post-content div.border {
    border: none !important;
}

[data-theme="dark"] .post-content pre {
    background-color: #1e1e1e;
    border: none !important;
}

[data-theme="dark"] .post-content pre code {
    color: #e8eaed;
}

.post-content code {
    background-color: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #d63384;
    font-size: 0.95rem;
}

.post-content pre code {
    background-color: transparent;
    color: #333;
    padding: 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.post-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6c757d;
}

/* Form styles */
.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--android-green);
    box-shadow: 0 0 0 0.2rem rgba(61, 220, 132, 0.25);
}

/* TinyMCE override */
.tox.tox-tinymce {
    border: 2px solid #e9ecef !important;
    border-radius: 5px !important;
}

.tox.tox-tinymce.tox-fullscreen {
    z-index: 9999 !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 15px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .post-card-body {
        padding: 1rem;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Loading animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.post-card {
    animation: fadeIn 0.6s ease-out;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--android-green);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(61, 220, 132, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    background: var(--android-green-dark);
    box-shadow: 0 6px 20px rgba(61, 220, 132, 0.4);
}

/* Android Material Design Enhancements */

/* Links and interactive elements */
a {
    color: var(--android-blue);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--android-blue-dark);
    text-decoration: none;
}

/* Form enhancements with Android colors - see earlier .form-control:focus declaration */

/* Android-style cards with theme support */
.card {
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--theme-shadow);
    transition: all 0.3s ease;
    background: var(--theme-surface);
}

.card-body {
    color: var(--theme-text);
}

.card-body h1, .card-body h2, .card-body h3, .card-body h4, .card-body h5, .card-body h6 {
    color: var(--theme-text);
    font-weight: 700;
}

.card-body p, .card-body span, .card-body div {
    color: var(--theme-text);
}

.card:hover {
    box-shadow: 0 8px 24px rgba(32, 33, 36, 0.15);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, var(--android-green) 0%, var(--android-blue) 100%);
    border-bottom: none;
    color: white;
    font-weight: 600;
}

/* Android-style badges */
.badge {
    background: var(--android-green);
    color: white;
    font-weight: 500;
    border-radius: 12px;
    padding: 0.4em 0.8em;
}

.badge.bg-primary {
    background: var(--android-blue) !important;
}

.badge.bg-success {
    background: var(--android-green) !important;
}

/* Navigation enhancements */
.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: white;
    transform: translateY(-1px);
}

.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(32, 33, 36, 0.2);
    border-top: 3px solid var(--android-green);
    background-color: #ffffff !important;
    padding: 0.5rem 0;
}

/* Bootstrap override for dropdown items */
.dropdown-menu .dropdown-item {
    color: #212529 !important;
    padding: 0.7rem 1rem !important;
    font-size: 0.95rem;
    line-height: 1.4;
}

.dropdown-item {
    padding: 0.7rem 1rem;
    transition: all 0.2s ease;
    color: #212529 !important;  /* Dark color for better visibility */
    border-radius: 4px;
    margin: 2px 4px;
    font-weight: 500;
    text-decoration: none;
    display: block;
}

.dropdown-item:hover {
    background-color: var(--android-green-light);
    color: #212529 !important;
    padding-left: 1.2rem;
    transform: translateX(2px);
}

.dropdown-item:focus {
    background-color: var(--android-green-light);
    color: #212529 !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(61, 220, 132, 0.3);
}

.dropdown-item:active {
    background-color: var(--android-green);
    color: white !important;
}

/* ============================================
   POST FEATURED IMAGE STYLING
   ============================================ */

/* Featured image at top of post - extends to article edges with rounded top corners */
.post-featured-image {
    width: calc(100% + 4rem); /* Account for article padding */
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px 12px 0 0; /* Rounded top corners only */
    margin: -2rem -2rem 1.5rem -2rem; /* Extend to article edges */
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content padding - consistent padding for article content */
.post-article-content {
    padding: 0; /* No additional padding since article already has padding */
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .post-featured-image {
        width: calc(100% + 2rem); /* Account for mobile article padding */
        margin: -1rem -1rem 1rem -1rem; /* Extend to mobile article edges */
        border-radius: 8px 8px 0 0;
    }

    .post-article-content {
        padding: 0; /* No additional padding */
    }
}

/* =================================
   REMOVE BORDERS IN DARK THEME - POST CARDS
   ================================= */

/* Remove author avatar border in dark theme */
[data-theme="dark"] .author-avatar {
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

/* Remove borders from author sections in post cards - dark theme */
[data-theme="dark"] .post-card .author-section,
[data-theme="dark"] .post-card .author-card,
[data-theme="dark"] .post-card .profile-card {
    border: none !important;
}

/* Remove borders from post meta area in dark theme */
[data-theme="dark"] .post-card .post-meta {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Remove any unwanted borders from author names and info in post cards */
[data-theme="dark"] .post-card .author-name,
[data-theme="dark"] .post-card .author-info,
[data-theme="dark"] .post-card .post-stats {
    border: none !important;
}

/* =================================
   CRITICAL DROPDOWN FIXES
   ================================= */

/* Ensure dropdown items are always visible */
#categoriesDropdown + .dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175) !important;
}

#categoriesDropdown + .dropdown-menu .dropdown-item {
    color: #212529 !important;
    padding: 0.5rem 1rem !important;
    display: block !important;
    width: 100% !important;
    clear: both !important;
    font-weight: 400 !important;
    text-align: inherit !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    background-color: transparent !important;
    border: 0 !important;
}

#categoriesDropdown + .dropdown-menu .dropdown-item:hover,
#categoriesDropdown + .dropdown-menu .dropdown-item:focus {
    color: #1e2125 !important;
    background-color: #e9ecef !important;
    text-decoration: none !important;
}

/* Dark theme dropdown fixes */
[data-theme="dark"] #categoriesDropdown + .dropdown-menu {
    background-color: var(--theme-surface) !important;
    border: 1px solid var(--theme-border) !important;
}

[data-theme="dark"] #categoriesDropdown + .dropdown-menu .dropdown-item {
    color: #e8eaed !important;  /* Light text for dark theme */
}

[data-theme="dark"] #categoriesDropdown + .dropdown-menu .dropdown-item:hover,
[data-theme="dark"] #categoriesDropdown + .dropdown-menu .dropdown-item:focus {
    background-color: rgba(61, 220, 132, 0.1) !important;
    color: var(--android-green) !important;
}

/* =================================
   FINAL DARK THEME DROPDOWN TEXT FIX
   ================================= */

/* Ultimate fix for dark theme dropdown text visibility */
[data-theme="dark"] .dropdown-menu .dropdown-item,
[data-theme="dark"] #categoriesDropdown + .dropdown-menu .dropdown-item,
[data-theme="dark"] .nav-item .dropdown-menu .dropdown-item {
    color: #e8eaed !important;  /* Light text for dark backgrounds */
    opacity: 1 !important;
    visibility: visible !important;
}

/* Dark theme dropdown hover states with proper contrast */
[data-theme="dark"] .dropdown-menu .dropdown-item:hover,
[data-theme="dark"] .dropdown-menu .dropdown-item:focus,
[data-theme="dark"] #categoriesDropdown + .dropdown-menu .dropdown-item:hover,
[data-theme="dark"] #categoriesDropdown + .dropdown-menu .dropdown-item:focus {
    color: var(--android-green) !important;
    background-color: rgba(61, 220, 132, 0.15) !important;
}

/* Ensure icons are visible in dark theme */
[data-theme="dark"] .dropdown-item i {
    color: var(--android-green) !important;
    opacity: 0.8;
}

/* ============================================
   DROPDOWN TEXT COLOR FIX - LIGHT & DARK MODE
   ============================================ */

/* Light mode dropdown items - ensure dark text on light background */
:root:not([data-theme="dark"]) .dropdown-menu .dropdown-item,
:root:not([data-theme="dark"]) .dropdown-menu-modern .dropdown-item,
:root:not([data-theme="dark"]) .dropdown-item-animated {
    color: #2c3e50 !important;
    background-color: transparent;
}

:root:not([data-theme="dark"]) .dropdown-menu .dropdown-item:hover,
:root:not([data-theme="dark"]) .dropdown-menu-modern .dropdown-item:hover,
:root:not([data-theme="dark"]) .dropdown-item-animated:hover {
    color: var(--android-green) !important;
    background: linear-gradient(90deg, rgba(61, 220, 132, 0.1) 0%, transparent 100%);
}

/* Light mode dropdown icons */
:root:not([data-theme="dark"]) .dropdown-item i {
    color: #2c3e50 !important;
    opacity: 0.7;
}

:root:not([data-theme="dark"]) .dropdown-item:hover i {
    color: var(--android-green) !important;
    opacity: 1;
}

/* Dark mode dropdown items - ensure light text on dark background */
[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .dropdown-menu-modern {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text) !important;
}

[data-theme="dark"] .dropdown-menu .dropdown-item,
[data-theme="dark"] .dropdown-menu-modern .dropdown-item,
[data-theme="dark"] .dropdown-item-animated {
    color: #e8eaed !important;
    background-color: transparent;
}

[data-theme="dark"] .dropdown-menu .dropdown-item:hover,
[data-theme="dark"] .dropdown-menu-modern .dropdown-item:hover,
[data-theme="dark"] .dropdown-item-animated:hover {
    color: var(--android-green) !important;
    background: linear-gradient(90deg, rgba(61, 220, 132, 0.15) 0%, transparent 100%);
}

/* Dark mode dropdown icons */
[data-theme="dark"] .dropdown-item i {
    color: #e8eaed !important;
    opacity: 0.7;
}

[data-theme="dark"] .dropdown-item:hover i {
    color: var(--android-green) !important;
    opacity: 1;
}

/* Fix for Bootstrap default dropdown item link colors */
.dropdown-menu > li > a {
    color: inherit !important;
}

/* User dropdown specific fixes */
#userDropdown + .dropdown-menu .dropdown-item {
    font-weight: 500;
}

/* Divider styling for both themes */
:root:not([data-theme="dark"]) .dropdown-divider {
    border-top-color: #e0e0e0 !important;
}

[data-theme="dark"] .dropdown-divider {
    border-top-color: #3c4043 !important;
}

/* ============================================
   CRITICAL DROPDOWN COLOR FIXES - MAXIMUM SPECIFICITY
   ============================================ */

/* Bootstrap dropdown-item overrides for LIGHT MODE */
:root:not([data-theme="dark"]) .dropdown-menu .dropdown-item,
:root:not([data-theme="dark"]) .dropdown-menu a.dropdown-item,
:root:not([data-theme="dark"]) .dropdown-item {
    color: #2c3e50 !important;
    background-color: transparent !important;
}

:root:not([data-theme="dark"]) .dropdown-menu .dropdown-item:hover,
:root:not([data-theme="dark"]) .dropdown-menu .dropdown-item:focus,
:root:not([data-theme="dark"]) .dropdown-menu a.dropdown-item:hover,
:root:not([data-theme="dark"]) .dropdown-menu a.dropdown-item:focus {
    color: var(--android-green) !important;
    background-color: rgba(61, 220, 132, 0.1) !important;
}

/* Bootstrap dropdown-item overrides for DARK MODE */
[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] ul.dropdown-menu {
    background-color: #1e1e1e !important;
    border-color: #3c4043 !important;
}

[data-theme="dark"] .dropdown-menu .dropdown-item,
[data-theme="dark"] .dropdown-menu a.dropdown-item,
[data-theme="dark"] .dropdown-item,
[data-theme="dark"] a.dropdown-item {
    color: #e8eaed !important;
    background-color: transparent !important;
}

[data-theme="dark"] .dropdown-menu .dropdown-item:hover,
[data-theme="dark"] .dropdown-menu .dropdown-item:focus,
[data-theme="dark"] .dropdown-menu a.dropdown-item:hover,
[data-theme="dark"] .dropdown-menu a.dropdown-item:focus,
[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] a.dropdown-item:hover {
    color: var(--android-green) !important;
    background-color: rgba(61, 220, 132, 0.15) !important;
}

/* User dropdown specific - LIGHT MODE */
:root:not([data-theme="dark"]) #userDropdown ~ .dropdown-menu .dropdown-item,
:root:not([data-theme="dark"]) #userDropdown + .dropdown-menu .dropdown-item {
    color: #2c3e50 !important;
}

/* User dropdown specific - DARK MODE */
[data-theme="dark"] #userDropdown ~ .dropdown-menu .dropdown-item,
[data-theme="dark"] #userDropdown + .dropdown-menu .dropdown-item,
[data-theme="dark"] #userDropdown ~ .dropdown-menu a,
[data-theme="dark"] #userDropdown + .dropdown-menu a {
    color: #e8eaed !important;
}

/* Category dropdown specific - DARK MODE */
[data-theme="dark"] #categoriesDropdown ~ .dropdown-menu .dropdown-item,
[data-theme="dark"] #categoriesDropdown + .dropdown-menu .dropdown-item,
[data-theme="dark"] #categoriesDropdown ~ .dropdown-menu a,
[data-theme="dark"] #categoriesDropdown + .dropdown-menu a {
    color: #e8eaed !important;
}

/* ============================================
   ULTRA-SPECIFIC DROPDOWN FIX - NUCLEAR OPTION
   ============================================ */

/* Dark mode - force light text on ALL dropdown items */
html[data-theme="dark"] .dropdown-menu .dropdown-item,
html[data-theme="dark"] .dropdown-menu a.dropdown-item,
html[data-theme="dark"] ul.dropdown-menu li a.dropdown-item,
html[data-theme="dark"] .navbar .dropdown-menu .dropdown-item,
html[data-theme="dark"] .navbar .dropdown-menu a {
    color: #e8eaed !important;
    background-color: transparent !important;
}

html[data-theme="dark"] .dropdown-menu .dropdown-item:hover,
html[data-theme="dark"] .dropdown-menu a.dropdown-item:hover,
html[data-theme="dark"] ul.dropdown-menu li a.dropdown-item:hover {
    color: #3ddc84 !important;
    background-color: rgba(61, 220, 132, 0.15) !important;
}

/* Light mode - force dark text on ALL dropdown items */
html:not([data-theme="dark"]) .dropdown-menu .dropdown-item,
html:not([data-theme="dark"]) .dropdown-menu a.dropdown-item,
html:not([data-theme="dark"]) ul.dropdown-menu li a.dropdown-item,
html:not([data-theme="dark"]) .navbar .dropdown-menu .dropdown-item,
html:not([data-theme="dark"]) .navbar .dropdown-menu a {
    color: #2c3e50 !important;
    background-color: transparent !important;
}

html:not([data-theme="dark"]) .dropdown-menu .dropdown-item:hover,
html:not([data-theme="dark"]) .dropdown-menu a.dropdown-item:hover,
html:not([data-theme="dark"]) ul.dropdown-menu li a.dropdown-item:hover {
    color: #3ddc84 !important;
    background-color: rgba(61, 220, 132, 0.1) !important;
}

/* Specific for dropdown-item-animated class */
html[data-theme="dark"] .dropdown-item-animated {
    color: #e8eaed !important;
}

html:not([data-theme="dark"]) .dropdown-item-animated {
    color: #2c3e50 !important;
}

/* Icons in dropdowns */
html[data-theme="dark"] .dropdown-item i,
html[data-theme="dark"] .dropdown-item-animated i {
    color: #9aa0a6 !important;
}

html[data-theme="dark"] .dropdown-item:hover i,
html[data-theme="dark"] .dropdown-item-animated:hover i {
    color: #3ddc84 !important;
}

/* ============================================
   NUCLEAR OPTION - FORCE DROPDOWN VISIBILITY
   ============================================ */

/* Override EVERYTHING for dark mode dropdowns */
html[data-theme="dark"] .dropdown-menu .dropdown-item,
html[data-theme="dark"] .dropdown-menu .dropdown-item-animated,
html[data-theme="dark"] .dropdown-item,
html[data-theme="dark"] .dropdown-item-animated,
html[data-theme="dark"] a.dropdown-item,
html[data-theme="dark"] a.dropdown-item-animated {
    color: #ffffff !important;  /* Pure white for maximum visibility */
    opacity: 1 !important;
    background-color: transparent !important;
    text-shadow: none !important;
}

html[data-theme="dark"] .dropdown-menu .dropdown-item:hover,
html[data-theme="dark"] .dropdown-menu .dropdown-item-animated:hover,
html[data-theme="dark"] .dropdown-item:hover,
html[data-theme="dark"] a.dropdown-item:hover {
    color: #3ddc84 !important;  /* Bright green on hover */
    background-color: rgba(61, 220, 132, 0.2) !important;
    opacity: 1 !important;
}

/* Force dropdown menu background to be dark */
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .dropdown-menu-modern {
    background-color: #2a2a2a !important;  /* Lighter dark for better contrast */
    border: 1px solid #444 !important;
}

/* Light mode - keep dark text */
html:not([data-theme="dark"]) .dropdown-item,
html:not([data-theme="dark"]) a.dropdown-item {
    color: #1a1a1a !important;  /* Almost black */
    opacity: 1 !important;
}

/* =================================
   SIDEBAR WIDGET SPACING
   ================================= */

/* Modern Sidebar widget containers */
.sidebar-widget {
    background: var(--theme-surface);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.sidebar-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--android-green), var(--android-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-widget:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.sidebar-widget:hover::before {
    opacity: 1;
}

/* Modern Sidebar widget titles */
.sidebar-widget h5 {
    color: var(--theme-text) !important;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
}

.sidebar-widget h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--android-green), var(--android-blue));
    border-radius: 2px;
}

.sidebar-widget h5 i {
    color: var(--android-green);
    font-size: 1.3rem;
    background: rgba(61, 220, 132, 0.1);
    padding: 0.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.sidebar-widget:hover h5 i {
    background: var(--android-green);
    color: white;
    transform: scale(1.1);
}

/* Modern Category list styling */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-list a {
    color: var(--theme-text) !important;
    text-decoration: none;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    background: rgba(61, 220, 132, 0.03);
    border: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.category-list a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--android-green);
    border-radius: 0 4px 4px 0;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.category-list a:hover {
    background: rgba(61, 220, 132, 0.08);
    transform: translateX(8px);
    color: var(--android-green) !important;
    box-shadow: 0 4px 16px rgba(61, 220, 132, 0.15);
}

.category-list a:hover::before {
    transform: scaleY(1);
}

.category-list a i {
    color: var(--android-green);
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* Modern Stats widget list styling */
.sidebar-widget .list-unstyled {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.sidebar-widget .list-unstyled li {
    padding: 1rem 1.2rem;
    border: none;
    background: rgba(61, 220, 132, 0.04);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-widget .list-unstyled li:hover {
    background: rgba(61, 220, 132, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 220, 132, 0.1);
}

/* =================================
   CATEGORY PAGE ENHANCEMENTS
   ================================= */

/* Category overview links with counts */
.category-overview-link {
    color: var(--theme-text) !important;
    text-decoration: none;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    background: rgba(61, 220, 132, 0.05);
    border: 1px solid rgba(61, 220, 132, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.6rem;
    position: relative;
    overflow: hidden;
}

.category-overview-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--android-green);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.category-overview-link:hover {
    background: rgba(61, 220, 132, 0.12);
    border-color: var(--android-green);
    transform: translateX(8px);
    color: var(--android-green) !important;
    box-shadow: 0 4px 12px rgba(61, 220, 132, 0.2);
}

.category-overview-link:hover::before {
    transform: scaleY(1);
}

.category-overview-link i {
    color: var(--android-green);
    width: 18px;
    text-align: center;
    font-size: 0.95rem;
}

.category-name {
    flex: 1;
    font-weight: 500;
    font-size: 0.95rem;
}

.category-count {
    background: var(--android-green);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

/* Category info widget styling */
.category-info {
    color: var(--theme-text);
}

.category-stats {
    margin-bottom: 1.2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--theme-border);
}

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

.stat-item i {
    color: var(--android-green);
    width: 18px;
    text-align: center;
}

.stat-label {
    font-weight: 500;
    color: var(--theme-text-secondary);
    min-width: 60px;
}

.stat-value {
    color: var(--theme-text);
    font-weight: 600;
    background: rgba(61, 220, 132, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.category-description {
    padding: 1rem;
    background: rgba(61, 220, 132, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--android-green);
}

.category-description p {
    margin: 0;
    color: var(--theme-text-secondary);
    font-style: italic;
    line-height: 1.5;
}

/* Dark theme adjustments for category page */
[data-theme="dark"] .category-overview-link {
    background: rgba(61, 220, 132, 0.08) !important;
    border-color: rgba(61, 220, 132, 0.15) !important;
    color: var(--theme-text) !important;
}

[data-theme="dark"] .category-overview-link:hover {
    background: rgba(61, 220, 132, 0.15) !important;
    border-color: var(--android-green) !important;
    color: var(--android-green) !important;
}

[data-theme="dark"] .category-description {
    background: rgba(61, 220, 132, 0.08) !important;
    border-left-color: var(--android-green);
}

[data-theme="dark"] .stat-value {
    background: rgba(61, 220, 132, 0.15) !important;
    color: var(--theme-text) !important;
}

/* Responsive adjustments for category page */
@media (max-width: 768px) {
    .category-overview-link {
        padding: 0.7rem 0.8rem;
        gap: 0.5rem;
    }

    .category-overview-link:hover {
        transform: translateX(4px);
    }

    .category-name {
        font-size: 0.9rem;
    }

    .category-count {
        padding: 0.15rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* =================================
   READ MORE BUTTON IMPROVEMENTS
   ================================= */

/* Read More button styling */
.post-card-body .btn {
    width: auto !important;
    min-width: 120px;
    white-space: nowrap;
    font-size: 0.875rem;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.post-card-body .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

/* Ensure button container doesn't stretch */
.post-card-body .d-flex {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 1rem;
}

/* Category page specific adjustments */
.category-detail .post-card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-detail .post-excerpt {
    flex-grow: 1;
}

/* Dark theme adjustments for sidebar */
[data-theme="dark"] .sidebar-widget {
    background: var(--theme-surface) !important;
    border-color: var(--theme-border) !important;
}

[data-theme="dark"] .category-list a {
    background: rgba(61, 220, 132, 0.08) !important;
    border-color: rgba(61, 220, 132, 0.15) !important;
    color: var(--theme-text) !important;
}

[data-theme="dark"] .category-list a:hover {
    background: rgba(61, 220, 132, 0.15) !important;
    border-color: var(--android-green) !important;
    color: var(--android-green) !important;
}

/* Responsive sidebar adjustments */
@media (max-width: 768px) {
    .sidebar-widget {
        margin-bottom: 1.5rem;
        padding: 1.2rem;
    }

    .category-list {
        gap: 0.6rem;
    }
}

/* =================================
   ANIMATED ANDROID VERSION ICONS - HERO SECTION
   ================================= */

/* Android icons background container */
.android-icons-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
    opacity: 0.1;
}

/* Individual Android version icons */
.android-icon {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(61, 220, 132, 0.2);
    border-radius: 50%;
    border: 2px solid rgba(61, 220, 132, 0.3);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.android-icon i {
    font-size: 2rem;
    color: var(--android-green);
    margin-bottom: 0.25rem;
}

.android-icon .version-label {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--android-green);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Positioning for different icons */
.android-icon-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.android-icon-2 {
    top: 15%;
    right: 8%;
    animation-delay: -2s;
    animation-duration: 7s;
}

.android-icon-3 {
    top: 40%;
    left: 3%;
    animation-delay: -4s;
    animation-duration: 9s;
}

.android-icon-4 {
    top: 60%;
    right: 5%;
    animation-delay: -1s;
    animation-duration: 6s;
}

.android-icon-5 {
    top: 80%;
    left: 15%;
    animation-delay: -3s;
    animation-duration: 8s;
}

.android-icon-6 {
    top: 25%;
    left: 50%;
    animation-delay: -5s;
    animation-duration: 7s;
}

.android-icon-7 {
    top: 70%;
    right: 25%;
    animation-delay: -2.5s;
    animation-duration: 9s;
}

.android-icon-8 {
    top: 45%;
    right: 15%;
    animation-delay: -4.5s;
    animation-duration: 6.5s;
}

/* Floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-3deg);
    }
    75% {
        transform: translateY(-25px) rotate(7deg);
    }
}

/* Hover effect on hero section */
.hero-section:hover .android-icon {
    animation-play-state: paused;
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Dark theme adjustments for Android icons */
[data-theme="dark"] .android-icons-bg {
    opacity: 0.15;
}

[data-theme="dark"] .android-icon {
    background: rgba(61, 220, 132, 0.15);
    border-color: rgba(61, 220, 132, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .android-icon {
        width: 60px;
        height: 60px;
        opacity: 0.8;
    }

    .android-icon i {
        font-size: 1.5rem;
    }

    .android-icon .version-label {
        font-size: 0.65rem;
    }

    /* Hide some icons on mobile for cleaner look */
    .android-icon-6,
    .android-icon-7,
    .android-icon-8,
    .android-icon-9,
    .android-icon-10,
    .android-icon-11,
    .android-icon-12,
    .android-icon-13,
    .android-icon-14,
    .android-icon-15,
    .android-icon-16 {
        display: none;
    }
}

/* Pulse animation for modern versions */
.android-icon[data-version="14"],
.android-icon[data-version="13"] {
    animation: floatPulse 4s ease-in-out infinite;
}

@keyframes floatPulse {
    0%, 100% {
        transform: translateY(0px) scale(1);
        box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.3);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
        box-shadow: 0 0 20px 10px rgba(61, 220, 132, 0.1);
    }
}

/* Ensure hero content stays above icons - see earlier .hero-section .container declaration */

/* Android version tooltip */
.android-version-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--android-green);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(61, 220, 132, 0.4);
    animation: tooltipFadeIn 0.3s ease-out;
    pointer-events: none;
}

.android-version-tooltip small {
    opacity: 0.9;
    font-weight: normal;
    font-size: 0.8rem;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Enhanced Android icon interactions */
.android-icon {
    cursor: pointer;
    user-select: none;
}

.android-icon:hover {
    transform: scale(1.15) !important;
    animation-play-state: paused;
}

/* Different colors for different Android versions */
.android-icon[data-version="14"] {
    background: rgba(61, 220, 132, 0.25);
    border-color: rgba(61, 220, 132, 0.4);
    box-shadow: 0 0 20px rgba(61, 220, 132, 0.3);
}

.android-icon[data-version="13"] {
    background: rgba(66, 133, 244, 0.2);
    border-color: rgba(66, 133, 244, 0.35);
}

.android-icon[data-version="12"] {
    background: rgba(244, 180, 0, 0.2);
    border-color: rgba(244, 180, 0, 0.35);
}

/* =================================
   ABOUT PAGE STYLING
   ================================= */

/* Profile section */
.profile-section {
    background: var(--theme-surface);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px var(--theme-shadow);
    border: 1px solid var(--theme-border);
    position: relative;
    overflow: hidden;
}

.profile-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--android-green) 0%, var(--android-blue) 100%);
}

.profile-image-container {
    position: relative;
    display: inline-block;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--android-green);
    box-shadow: 0 8px 25px rgba(61, 220, 132, 0.3);
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(61, 220, 132, 0.4);
}

.experience-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--android-green);
    border-radius: 20px;
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(61, 220, 132, 0.4);
}

.experience-badge .badge {
    background: white !important;
    color: var(--android-green) !important;
    font-weight: 700;
    font-size: 0.8rem;
}

.profile-section .author-name {
    color: var(--theme-text);
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--android-green), var(--android-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.author-title {
    color: var(--android-blue);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.author-bio {
    color: var(--theme-text);
    line-height: 1.7;
    font-size: 1rem;
}

/* Skills section */
.skills-section h3,
.achievements-section h3,
.experience-section h3,
.mission-section h3 {
    color: var(--theme-text);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--android-green);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skills-section h3 i,
.achievements-section h3 i,
.experience-section h3 i,
.mission-section h3 i {
    color: var(--android-green);
    font-size: 1.2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.skill-item {
    background: rgba(61, 220, 132, 0.05);
    border: 1px solid rgba(61, 220, 132, 0.1);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-item:hover {
    background: rgba(61, 220, 132, 0.1);
    border-color: var(--android-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(61, 220, 132, 0.2);
}

.skill-item i {
    color: var(--android-green);
    font-size: 1.2rem;
}

.skill-item span {
    color: var(--theme-text);
    font-weight: 500;
}

/* Achievements section */
.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.achievement-item {
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    padding: 1rem 1.2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.achievement-item:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 15px var(--theme-shadow);
}

.achievement-item i {
    color: var(--android-green);
    font-size: 1.1rem;
    min-width: 20px;
}

.achievement-item span {
    color: var(--theme-text);
    font-weight: 500;
}

/* Experience section */
.experience-content {
    color: var(--theme-text);
    line-height: 1.7;
}

.journey-highlights {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(61, 220, 132, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--android-green);
}

.journey-highlights h5 {
    color: var(--android-blue);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.journey-highlights p {
    color: var(--theme-text-secondary);
    margin-bottom: 0;
}

/* Mission section */
.mission-content blockquote {
    background: var(--theme-surface);
    border-left: 4px solid var(--android-green);
    padding: 1.5rem;
    border-radius: 0 10px 10px 0;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--theme-text);
    font-size: 1.1rem;
    position: relative;
}

.mission-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 3rem;
    color: var(--android-green);
    opacity: 0.3;
}

/* Sidebar styling for about page */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(61, 220, 132, 0.05);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.contact-item:hover {
    background: rgba(61, 220, 132, 0.1);
    transform: translateX(5px);
}

.contact-item i {
    color: var(--android-green);
    width: 20px;
    text-align: center;
}

.contact-item span {
    color: var(--theme-text);
    font-weight: 500;
}

/* Fun facts */
.fun-facts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.fact-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, var(--android-green) 0%, var(--android-blue) 100%);
    border-radius: 12px;
    color: white;
    transition: all 0.3s ease;
}

.fact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(61, 220, 132, 0.3);
}

.fact-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.fact-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* =================================
   PROJECTS SECTION STYLING
   ================================= */

/* Projects grid layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Individual project cards */
.project-card {
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--android-green), var(--android-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--theme-shadow);
}

.project-card:hover::before {
    transform: scaleX(1);
}

/* Project header */
.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-icon {
    background: linear-gradient(45deg, var(--android-green), var(--android-blue));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(61, 220, 132, 0.3);
}

.project-header h5 {
    color: var(--theme-text);
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Project description */
.project-description {
    color: var(--theme-text-secondary);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

/* Technology tags */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(61, 220, 132, 0.1);
    color: var(--android-green);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(61, 220, 132, 0.2);
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: var(--android-green);
    color: white;
    transform: translateY(-1px);
}

/* Project statistics */
.project-stats {
    background: linear-gradient(135deg, rgba(61, 220, 132, 0.05), rgba(66, 133, 244, 0.05));
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(61, 220, 132, 0.1);
}

.stat-box {
    padding: 1rem;
}

.stat-box h4 {
    color: var(--android-green);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(61, 220, 132, 0.2);
}

.stat-box p {
    color: var(--theme-text-secondary);
    margin: 0;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Dark theme adjustments for projects */
[data-theme="dark"] .project-card {
    background: var(--theme-surface) !important;
    border-color: var(--theme-border) !important;
}

[data-theme="dark"] .project-description {
    color: var(--theme-text-secondary) !important;
}

[data-theme="dark"] .tech-tag {
    background: rgba(61, 220, 132, 0.15) !important;
    border-color: rgba(61, 220, 132, 0.25) !important;
    color: var(--android-green) !important;
}

[data-theme="dark"] .project-stats {
    background: linear-gradient(135deg, rgba(61, 220, 132, 0.08), rgba(66, 133, 244, 0.08)) !important;
    border-color: rgba(61, 220, 132, 0.15) !important;
}

[data-theme="dark"] .stat-box h4 {
    color: var(--android-green) !important;
}

[data-theme="dark"] .stat-box p {
    color: var(--theme-text-secondary) !important;
}

/* Responsive adjustments for projects */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-card {
        padding: 1.2rem;
    }

    .project-header {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .project-stats {
        padding: 1.5rem;
    }

    .stat-box h4 {
        font-size: 1.5rem;
    }
}

/* =================================
   THEME TOGGLE BUTTON
   ================================= */

.theme-toggle {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: var(--android-green);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(61, 220, 132, 0.3);
    transition: all 0.3s ease;
    z-index: 1001;
    cursor: pointer;
}

.theme-toggle:hover {
    background: var(--android-green-dark);
    box-shadow: 0 6px 20px rgba(61, 220, 132, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.theme-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.3);
}

/* Dark theme specific styling for theme toggle */
[data-theme="dark"] .theme-toggle {
    background: var(--android-blue);
    box-shadow: 0 4px 16px rgba(66, 133, 244, 0.3);
}

[data-theme="dark"] .theme-toggle:hover {
    background: var(--android-blue-dark);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

/* =================================
   DARK THEME ADJUSTMENTS FOR MAJOR COMPONENTS
   ================================= */

/* Additional dark theme navbar enhancements */
[data-theme="dark"] .navbar {
    border-bottom: 2px solid var(--android-green);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

/* Dark theme hero section */
[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 50%, var(--android-green) 100%);
}

/* Dark theme post cards */
[data-theme="dark"] .post-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Dark theme general cards */
[data-theme="dark"] .card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Dark theme form elements */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: var(--theme-surface);
    border-color: var(--theme-border);
    color: var(--theme-text);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: var(--theme-surface);
    border-color: var(--android-green);
    color: var(--theme-text);
    box-shadow: 0 0 0 0.2rem rgba(61, 220, 132, 0.25);
}

/* Dark theme dropdowns */
[data-theme="dark"] .dropdown-menu {
    background-color: var(--theme-surface);
    border-color: var(--theme-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--theme-border);
}

[data-theme="dark"] .dropdown-item {
    color: #e8eaed !important;
    transition: all 0.2s ease;
}

[data-theme="dark"] .dropdown-item:hover {
    background-color: rgba(61, 220, 132, 0.1);
    color: var(--android-green);
    padding-left: 1.2rem;
    transform: translateX(2px);
}

[data-theme="dark"] .dropdown-item:focus {
    background-color: rgba(61, 220, 132, 0.15);
    color: var(--android-green);
    outline: none;
}

/* Dark theme text fixes */
[data-theme="dark"] .text-muted {
    color: #9aa0a6 !important;
    opacity: 1 !important;
}

[data-theme="dark"] .sidebar-widget p.text-muted {
    color: #9aa0a6 !important;
    opacity: 1 !important;
}

[data-theme="dark"] .sidebar-widget .text-muted {
    color: #9aa0a6 !important;
}

/* =================================
   FEATURED PAGE BUTTON FIXES
   ================================= */

/* Featured page specific button styling */
.featured-page .post-card-body .btn,
.featured-posts .post-card-body .btn {
    width: auto !important;
    max-width: fit-content !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

/* Featured page button container */
.featured-page .post-card-body .d-flex,
.featured-posts .post-card-body .d-flex {
    width: auto !important;
    flex-shrink: 0 !important;
}

/* =================================
   LIGHT THEME VISIBILITY IMPROVEMENTS
   ================================= */

/* Light theme sidebar improvements */
:root:not([data-theme="dark"]) .sidebar-widget {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

:root:not([data-theme="dark"]) .sidebar-widget:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Light theme category list improvements */
:root:not([data-theme="dark"]) .category-list a {
    background: #f8f9fa;
    color: #2c3e50 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

:root:not([data-theme="dark"]) .category-list a:hover {
    background: #e8f5e8;
    box-shadow: 0 3px 12px rgba(61, 220, 132, 0.2);
}

/* Light theme stats improvements */
:root:not([data-theme="dark"]) .sidebar-widget .list-unstyled li {
    background: #f8f9fa;
    color: #2c3e50;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

:root:not([data-theme="dark"]) .sidebar-widget .list-unstyled li:hover {
    background: #e8f5e8;
    border-color: rgba(61, 220, 132, 0.2);
}

/* Light theme text improvements */
:root:not([data-theme="dark"]) .sidebar-widget h5 {
    color: #2c3e50 !important;
}

:root:not([data-theme="dark"]) .sidebar-widget p,
:root:not([data-theme="dark"]) .sidebar-widget span,
:root:not([data-theme="dark"]) .sidebar-widget li {
    color: #2c3e50 !important;
}

/* Remove excessive shadows in light theme */
:root:not([data-theme="dark"]) .post-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

:root:not([data-theme="dark"]) .post-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

:root:not([data-theme="dark"]) .card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

:root:not([data-theme="dark"]) .card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* Navbar dropdown button styling */
.navbar .dropdown-toggle {
    color: var(--theme-text) !important;
    border: none;
    background: transparent;
    transition: color 0.3s ease;
}

.navbar .dropdown-toggle:hover,
.navbar .dropdown-toggle:focus {
    color: var(--android-green) !important;
    background: transparent;
    box-shadow: none;
}

.navbar .dropdown-toggle::after {
    border-top-color: var(--theme-text);
    transition: border-color 0.3s ease;
}

.navbar .dropdown-toggle:hover::after {
    border-top-color: var(--android-green);
}

/* Navbar button styling for theme support */
.navbar .btn {
    color: var(--theme-text) !important;
    border-color: var(--theme-border);
    transition: all 0.3s ease;
}

.navbar .btn:hover {
    color: var(--android-green) !important;
    border-color: var(--android-green);
    background: rgba(61, 220, 132, 0.1);
}

/* Dark theme navbar text enhancements */
[data-theme="dark"] .navbar-nav .nav-link {
    color: #e8eaed !important;
}

[data-theme="dark"] .navbar-brand {
    color: #e8eaed !important;
}

[data-theme="dark"] .navbar .dropdown-toggle {
    color: #e8eaed !important;
}

[data-theme="dark"] .navbar .btn {
    color: #e8eaed !important;
    border-color: var(--theme-border);
}

/* Light theme navbar text enhancements */
:root:not([data-theme="dark"]) .navbar-nav .nav-link {
    color: #2c3e50 !important;
}

:root:not([data-theme="dark"]) .navbar-brand {
    color: #2c3e50 !important;
}

:root:not([data-theme="dark"]) .navbar .dropdown-toggle {
    color: #2c3e50 !important;
}

:root:not([data-theme="dark"]) .navbar .btn {
    color: #2c3e50 !important;
}

/* ============================================
   MODERN NAVIGATION ANIMATIONS & ENHANCEMENTS
   ============================================ */

/* Animated nav links with smooth hover effects */
.nav-link-animated {
    position: relative;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.nav-link-animated::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--android-green);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-link-animated:hover::before,
.nav-link-animated.active::before {
    width: 80%;
}

.nav-link-animated:hover {
    transform: translateY(-2px);
}

/* Modern dropdown menu styling */
.dropdown-menu-modern {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    animation: dropdownFadeIn 0.3s ease;
}

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

.dropdown-item-animated {
    padding: 0.6rem 1.5rem;
    transition: all 0.2s ease;
    color: var(--theme-text) !important;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.dropdown-item-animated:hover {
    background: linear-gradient(90deg, rgba(61, 220, 132, 0.1) 0%, transparent 100%);
    border-left-color: var(--android-green);
    padding-left: 1.8rem;
    color: var(--android-green) !important;
}

/* Sign Up button special styling */
.nav-btn-register {
    margin-left: 0.5rem;
    padding: 0.5rem 1.5rem !important;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--android-green) 0%, var(--android-green-dark) 100%);
    border: none;
    color: white !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(61, 220, 132, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulseGlow 2s infinite;
}

.nav-btn-register:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(61, 220, 132, 0.5);
    background: linear-gradient(135deg, var(--android-green-dark) 0%, var(--android-green) 100%);
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(61, 220, 132, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(61, 220, 132, 0.5);
    }
}

/* User dropdown enhancements */
#userDropdown {
    background: rgba(61, 220, 132, 0.1);
    border-radius: 20px;
    padding: 0.4rem 1rem !important;
    font-weight: 600;
}

#userDropdown:hover {
    background: rgba(61, 220, 132, 0.2);
}

/* Footer link animations */
.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-link-hover {
    position: relative;
    display: inline-block;
    padding-left: 0;
    transition: all 0.3s ease;
}

.footer-link-hover i {
    margin-right: 0.75rem;
    transition: all 0.3s ease;
    color: var(--android-green);
    font-size: 0.9rem;
}

.footer-link-hover:hover {
    padding-left: 0.5rem;
    color: var(--android-green) !important;
    transform: translateX(5px);
}

.footer-link-hover:hover i {
    color: var(--android-green);
    transform: scale(1.2);
}

/* Navbar scroll effect */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px var(--theme-shadow);
}

/* Mobile responsive adjustments */
@media (max-width: 991px) {
    .nav-btn-register {
        margin: 0.5rem 0;
        display: block;
        text-align: center;
    }

    .nav-link-animated {
        border-left: 3px solid transparent;
    }

    .nav-link-animated:hover {
        border-left-color: var(--android-green);
        transform: translateX(5px);
    }

    .nav-link-animated::before {
        display: none;
    }

    #userDropdown {
        border-radius: 8px;
        margin: 0.25rem 0;
    }
}

/* Smooth theme transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Improve navbar brand logo animation */
.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05) rotate(2deg);
}

/* Dropdown menu item divider styling */
.dropdown-divider {
    border-color: var(--theme-border);
    margin: 0.5rem 0;
}

/* ============================================
   EMPTY STATE / ALERT BOX DARK MODE FIX
   ============================================ */

/* Fix alert-info visibility in dark mode - MAXIMUM CONTRAST */
[data-theme="dark"] .alert-info,
[data-theme="dark"] .alert.alert-info,
html[data-theme="dark"] .alert-info,
html[data-theme="dark"] .alert.alert-info {
    background-color: rgba(61, 220, 132, 0.2) !important;
    border: 2px solid rgba(61, 220, 132, 0.5) !important;
    color: #ffffff !important;
    padding: 2rem !important;
}

[data-theme="dark"] .alert-info i,
[data-theme="dark"] .alert-info .fas,
html[data-theme="dark"] .alert-info i,
html[data-theme="dark"] .alert-info .fas {
    color: #3ddc84 !important;
    opacity: 1 !important;
}

[data-theme="dark"] .alert-info p,
html[data-theme="dark"] .alert-info p {
    color: #ffffff !important;
    margin-top: 1rem !important;
}

/* Light mode - ensure good contrast */
html:not([data-theme="dark"]) .alert-info,
[data-theme="light"] .alert-info {
    background-color: #d1ecf1 !important;
    border: 1px solid #bee5eb !important;
    color: #0c5460 !important;
}

/* Fix alert-danger visibility in dark mode */
[data-theme="dark"] .alert-danger,
[data-theme="dark"] .alert.alert-danger,
html[data-theme="dark"] .alert-danger,
html[data-theme="dark"] .alert.alert-danger,
html[data-theme="dark"] .card .alert-danger,
html[data-theme="dark"] .card-body .alert-danger {
    background-color: rgba(220, 53, 69, 0.3) !important;
    border: 2px solid rgba(220, 53, 69, 0.8) !important;
    color: #ffffff !important;
    padding: 1rem !important;
}

[data-theme="dark"] .alert-danger *,
[data-theme="dark"] div.alert-danger *,
body[data-theme="dark"] .alert-danger *,
body[data-theme="dark"] div.alert-danger * {
    color: #ffffff !important;
}

/* ============================================
   FORM INPUT PLACEHOLDER / HINT TEXT STYLING
   ============================================ */

/* Dark mode - placeholder/hint text visibility */
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder,
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
}

[data-theme="dark"] input::-webkit-input-placeholder,
[data-theme="dark"] textarea::-webkit-input-placeholder,
html[data-theme="dark"] input::-webkit-input-placeholder,
html[data-theme="dark"] textarea::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
}

[data-theme="dark"] input::-moz-placeholder,
[data-theme="dark"] textarea::-moz-placeholder,
html[data-theme="dark"] input::-moz-placeholder,
html[data-theme="dark"] textarea::-moz-placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
}

[data-theme="dark"] input:-ms-input-placeholder,
[data-theme="dark"] textarea:-ms-input-placeholder,
html[data-theme="dark"] input:-ms-input-placeholder,
html[data-theme="dark"] textarea:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
}

/* Light mode - placeholder/hint text */
html:not([data-theme="dark"]) input::placeholder,
html:not([data-theme="dark"]) textarea::placeholder,
[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
    color: rgba(0, 0, 0, 0.4) !important;
    opacity: 1 !important;
}

html:not([data-theme="dark"]) input::-webkit-input-placeholder,
html:not([data-theme="dark"]) textarea::-webkit-input-placeholder {
    color: rgba(0, 0, 0, 0.4) !important;
    opacity: 1 !important;
}

html:not([data-theme="dark"]) input::-moz-placeholder,
html:not([data-theme="dark"]) textarea::-moz-placeholder {
    color: rgba(0, 0, 0, 0.4) !important;
    opacity: 1 !important;
}

/* Dark mode - input field text color */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select,
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
    color: #ffffff !important;
}

/* Dark mode - form labels */
[data-theme="dark"] .form-label,
[data-theme="dark"] label,
html[data-theme="dark"] .form-label,
html[data-theme="dark"] label {
    color: var(--theme-text) !important;
}

/* Bold text styling for better visibility */
strong, b, .bold {
    font-weight: 700 !important;
    color: var(--theme-text) !important;
}

[data-theme="dark"] strong,
[data-theme="dark"] b,
[data-theme="dark"] .bold,
html[data-theme="dark"] strong,
html[data-theme="dark"] b,
html[data-theme="dark"] .bold {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.3);
}

/* TinyMCE editor styling in both themes */
.tox .tox-edit-area__iframe {
    background-color: #fff !important;
}

[data-theme="dark"] .tox .tox-edit-area__iframe {
    background-color: #2d2d2d !important;
}

/* Ensure TinyMCE content has proper contrast */
.mce-content-body strong,
.mce-content-body b {
    font-weight: 700 !important;
    color: var(--theme-text, #000);
}

.mce-content-body code {
    background-color: #f5f5f5 !important;
    color: #d63384 !important;
    padding: 0.2rem 0.4rem !important;
    border-radius: 3px !important;
    font-family: 'Courier New', monospace !important;
    font-size: 0.95rem !important;
}

.mce-content-body pre {
    background-color: #f8f9fa !important;
    padding: 1rem !important;
    border-radius: 5px !important;
    overflow: auto !important;
}

.mce-content-body pre code {
    background-color: transparent !important;
    color: #333 !important;
    padding: 0 !important;
}

[data-theme="dark"] .mce-content-body strong,
[data-theme="dark"] .mce-content-body b {
    color: #fff !important;
    font-weight: 700 !important;
}

[data-theme="dark"] .mce-content-body code {
    background-color: #2d2d2d !important;
    color: #a8f5c8 !important;
    font-weight: 500 !important;
}

[data-theme="dark"] .mce-content-body pre {
    background-color: #1a1a1a !important;
    border: 1px solid #3c4043 !important;
    color: #e8eaed !important;
}

[data-theme="dark"] .mce-content-body pre code {
    background-color: transparent !important;
    color: #e8eaed !important;
}

/* ============================================
   POST DETAIL PAGE - CLEAN FINAL VERSION
   ============================================ */

/* Dark Mode Post Container */
[data-theme="dark"] .post-article {
    background: var(--theme-surface);
    border-radius: 12px;
    border: 1px solid var(--theme-border);
    box-shadow: 0 4px 12px var(--theme-shadow);
    padding: 2rem;
}

/* Featured image flush to top */
.post-featured-image {
    width: calc(100% + 4rem);
    margin: -2rem -2rem 1.5rem -2rem;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Remove background from inner content */
/* (See earlier .post-content declaration for base styles) */

/* Light mode text */
:root:not([data-theme="dark"]) .post-content p,
:root:not([data-theme="dark"]) .post-content li,
:root:not([data-theme="dark"]) .post-content span {
    color: #333;
}

/* Dark mode text */
[data-theme="dark"] .post-content p,
[data-theme="dark"] .post-content li,
[data-theme="dark"] .post-content span {
    color: var(--theme-text);
}

/* Sidebar polish */
.sidebar-widget {
    padding: 1.8rem;
    border-radius: 14px;
}

.post-content p,
.post-content div,
.post-content span,
.post-content li {
    color: var(--theme-text) !important;
}

.post-content strong,
.post-content b {
    color: var(--theme-text) !important;
}

.post-content em,
.post-content i {
    color: var(--theme-text-secondary) !important;
}

:root:not([data-theme="dark"]) .post-article {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-radius: 12px;
    border: 1px solid var(--theme-border);
    box-shadow: 0 4px 12px var(--theme-shadow);
    padding: 2rem;
}

/* FORCE OVERRIDE: This will beat the injected internal styles */
:root:not([data-theme="dark"]) body article.post-article.mb-5 {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid var(--theme-border) !important;
    box-shadow: 0 4px 12px var(--theme-shadow) !important;
    border-radius: 12px !important;
    padding: 2rem !important;
}