/* Blog.css file */
/* ==============================================
   HOMEPAGE BLOG SECTION - CSS STYLES
   Add this to your homepage.css file
   ============================================== */
.blog-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: none; /* Remove backdrop filter when collapsed */
    border: none; /* Remove border when collapsed */
    box-shadow: none; /* Remove shadow when collapsed */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-height: 80vh;
    overflow: hidden;
    border-radius: 0; /* No border radius when collapsed */
    background: transparent; /* Transparent background when collapsed */
}

/* Collapsed state - transparent with minimal visibility */
.blog-section.collapsed {
    transform: translateY(calc(100% - 50px)); /* Only show 50px of header */
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Expanded state - full visibility with glassmorphism */
.blog-section.expanded {
    transform: translateY(0);
    background: var(--container-bg, rgba(0, 0, 0, 0.7)) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    border-top: 1px solid var(--glass-border, rgba(255, 255, 255, 0.15)) !important;
    box-shadow: var(--glass-shadow, 0 -8px 32px rgba(0, 0, 0, 0.12)) !important;
    border-radius: 16px 16px 0 0 !important;
}

/* Blog Toggle Header - Adaptive styling */
.blog-toggle-header {
    display: flex;
    align-items: center;
    justify-content: center; /* Center content when collapsed */
    padding: 12px 24px;
    background: transparent; /* Transparent when collapsed */
    border-bottom: none; /* No border when collapsed */
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
    overflow: hidden;
    min-height: 50px; /* Minimum height for collapsed state */
}
/* Header styling when expanded */
.blog-section.expanded .blog-toggle-header {
    justify-content: space-between; /* Space between when expanded */
    background: rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1)) !important;
    padding: 16px 24px;
}


.blog-toggle-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.blog-toggle-header:hover::before {
    left: 100%;
}

.blog-toggle-header:hover {
    background: rgba(255, 255, 255, 0.08);
    border-bottom-color: var(--accent-color, #4285f4);
}

.blog-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0; /* Hidden when collapsed */
    transform: scale(0.8);
    transition: all 0.3s ease;
}
/* Show content when expanded */
.blog-section.expanded .blog-header-content {
    opacity: 1;
    transform: scale(1);
}

.blog-icon {
    color: var(--accent-color, #4285f4);
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(66, 133, 244, 0.3));
    opacity: 0; /* Hidden when collapsed */
}
.blog-section.expanded .blog-icon {
    opacity: 1; /* Visible when expanded */
}

.blog-toggle-header:hover .blog-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(66, 133, 244, 0.5));
}

.blog-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
    margin: 0;
    background: linear-gradient(135deg, var(--text-primary, #ffffff), var(--accent-color, #4285f4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0; /* Hidden when collapsed */
    transition: all 0.3s ease;
}
.blog-section.expanded .blog-title {
    opacity: 1; /* Visible when expanded */
}

.blog-subtitle {
    font-size: 12px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.8));
    margin-left: 8px;
    padding: 2px 8px;
    background: rgba(66, 133, 244, 0.2);
    border-radius: 12px;
    font-weight: 500;
    opacity: 0; /* Hidden when collapsed */
    transition: all 0.3s ease;
}

.blog-toggle-arrow {
    color: rgba(255, 255, 255, 0.6); /* Subtle when collapsed */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 20px;
    font-weight: bold;
    position: absolute; /* Position absolutely when collapsed */
    left: 50%;
    transform: translateX(-50%);
}

.blog-section.expanded .blog-subtitle {
    opacity: 1; /* Visible when expanded */
}

.blog-section.expanded .blog-toggle-arrow {
    color: var(--accent-color, #4285f4);
    position: relative; /* Back to normal positioning */
    left: auto;
    transform: rotate(180deg) translateX(0); /* Rotate when expanded */
}

.blog-section.collapsed .blog-toggle-arrow {
    transform: translateX(-50%) rotate(0deg); /* Point down when collapsed */
}

.blog-section.expanded .blog-toggle-header:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-bottom-color: var(--accent-color, #4285f4);
}

.blog-section.expanded .blog-toggle-header:hover .blog-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(66, 133, 244, 0.5));
}
.blog-section.collapsed .blog-toggle-header:hover .blog-toggle-arrow {
    color: rgba(255, 255, 255, 0.8);
    transform: translateX(-50%) scale(1.1);
}
/* Blog Content Container */
.blog-content {
    height: calc(80vh - 60px);
    overflow-y: auto;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.blog-section.expanded .blog-content {
    opacity: 1;
}

.blog-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), transparent);
    pointer-events: none;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Blog Post Card */
.blog-post-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    transform-origin: center;
}

.blog-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.blog-post-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent-color, #4285f4), #00d4ff, var(--accent-color, #4285f4));
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.blog-post-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(66, 133, 244, 0.2);
    border-color: var(--accent-color, #4285f4);
    background: rgba(255, 255, 255, 0.12);
}

.blog-post-card:hover::after {
    opacity: 1;
    animation: gradientPulse 2s ease-in-out infinite;
}

@keyframes gradientPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Featured Image */
.blog-post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.9) contrast(1.1);
}

.blog-post-card:hover .blog-post-image {
    transform: scale(1.08);
    filter: brightness(1) contrast(1.2);
}

/* Post Content */
.blog-post-content {
    padding: 20px;
    position: relative;
}

.blog-post-category {
    background: linear-gradient(135deg, var(--accent-color, #4285f4), #00d4ff);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-block;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
    position: relative;
    overflow: hidden;
}

.blog-post-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.blog-post-card:hover .blog-post-category::before {
    left: 100%;
}

.blog-post-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.blog-post-card:hover .blog-post-title {
    color: var(--accent-color, #4285f4);
    text-shadow: 0 0 8px rgba(66, 133, 244, 0.3);
}

.blog-post-excerpt {
    font-size: 14px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.8));
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-post-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.blog-post-date svg {
    opacity: 0.7;
}

.blog-post-read-more {
    color: var(--accent-color, #4285f4);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.blog-post-read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(66, 133, 244, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

.blog-post-read-more:hover {
    color: white;
    background: var(--accent-color, #4285f4);
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

.blog-post-read-more:hover::before {
    left: 0;
}

/* Loading State */
.blog-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.8));
    font-weight: 500;
}

.blog-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--accent-color, #4285f4);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
    filter: drop-shadow(0 0 8px rgba(66, 133, 244, 0.3));
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scrollbar Styling */
.blog-content::-webkit-scrollbar {
    width: 8px;
}

.blog-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.blog-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-color, #4285f4), #00d4ff);
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(66, 133, 244, 0.3);
}

.blog-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00d4ff, var(--accent-color, #4285f4));
    box-shadow: 0 0 12px rgba(66, 133, 244, 0.5);
}

/* Error and Empty States */
.blog-error-state,
.blog-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.8));
}

.blog-error-state svg,
.blog-empty-state svg {
    margin-bottom: 20px;
    opacity: 0.5;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.1));
}

.blog-error-state button,
.blog-empty-state a {
    margin-top: 20px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent-color, #4285f4), #00d4ff);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(66, 133, 244, 0.3);
}

.blog-error-state button:hover,
.blog-empty-state a:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(66, 133, 244, 0.4);
}

/* Theme Variations */

/* Light Theme */
[data-theme="light"] .blog-section {
    background: rgba(255, 255, 255, 0.85);
    border-top-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .blog-toggle-header {
    background: rgba(0, 0, 0, 0.03);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .blog-toggle-header:hover {
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .blog-post-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .blog-post-card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .blog-title,
[data-theme="light"] .blog-post-title {
    color: #333333;
    background: linear-gradient(135deg, #333333, var(--accent-color, #4285f4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .blog-subtitle,
[data-theme="light"] .blog-post-excerpt,
[data-theme="light"] .blog-post-meta {
    color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .blog-content {
    background: rgba(0, 0, 0, 0.02);
}

/* Yellow Theme */
[data-theme="yellow"] .blog-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.6), rgba(255, 193, 7, 0.5));
    border-top-color: rgba(255, 235, 59, 0.8);
    box-shadow: 0 -8px 32px rgba(255, 193, 7, 0.2);
}

[data-theme="yellow"] .blog-post-card {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 235, 59, 0.5);
}

[data-theme="yellow"] .blog-post-card:hover {
    background: rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 193, 7, 0.8);
}

[data-theme="yellow"] .blog-post-category {
    background: linear-gradient(135deg, #ffb300, #ffc107);
}

/* Purple Theme */
[data-theme="purple"] .blog-section {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.6), rgba(123, 31, 162, 0.5));
    border-top-color: rgba(186, 104, 200, 0.8);
}

[data-theme="purple"] .blog-post-card {
    background: rgba(156, 39, 176, 0.15);
    border-color: rgba(186, 104, 200, 0.4);
}

[data-theme="purple"] .blog-icon,
[data-theme="purple"] .blog-toggle-arrow,
[data-theme="purple"] .blog-post-read-more {
    color: #ba68c8;
}

[data-theme="purple"] .blog-post-category {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
}



/* photo attribution right start */


.persistent-attribution {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 320px !important; /* Wider for description */
    max-width: 90vw !important;
    background: rgba(0, 0, 0, 0.9) !important;
    color: white !important;
    border-radius: 12px !important;
    opacity: 0 !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    z-index: 10000 !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    transform: translateY(20px) scale(0.95) !important;
    overflow: hidden !important;
}
/* Shine effect */
.persistent-attribution::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
}
/* FIXED: Show immediately and stay visible for 10 seconds */
.persistent-attribution.show {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}
@keyframes showLonger {
    0% { opacity: 0; transform: translateY(20px); }
    8% { opacity: 1; transform: translateY(0); } /* Show quickly */
    85% { opacity: 1; transform: translateY(0); } /* Stay visible longer */
    100% { opacity: 0; transform: translateY(20px); } /* Fade out */
}
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(20px); }
    12.5% { opacity: 1; transform: translateY(0); } /* Show for ~1 second */
    87.5% { opacity: 1; transform: translateY(0); } /* Keep visible for ~6 seconds */
    100% { opacity: 0; transform: translateY(20px); } /* Fade out */
}


/* FIXED: Attribution content layout */
.attribution-content {
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.attribution-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 12px !important;
}
.attribution-text {
    font-size: 12px !important;
    line-height: 1.4 !important;
    color: #ffffff !important;
    flex: 1 !important;
}

.attribution-text a {
    color: #17c0ff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
}

.attribution-text a:hover {
    color: #4dd0ff !important;
    text-decoration: underline !important;
}
/* Actions section */
.attribution-actions {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 4px !important;
}

.attribution-link {
    color: #17c0ff !important;
    text-decoration: none !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    padding: 6px 12px !important;
    background: rgba(23, 192, 255, 0.1) !important;
    border: 1px solid rgba(23, 192, 255, 0.3) !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}

.attribution-link:hover {
    background: rgba(23, 192, 255, 0.2) !important;
    border-color: #17c0ff !important;
    transform: translateY(-1px) !important;
    color: #4dd0ff !important;
}
.attribution-close {
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.8) !important;
    cursor: pointer !important;
    font-size: 18px !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}
.attribution-close:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    transform: scale(1.1) !important;
}
/* Description section */
.attribution-description {
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.4 !important;
    font-style: italic !important;
    background: rgba(255, 255, 255, 0.05) !important;
    padding: 8px 10px !important;
    border-radius: 6px !important;
    border-left: 3px solid #17c0ff !important;
    margin: 0 !important;
}

/* photo attribution right close */
/* Mobile Responsive Design */
@media (max-width: 768px) {
     .attribution-content {
        padding: 14px !important;
        gap: 10px !important;
    }
    .attribution-text {
        font-size: 11px !important;
    }
    .attribution-description {
        font-size: 10px !important;
        padding: 6px 8px !important;
    }
    
    .attribution-link {
        font-size: 10px !important;
        padding: 5px 10px !important;
    }
    
    .persistent-attribution {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
        font-size: 11px;
        padding: 10px 12px;
    }
    
    .photo-attribution {
        font-size: 8px !important;
    }
    
    .photo-description {
        font-size: 7px !important;
    }
    .blog-section {
        max-height: 85vh;
        border-radius: 20px 20px 0 0;
    }

    .blog-toggle-header {
        padding: 14px 18px;
    }

    .blog-title {
        font-size: 16px;
    }

    .blog-content {
        padding: 16px 18px;
        height: calc(85vh - 56px);
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog-post-image {
        height: 160px;
    }

    .blog-post-content {
        padding: 16px;
    }

    .blog-post-title {
        font-size: 16px;
    }

    .blog-post-excerpt {
        font-size: 13px;
    }
    body.homepage-template .combined-widget {
        padding: 8px 12px !important;
        min-width: auto !important;
        gap: 8px !important;
    }
    
    .combined-weather-side,
    .combined-time-side {
        min-height: 35px !important;
    }
    
    .combined-weather-icon {
        font-size: 14px !important;
    }
    
    body.homepage-template .combined-temp {
        font-size: 16px !important;
    }
    
    body.homepage-template .combined-time {
        font-size: 16px !important;
    }
    
    .combined-date {
        font-size: 11px !important;
    }
    
    body.homepage-template .combined-separator {
        font-size: 14px !important;
        margin: 0 6px !important;
    }
    #backgroundsPhotosGrid.backgrounds-subcategories-grid {
        grid-template-columns: 1fr !important; /* Single column on mobile */
        gap: 12px !important;
        padding: 12px !important;
    }
    
    .subcategory-card {
        min-height: 100px !important;
        max-height: 100px !important;
    }
    
    .subcategory-image {
        height: 70px !important;
    }
    
    .subcategory-overlay {
        height: 30px !important;
        padding: 8px 6px 4px !important;
    }
    
    .subcategory-title {
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    
    .attribution-content {
        padding: 12px !important;
        gap: 8px !important;
    }
    
    .attribution-text {
        font-size: 10px !important;
    }
     .attribution-description {
        font-size: 9px !important;
        padding: 5px 7px !important;
    }
    
    .attribution-link {
        font-size: 9px !important;
        padding: 4px 8px !important;
    }
    
    .attribution-close {
        width: 20px !important;
        height: 20px !important;
        font-size: 16px !important;
    }
    
    .persistent-attribution {
        font-size: 10px;
        padding: 8px 10px;
    }
    
    .photo-attribution {
        font-size: 7px !important;
    }
    
    .photo-description {
        font-size: 6px !important;
        -webkit-line-clamp: 1 !important; /* Always 1 line on mobile */
    }
    
    .blog-section {
        max-height: 90vh;
    }

    .blog-title {
        font-size: 15px;
    }

    .blog-subtitle {
        display: none;
    }

    .blog-content {
        padding: 12px 16px;
        height: calc(90vh - 48px);
    }

    .blog-post-image {
        height: 140px;
    }

    .blog-post-content {
        padding: 14px;
    }

    .blog-post-title {
        font-size: 15px;
    }

    .blog-post-excerpt {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .blog-post-meta {
        font-size: 11px;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    body.homepage-template .combined-widget {
        padding: 6px 10px !important;
        gap: 6px !important;
    }
    
    .combined-weather-side,
    .combined-time-side {
        min-height: 30px !important;
    }
    
    .combined-weather-icon {
        font-size: 12px !important;
    }
    
    body.homepage-template .combined-temp {
        font-size: 14px !important;
    }
    
    body.homepage-template .combined-time {
        font-size: 14px !important;
    }
    
    .combined-date {
        font-size: 9px !important;
    }
    
    body.homepage-template .combined-separator {
        font-size: 12px !important;
        margin: 0 4px !important;
    }
    .subcategory-card {
        min-height: 80px !important;
        max-height: 80px !important;
    }
    
    .subcategory-image {
        height: 55px !important;
    }
    
    .subcategory-overlay {
        height: 25px !important;
        padding: 6px 4px 3px !important;
    }
    
    .subcategory-title {
        font-size: 10px !important;
        -webkit-line-clamp: 1 !important;
    }
    .blog-section.collapsed {
        transform: translateY(calc(100% - 40px));
    }
    
    .blog-toggle-header {
        min-height: 40px;
        padding: 8px 12px;
    }
    
    .blog-toggle-arrow {
        font-size: 16px;
    }
    
}

/* Animations for Blog Section Appearance */
@keyframes blogSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.blog-section.first-load {
    animation: none; /* Remove animation for first load */
}
.blog-section:not(.expanded) {
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Blog Post Card Staggered Animation */
.blog-post-card {
    opacity: 0;
    transform: translateY(30px);
    animation: blogCardFadeIn 0.5s ease forwards;
}

.blog-post-card:nth-child(1) { animation-delay: 0.1s; }
.blog-post-card:nth-child(2) { animation-delay: 0.2s; }
.blog-post-card:nth-child(3) { animation-delay: 0.3s; }
.blog-post-card:nth-child(4) { animation-delay: 0.4s; }
.blog-post-card:nth-child(5) { animation-delay: 0.5s; }
.blog-post-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes blogCardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* High-Performance Optimizations */
.blog-post-card,
.blog-toggle-header,
.blog-post-image {
    will-change: transform;
}

.blog-section {
    contain: layout style paint;
}

/* Accessibility Improvements */
.blog-toggle-header:focus {
    outline: 2px solid var(--accent-color, #4285f4);
    outline-offset: 2px;
}

.blog-post-card:focus {
    outline: 2px solid var(--accent-color, #4285f4);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* Blog responsive */

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-section.collapsed {
        transform: translateY(calc(100% - 45px)); /* Slightly smaller on mobile */
    }
    
    .blog-toggle-header {
        min-height: 45px;
        padding: 10px 16px;
    }
    
    .blog-section.expanded .blog-toggle-header {
        padding: 12px 16px;
    }
    
    .blog-toggle-arrow {
        font-size: 18px;
    }
}

@media (max-width: 480px) {

}

/* END Blog.css file */

/* ==============================================
   MUSIC PLAYER ICON STYLING ONLY
   ============================================== */
/* ==============================================
   MUSIC PLAYER ICON STYLING ONLY
   ============================================== */
.sidebar-icon[data-action="open-music-player"] {
    position: relative;
    transition: all 0.3s ease !important;
}

.sidebar-icon[data-action="open-music-player"]:hover {
    color: #ff6b35 !important;
    background: rgba(255, 107, 53, 0.1) !important;
}

/* YOUR REAL HOMEPAGE CSS STARTS HERE */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100vh;
    /* ... rest of your actual styles ... */
}

/* ==============================================
   YOUR EXISTING HOMEPAGE STYLES
   ============================================== */



/* Theme specific adjustments */
body.homepage-template[data-theme="light"] .todo-input,
body.homepage-template[data-theme="light"] .todo-action-btn {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #333333 !important;
}

body.homepage-template[data-theme="light"] .todo-input::placeholder {
    color: rgba(0, 0, 0, 0.5) !important;
}

/* Enhanced Yellow Theme Support */
body.homepage-template[data-theme="yellow"] .floating-todo-widget {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.45), rgba(255, 193, 7, 0.35)) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1.5px solid rgba(255, 235, 59, 0.8) !important;
    box-shadow: 
        0 12px 40px rgba(255, 193, 7, 0.25),
        0 6px 20px rgba(255, 215, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

body.homepage-template[data-theme="yellow"] .todo-widget-header {
    background: rgba(255, 193, 7, 0.2) !important;
    border-bottom: 1px solid rgba(255, 235, 59, 0.5) !important;
}

body.homepage-template[data-theme="yellow"] .todo-input-section,
body.homepage-template[data-theme="yellow"] .todo-actions-section {
    background: rgba(255, 215, 0, 0.1) !important;
    border-color: rgba(255, 235, 59, 0.3) !important;
}

body.homepage-template[data-theme="yellow"] .todo-input {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 235, 59, 0.5) !important;
}

body.homepage-template[data-theme="yellow"] .todo-input:focus {
    border-color: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 0 0 3px rgba(255, 235, 59, 0.3) !important;
}

body.homepage-template[data-theme="yellow"] .todo-action-btn {
    background: rgba(255, 215, 0, 0.2) !important;
    border-color: rgba(255, 235, 59, 0.4) !important;
}

body.homepage-template[data-theme="yellow"] .todo-action-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

/* Hover effects for floating widget */
.floating-todo-widget:hover {
    transform: translateY(-50%) translateX(0) scale(1.02) !important;
    box-shadow: 
        var(--glass-shadow, 0 8px 32px rgba(0, 0, 0, 0.12)),
        0 16px 50px rgba(0, 0, 0, 0.15) !important;
}

/* Sidebar icon active state when todo is open */
.sidebar-icon[data-widget="todo"].active {
    background: rgba(66, 133, 244, 0.1) !important;
    color: var(--accent-color) !important;
}

.sidebar-icon[data-widget="todo"].active::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 3px !important;
    height: 30px !important;
    background: var(--accent-color) !important;
    border-radius: 0 2px 2px 0 !important;
}

/* ==============================================
   UNSPLASH BACKGROUNDS INTEGRATION - ADD TO HOMEPAGE.CSS
   ============================================== */

.backgrounds-search-section {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.backgrounds-search-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

#backgroundsSearchInput {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

#backgroundsSearchInput:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

#backgroundsSearchInput::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

#backgroundsSearchBtn {
    padding: 12px;
    background: var(--accent-color);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#backgroundsSearchBtn:hover {
    background: var(--accent-color-hover);
    transform: translateY(-1px);
}

.backgrounds-search-container:focus-within {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2) !important;
}

/* Categories Grid */
.backgrounds-categories {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
    gap: 12px !important;
    padding: 0 !important;
    margin-bottom: 20px !important;
}

.category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 120px; /* Reduced from 140px */
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.category-card.loading {
    pointer-events: none !important;
    opacity: 0.6 !important;
}

.category-image {
    width: 100%;
    height: 100px; /* Reduced from 120px */
    object-fit: cover;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.category-card:hover .category-image {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 12px 10px 8px; /* Reduced padding */
    color: white;
}

.category-card:hover .category-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0.4),
        rgba(0, 0, 0, 0.8)
    ) !important;
}

.category-title {
    font-weight: 600;
    font-size: 13px; /* Slightly smaller */
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
    margin: 0; /* Remove any margins */
}

.category-description {
    display: none !important; /* Hide descriptions */
}
/* FIXED: Photos Grid */
#backgroundsPhotosGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    padding: 16px;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
}
.backgrounds-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    text-align: center;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Photos Grid Section */
.backgrounds-photos {
    animation: slideInRight 0.3s ease-out !important;
}

@keyframes slideInRight {
    from {
        transform: translateX(20px) !important;
        opacity: 0 !important;
    }
    to {
        transform: translateX(0) !important;
        opacity: 1 !important;
    }
}

.backgrounds-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.backgrounds-back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.backgrounds-back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

#backgroundsCategoryTitle {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}
#backgroundsCategories {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important; /* Smaller for categories without descriptions */
}


/* Photos Grid */
.backgrounds-photos-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)) !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    padding: 4px !important;
}

.photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    aspect-ratio: 4/3;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.photo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.photo-item.applying {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.photo-item.applying::after {
    content: '🎨';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    background: rgba(0, 0, 0, 0.8);
    padding: 16px;
    border-radius: 12px;
    z-index: 10;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}
.photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-image {
    transform: scale(1.02);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    padding: 8px 6px 4px;
    color: white;
    opacity: 1 !important; /* CHANGED: Always visible */
    transition: background 0.3s ease; /* Only transition background, not opacity */
    pointer-events: none;
}

.photo-item:hover .photo-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0.6),
        rgba(0, 0, 0, 0.9)
    ) !important;
}

.photo-info {
    text-align: left;
}
.photo-attribution {
    font-weight: 500;
    font-size: 9px !important; /* Slightly smaller for always-visible */
    margin-bottom: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    line-height: 1.1;
    opacity: 1 !important; /* Always visible */
}

.photo-attribution a {
    color: #17c0ff;
    text-decoration: none;
    font-weight: 600;
}

.photo-attribution a:hover {
    text-decoration: underline;
    color: #4dd0ff;
}


.photo-author {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.photo-description {
    font-size: 8px !important; /* Slightly smaller */
    opacity: 0.8 !important; /* Slightly faded but always visible */
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    display: -webkit-box;
    -webkit-line-clamp: 1; /* Limit to 1 line when always visible */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 1px;
}
/* Enhanced on hover */
.photo-item:hover .photo-description {
    -webkit-line-clamp: 2; /* Show more lines on hover */
    opacity: 1 !important;
}
.persistent-attribution {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    background: rgba(0, 0, 0, 0.9) !important;
    color: white !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    opacity: 0 !important;
    transition: all 0.3s ease !important;
    z-index: 1000 !important;
    max-width: 300px !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(20px) !important;
}

/* FIXED: Show immediately and stay visible for 10 seconds */
.persistent-attribution.show {
    animation: showLonger 12s ease-in-out forwards; /* Longer duration */
}
@keyframes showLonger {
    0% { opacity: 0; transform: translateY(20px); }
    8% { opacity: 1; transform: translateY(0); } /* Show quickly */
    85% { opacity: 1; transform: translateY(0); } /* Stay visible longer */
    100% { opacity: 0; transform: translateY(20px); } /* Fade out */
}
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(20px); }
    12.5% { opacity: 1; transform: translateY(0); } /* Show for ~1 second */
    87.5% { opacity: 1; transform: translateY(0); } /* Keep visible for ~6 seconds */
    100% { opacity: 0; transform: translateY(20px); } /* Fade out */
}


/* FIXED: Attribution content layout */
.attribution-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.attribution-text {
    font-size: 11px !important;
    line-height: 1.3 !important;
    color: #ffffff !important;
}

.attribution-text a {
    color: #17c0ff !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.attribution-text a:hover {
    text-decoration: underline !important;
    color: #4dd0ff !important;
}
.attribution-actions {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
}

.attribution-link {
    color: #17c0ff !important;
    text-decoration: none !important;
    font-size: 10px !important;
    padding: 4px 8px !important;
    border: 1px solid rgba(23, 192, 255, 0.3) !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
}

.attribution-link:hover {
    background: rgba(23, 192, 255, 0.1) !important;
    border-color: #17c0ff !important;
}
.attribution-close {
    background: none !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.7) !important;
    cursor: pointer !important;
    font-size: 16px !important;
    padding: 4px !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.attribution-close:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

/* Load More Button */
.backgrounds-load-more {
    text-align: center;
    padding: 20px 16px;
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.load-more-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 120px;
}

.load-more-btn:hover {
    background: var(--accent-color-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Current Background Info */
/* Current Background Info */
.current-background-info {
    margin-top: 20px !important;
    padding: 16px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 10px !important;
    border: 1px solid var(--border-color) !important;
}

.current-background-info h4 {
    color: var(--text-primary) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
}

.current-background-preview {
    position: relative !important;
    aspect-ratio: 16/9 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid var(--border-color) !important;
}

.current-background-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.current-background-info-text {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)) !important;
    color: white !important;
    padding: 12px !important;
    font-size: 11px !important;
}

.current-background-author {
    font-weight: 600 !important;
    margin-bottom: 4px !important;
}

.current-background-attribution {
    opacity: 0.9 !important;
    line-height: 1.3 !important;
}

/* Custom scrollbar for photos grid */
.backgrounds-photos-grid::-webkit-scrollbar {
    width: 4px !important;
}

.backgrounds-photos-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 2px !important;
}

.backgrounds-photos-grid::-webkit-scrollbar-thumb {
    background: var(--accent-color) !important;
    border-radius: 2px !important;
}

.backgrounds-photos-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(66, 133, 244, 0.8) !important;
}

/* Error State */
/* FIXED: Error and Empty States */
.backgrounds-error,
.backgrounds-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    text-align: center;
    grid-column: 1 / -1;
}

.backgrounds-error svg,
.backgrounds-empty svg {
    
    opacity: 0.5;
    color: var(--text-secondary);
}

.backgrounds-error p,
.backgrounds-empty p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}
.backgrounds-error {
    color: #ff6b6b;
}

/* Empty State */
.backgrounds-empty {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 40px 20px !important;
    color: var(--text-secondary) !important;
    text-align: center !important;
}

.backgrounds-empty svg {
    margin-bottom: 12px !important;
    opacity: 0.4 !important;
}

/* Attribution Footer Enhancement */
.unsplash-attribution {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: 350px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.unsplash-attribution.show {
    opacity: 1;
    transform: translateY(0);
}
.unsplash-attribution:not(.show) {
    transform: translateY(20px);
}
.unsplash-attribution a {
    color: #17c0ff;
    text-decoration: none;
    font-weight: 500;
}

.unsplash-attribution a:hover {
    text-decoration: underline;
    color: #4dd0ff;
}

.unsplash-attribution:hover {
    background: rgba(0, 0, 0, 0.9) !important;
    transform: translateY(-2px) !important;
}

/* Light Theme Overrides */
body.homepage-template[data-theme="light"] #backgroundsSearchInput {
    color: #333333 !important;
}

body.homepage-template[data-theme="light"] #backgroundsSearchInput::placeholder {
    color: rgba(0, 0, 0, 0.5) !important;
}

body.homepage-template[data-theme="light"] .backgrounds-search-container {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

body.homepage-template[data-theme="light"] .category-card,
body.homepage-template[data-theme="light"] .photo-item {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Yellow Theme Enhancements */
body.homepage-template[data-theme="yellow"] .backgrounds-search-container {
    background: rgba(255, 215, 0, 0.1) !important;
    border-color: rgba(255, 235, 59, 0.3) !important;
}

body.homepage-template[data-theme="yellow"] .category-card,
body.homepage-template[data-theme="yellow"] .photo-item {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 193, 7, 0.1)) !important;
    border-color: rgba(255, 235, 59, 0.4) !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
     #backgroundsCategories {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
        padding: 12px;
    }
    
     #backgroundsPhotosGrid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
        padding: 12px;
    }
    .category-card {
        min-height: 120px;
    }
    
    .category-image {
        height: 100px;
    }
    
    .category-title {
        font-size: 13px;
    }
    
    .category-description {
        font-size: 11px;
    }
    
    .backgrounds-back-btn {
        align-self: flex-start;
    }
    
    .backgrounds-back-btn {
        align-self: flex-start !important;
    }
    
    #backgroundsCategoryTitle {
        font-size: 14px !important;
    }
    
    .backgrounds-search-section {
        padding: 12px !important;
    }
    
     #backgroundsSearchInput,
    #backgroundsSearchBtn {
        width: 100%;
    }
    .backgrounds-search-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .current-background-info {
    margin-top: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.current-background-info:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}
.unsplash-attribution {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
        font-size: 11px;
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .backgrounds-categories {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .backgrounds-photos-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 4px !important;
        max-height: 250px !important;
    }
    
    .category-title {
        font-size: 11px !important;
    }
    
    .category-description {
        display: none !important;
    }
    
    .backgrounds-search-section {
        padding: 10px !important;
    }
    
    #backgroundsSearchBtn {
        min-width: 32px !important;
        padding: 0 8px !important;
    }
}

/* ==============================================
  Auto Refresh
   ============================================== */
/* Auto-Refresh Controls Styling */
.auto-refresh-controls {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.auto-refresh-select {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 4px !important;
    color: var(--text-primary) !important;
    font-size: 11px !important;
    padding: 4px 6px !important;
    cursor: pointer !important;
    min-width: 60px !important;
    transition: all 0.2s ease !important;
}

.auto-refresh-select:focus {
    outline: none !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2) !important;
}

.auto-refresh-select:hover {
    border-color: var(--accent-color) !important;
    background: rgba(0, 0, 0, 0.4) !important;
}

.auto-refresh-select option {
    background: rgba(0, 0, 0, 0.95) !important;
    color: var(--text-primary) !important;
    padding: 4px !important;
}

.auto-refresh-custom {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 4px !important;
    color: var(--text-primary) !important;
    font-size: 11px !important;
    padding: 4px 6px !important;
    width: 50px !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
}

.auto-refresh-custom:focus {
    outline: none !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2) !important;
    background: rgba(0, 0, 0, 0.4) !important;
}

.auto-refresh-custom::placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.6 !important;
}

/* Auto-Refresh Indicator (subtle notification) */
.auto-refresh-indicator {
    position: fixed !important;
    top: 20px !important;
    right: 80px !important;
    background: rgba(76, 175, 80, 0.9) !important;
    color: white !important;
    padding: 6px 8px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    z-index: 9999 !important;
    opacity: 0 !important;
    transform: translateY(-10px) !important;
    transition: all 0.3s ease !important;
    pointer-events: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.auto-refresh-indicator.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Light theme overrides */
body.homepage-template[data-theme="light"] .auto-refresh-select,
body.homepage-template[data-theme="light"] .auto-refresh-custom {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #333333 !important;
}

body.homepage-template[data-theme="light"] .auto-refresh-select option,
body.homepage-template[data-theme="light"] .auto-refresh-custom {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333333 !important;
}

body.homepage-template[data-theme="light"] .auto-refresh-custom::placeholder {
    color: rgba(0, 0, 0, 0.5) !important;
}

/* Yellow theme styles */
body.homepage-template[data-theme="yellow"] .auto-refresh-select,
body.homepage-template[data-theme="yellow"] .auto-refresh-custom {
    background: rgba(255, 215, 0, 0.1) !important;
    border-color: rgba(255, 235, 59, 0.3) !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .auto-refresh-controls {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }
    
    .auto-refresh-select {
        min-width: 80px !important;
    }
    
    .auto-refresh-indicator {
        top: 15px !important;
        right: 15px !important;
        font-size: 11px !important;
        padding: 4px 6px !important;
    }
}
/* ==============================================
   FIXED DRAGGABLE BACKGROUND OVERLAY SLIDER
   ============================================== */
/* ==============================================
   SIMPLIFIED WORKING DRAGGABLE SLIDER CSS
   ============================================== */

/* ==============================================
  search button
   ============================================== */
   /* Search Box Height Minimization and Button Repositioning */

/* Update the quote search input styling */
#quoteSearchInput {
    flex: 1 !important; /* Take up remaining space */
    margin: 0 !important;
    padding: 6px 8px !important;
    border: none !important; /* Remove border since container has it */
    border-radius: 0 !important; /* Remove border radius */
    background: transparent !important; /* Transparent since container has background */
    color: var(--text-primary) !important;
    font-size: 12px !important;
    height: auto !important; /* Let flex container control height */
    min-height: 30px !important; /* Minimum height */
    box-sizing: border-box !important;
    outline: none !important;
}


/* Style the search button container */
.quote-search-container {
    width: 100% !important;
    margin-bottom: 10px !important;
    display: flex !important;
    align-items: stretch !important; /* Make both elements same height */
    gap: 0 !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 4px !important;
    overflow: hidden !important; /* Ensure rounded corners work */
    background: rgba(255,255,255,0.1) !important;
}

/* Update the quote search button */
#quoteSearchBtn {
    width: 32px !important;
    min-width: 32px !important; /* Prevent shrinking */
    margin: 0 !important;
    padding: 0 !important;
    background: #4ecdc4 !important;
    color: white !important;
    border: none !important;
    border-radius: 0 !important; /* Remove border radius */
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important; /* Prevent shrinking */
}

#quoteSearchBtn:hover {
    background: #26d0ce !important;
}
/* Search icon styling */
#quoteSearchBtn svg {
    width: 14px !important;
    height: 14px !important;
}
.quote-search-container:focus-within {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2) !important;
}

/* Light theme overrides */
body.homepage-template[data-theme="light"] #quoteSearchInput {
    color: #333333 !important;
}
body.homepage-template[data-theme="light"] .quote-search-container {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}
body.homepage-template[data-theme="light"] 
    color: rgba(0, 0, 0, 0.5) !important;
}
#quoteSearchInput::placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.6 !important;
}
    
    
/* Focus states */
#quoteSearchInput:focus {
    outline: none !important;
    box-shadow: none !important; /* Remove individual focus, use container focus */
}

/* Ensure proper spacing in the filter section */
.setting-section h4 + .quote-search-container {
    margin-top: 10px !important;
}
body.homepage-template[data-theme="yellow"] .quote-search-container {
    background: rgba(255, 215, 0, 0.1) !important;
    border-color: rgba(255, 235, 59, 0.3) !important;
}

body.homepage-template[data-theme="yellow"] #quoteSearchInput {
    color: var(--text-primary) !important;
}
body.homepage-template[data-theme="light"] #quoteSearchInput::placeholder {
    color: rgba(0, 0, 0, 0.5) !important;
}
/* ==============================================
   FLOATING NOTES WIDGET - FIXED VERSION
   ============================================== */

/* Main Notes Widget Container */
.floating-notes-widget {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.9) !important;
    width: 580px !important;
    max-height: 85vh !important;
    background: var(--container-bg) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    border: 1px solid var(--glass-border, var(--border-color)) !important;
    border-radius: 16px !important;
    box-shadow: var(--glass-shadow, 0 8px 32px rgba(0, 0, 0, 0.12)) !important;
    z-index: 1000 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    cursor: default !important;
}

.floating-notes-widget.visible {
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Dragging state */
.floating-notes-widget.dragging {
    transition: none !important;
    z-index: 1001 !important;
    opacity: 0.95 !important;
}

/* Notes Widget Header */
.notes-widget-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid var(--border-color) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    flex-shrink: 0 !important;
    cursor: grab !important;
    user-select: none !important;
    min-height: 44px !important;
    touch-action: none !important;
}

.notes-widget-header:active,
.notes-widget-header.dragging {
    cursor: grabbing !important;
}

.notes-widget-title {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    pointer-events: none !important;
}

.notes-widget-title svg {
    color: var(--accent-color) !important;
}

.notes-widget-controls {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.notes-count {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-secondary) !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    pointer-events: none !important;
}

.notes-add-btn,
.notes-close-btn {
    background: none !important;
    border: none !important;
    color: var(--text-secondary) !important;
    cursor: pointer !important;
    padding: 6px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 32px !important;
    min-height: 32px !important;
    touch-action: manipulation !important;
}

.notes-add-btn:hover,
.notes-close-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-primary) !important;
    transform: scale(1.1) !important;
}

/* Widget Content - Unified Layout */
.notes-widget-content {
    display: flex !important;
    flex-direction: row !important;
    flex: 1 !important;
    overflow: hidden !important;
    background: transparent !important;
}

/* Left Sidebar Panel - Simplified to only show titles */
.notes-sidebar {
    width: 180px !important;
    flex-shrink: 0 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-right: 1px solid var(--border-color) !important;
    display: flex !important;
    flex-direction: column !important;
}

.notes-sidebar-header {
    padding: 12px !important;
    border-bottom: 1px solid var(--border-color) !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

.notes-search-input {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    color: var(--text-primary) !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.notes-search-input:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2) !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

.notes-search-input::placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.6 !important;
}

.notes-list-container {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 8px !important;
}

/* Note Sidebar Items - Simplified to only show titles */
.note-sidebar-item {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    padding: 12px 10px !important;
    margin-bottom: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.note-sidebar-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--accent-color) !important;
    transform: translateY(-1px) !important;
}

.note-sidebar-item.active {
    background: rgba(66, 133, 244, 0.1) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.15) !important;
}

.note-sidebar-title {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    word-break: break-word !important;
    line-height: 1.3 !important;
    flex: 1 !important;
    margin-right: 8px !important;
}

/* Hide preview and date in sidebar */
.note-sidebar-preview,
.note-sidebar-date {
    display: none !important;
}

.note-sidebar-actions {
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
    flex-shrink: 0 !important;
}

.note-sidebar-item:hover .note-sidebar-actions {
    opacity: 1 !important;
}

.note-sidebar-delete {
    background: none !important;
    border: none !important;
    color: #ff5722 !important;
    cursor: pointer !important;
    padding: 4px !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
}

.note-sidebar-delete:hover {
    background: rgba(255, 87, 34, 0.1) !important;
    transform: scale(1.1) !important;
}

/* Empty State */
.notes-sidebar-empty {
    text-align: center !important;
    padding: 40px 20px !important;
    color: var(--text-secondary) !important;
    font-style: italic !important;
}

.notes-sidebar-empty svg {
    margin-bottom: 12px !important;
    opacity: 0.4 !important;
}

.notes-sidebar-empty div {
    font-size: 11px !important;
    line-height: 1.4 !important;
}

/* Right Editor Panel - Wider */
.notes-editor-panel {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    background: transparent !important;
}

/* Editor Header */
.notes-editor-header {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--border-color) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    gap: 12px !important;
}

.notes-title-input {
    flex: 1 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    min-height: 36px !important;
    box-sizing: border-box !important;
}

.notes-title-input:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2) !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

.notes-title-input::placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.6 !important;
    font-weight: 400 !important;
}

.notes-save-btn {
    background: var(--accent-color) !important;
    border: none !important;
    color: white !important;
    cursor: pointer !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
    min-height: 36px !important;
}

.notes-save-btn:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px) !important;
}

/* Editor Content */
.notes-editor-content {
    flex: 1 !important;
    padding: 16px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.notes-text-editor {
    flex: 1 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    font-size: 14px !important;
    color: var(--text-primary) !important;
    outline: none !important;
    resize: none !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.6 !important;
    transition: all 0.2s ease !important;
    min-height: 250px !important;
    box-sizing: border-box !important;
}

.notes-text-editor:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.notes-text-editor::placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.6 !important;
}

/* Editor Footer - Enhanced with timestamps */
.notes-editor-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 16px !important;
    border-top: 1px solid var(--border-color) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    flex-shrink: 0 !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    line-height: 0.1 !important;
}

.notes-editor-stats {
    display: flex !important;
    gap: 16px !important;
    font-size: 11px !important;
    color: var(--text-secondary) !important;
    opacity: 0.8 !important;
    flex-wrap: wrap !important;
}

.notes-editor-timestamps {
    display: flex !important;
    gap: 16px !important;
    font-size: 10px !important;
    color: var(--text-secondary) !important;
    opacity: 0.7 !important;
    flex-wrap: wrap !important;
}

.notes-editor-actions {
    display: flex !important;
    gap: 8px !important;
}

.notes-delete-btn {
    background: rgba(255, 87, 34, 0.1) !important;
    border: 1px solid rgba(255, 87, 34, 0.3) !important;
    color: #ff5722 !important;
    cursor: pointer !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.notes-delete-btn:hover {
    background: rgba(255, 87, 34, 0.2) !important;
    border-color: #ff5722 !important;
    transform: translateY(-1px) !important;
}

/* Custom Scrollbar */
.notes-list-container::-webkit-scrollbar {
    width: 4px !important;
}

.notes-list-container::-webkit-scrollbar-track {
    background: transparent !important;
}

.notes-list-container::-webkit-scrollbar-thumb {
    background: var(--border-color) !important;
    border-radius: 2px !important;
}

.notes-list-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color) !important;
}

/* Light Theme Overrides */
body.homepage-template[data-theme="light"] .notes-search-input,
body.homepage-template[data-theme="light"] .notes-title-input,
body.homepage-template[data-theme="light"] .notes-text-editor {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #333333 !important;
}

body.homepage-template[data-theme="light"] .notes-search-input::placeholder,
body.homepage-template[data-theme="light"] .notes-title-input::placeholder,
body.homepage-template[data-theme="light"] .notes-text-editor::placeholder {
    color: rgba(0, 0, 0, 0.5) !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-notes-widget {
        width: calc(100vw - 20px) !important;
        max-width: 550px !important;
        max-height: 90vh !important;
    }
    
    .notes-sidebar {
        width: 140px !important;
    }
    
    .notes-widget-header {
        padding: 12px 16px !important;
    }
    
    .notes-editor-header {
        padding: 10px 12px !important;
        gap: 8px !important;
    }
    
    .notes-editor-content {
        padding: 12px !important;
    }
    
    .notes-editor-footer {
        padding: 10px 12px !important;
        flex-direction: column !important;
        gap: 8px !important;
        align-items: flex-start !important;
    }
    
    .notes-editor-stats,
    .notes-editor-timestamps {
        font-size: 10px !important;
        gap: 12px !important;
    }
    
    .notes-title-input {
        font-size: 13px !important;
    }
    
    .notes-text-editor {
        font-size: 13px !important;
        min-height: 200px !important;
    }
}

@media (max-width: 480px) {
    .floating-notes-widget {
        width: calc(100vw - 16px) !important;
        max-height: 95vh !important;
    }
    
    .notes-widget-content {
        flex-direction: column !important;
    }
    
    .notes-sidebar {
        width: 100% !important;
        height: 120px !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-color) !important;
    }
    
    .notes-widget-header {
        padding: 10px 12px !important;
    }
    
    .notes-widget-title {
        font-size: 15px !important;
    }
    
    .notes-count {
        font-size: 10px !important;
    }
    
    .notes-editor-footer {
        padding: 8px 10px !important;
    }
    
    .notes-delete-btn {
        font-size: 11px !important;
        padding: 5px 10px !important;
    }
}

/* Accessibility improvements */
.notes-add-btn:focus,
.notes-close-btn:focus,
.notes-save-btn:focus,
.note-sidebar-delete:focus,
.notes-delete-btn:focus {
    outline: 2px solid var(--accent-color) !important;
    outline-offset: 2px !important;
}

/* Smooth animations */
.note-sidebar-item {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Sidebar icon active state when notes is open */
.sidebar-icon[data-widget="notes"].active {
    background: rgba(66, 133, 244, 0.1) !important;
    color: var(--accent-color) !important;
}

.sidebar-icon[data-widget="notes"].active::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 3px !important;
    height: 30px !important;
    background: var(--accent-color) !important;
    border-radius: 0 2px 2px 0 !important;
}
/* ==============================================
   FLOATING TO-DO WIDGET STYLING - UPDATED
   ============================================== */

/* Floating To-Do Widget Container - Center positioned and draggable */
.floating-todo-widget {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.9) !important;
    width: 350px !important;
    max-height: 70vh !important;
    background: var(--container-bg) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid var(--glass-border, var(--border-color)) !important;
    border-radius: 16px !important;
    box-shadow: var(--glass-shadow, 0 8px 32px rgba(0, 0, 0, 0.12)) !important;
    z-index: 1000 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    cursor: default !important;
}

.floating-todo-widget.visible {
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Glass shine effect */
.floating-todo-widget::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent) !important;
    z-index: 1 !important;
}

/* Widget Header - Make draggable */
.todo-widget-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid var(--border-color) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    flex-shrink: 0 !important;
    cursor: move !important; /* Indicates draggable */
    user-select: none !important;
}

.todo-widget-title {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    pointer-events: none !important; /* Prevent interference with dragging */
}

.todo-widget-title svg {
    color: var(--accent-color) !important;
}

.todo-widget-controls {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.todo-count {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-secondary) !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    pointer-events: none !important;
}

.todo-close-btn {
    background: none !important;
    border: none !important;
    color: var(--text-secondary) !important;
    cursor: pointer !important;
    padding: 6px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
}

.todo-close-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-primary) !important;
    transform: scale(1.1) !important;
}

/* Widget Content */
.todo-widget-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    overflow: hidden !important;
}

/* Input Section */
.todo-input-section {
    padding: 16px 20px !important;
    border-bottom: 1px solid var(--border-color) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    flex-shrink: 0 !important;
}

.todo-input-form {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
}

.todo-input {
    flex: 1 !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-primary) !important;
}

.todo-input:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2) !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

.todo-input::placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.6 !important;
}

.todo-add-btn {
    background: var(--accent-color) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.todo-add-btn:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px) !important;
}

.todo-add-btn:active {
    transform: translateY(0) !important;
}

/* List Section */
.todo-list-section {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 0 !important;
    min-height: 200px !important;
    max-height: 300px !important;
}

.todo-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Todo Items - Updated for smooth animations */
.todo-item {
    display: flex !important;
    align-items: center !important;
    padding: 12px 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.todo-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Animation for item removal */
.todo-item.removing {
    opacity: 0 !important;
    transform: translateX(100%) !important;
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
}

.todo-item.completed {
    opacity: 0.6 !important;
}

.todo-checkbox {
    width: 18px !important;
    height: 18px !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 50% !important;
    margin-right: 12px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    font-size: 10px !important;
}

.todo-checkbox.checked {
    background: #4caf50 !important;
    border-color: #4caf50 !important;
    color: white !important;
}

.todo-checkbox:hover {
    border-color: #4caf50 !important;
    transform: scale(1.1) !important;
}

.todo-text {
    flex: 1 !important;
    font-size: 14px !important;
    color: var(--text-primary) !important;
    line-height: 1.4 !important;
    transition: all 0.2s ease !important;
    word-break: break-word !important;
}

.todo-item.completed .todo-text {
    text-decoration: line-through !important;
    color: var(--text-secondary) !important;
}

/* Updated delete button with trash icon on hover */
.todo-delete {
    background: none !important;
    border: none !important;
    color: #ff5722 !important;
    cursor: pointer !important;
    padding: 6px !important;
    border-radius: 4px !important;
    opacity: 0 !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
}

.todo-item:hover .todo-delete {
    opacity: 1 !important;
}

.todo-delete:hover {
    background: rgba(255, 87, 34, 0.1) !important;
    transform: scale(1.1) !important;
}

/* Trash icon using CSS */
.todo-delete::before {
    content: '🗑️' !important;
    font-size: 14px !important;
}

/* Empty State */
.todo-empty {
    text-align: center !important;
    padding: 40px 20px !important;
    color: var(--text-secondary) !important;
    font-style: italic !important;
}

.todo-empty svg {
    margin-bottom: 10px !important;
    opacity: 0.5 !important;
}

/* Actions Section */
.todo-actions-section {
    padding: 16px 20px !important;
    border-top: 1px solid var(--border-color) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    display: flex !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
}

.todo-action-btn {
    flex: 1 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    color: var(--text-primary) !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.todo-action-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-1px) !important;
}

.todo-action-btn.clear-completed:hover {
    background: rgba(76, 175, 80, 0.2) !important;
    border-color: #4caf50 !important;
    color: #4caf50 !important;
}

.todo-action-btn.clear-all:hover {
    background: rgba(255, 107, 107, 0.2) !important;
    border-color: #ff6b6b !important;
    color: #ff6b6b !important;
}

/* Scrollbar for todo list */
.todo-list-section::-webkit-scrollbar {
    width: 4px !important;
}

.todo-list-section::-webkit-scrollbar-track {
    background: transparent !important;
}

.todo-list-section::-webkit-scrollbar-thumb {
    background: var(--border-color) !important;
    border-radius: 2px !important;
}

.todo-list-section::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color) !important;
}

/* Hover effects for floating widget */
.floating-todo-widget:hover {
    transform: translate(-50%, -50%) scale(1.02) !important;
    box-shadow: 
        var(--glass-shadow, 0 8px 32px rgba(0, 0, 0, 0.12)),
        0 16px 50px rgba(0, 0, 0, 0.15) !important;
}

/* Sidebar icon active state when todo is open */
.sidebar-icon[data-widget="todo"].active {
    background: rgba(66, 133, 244, 0.1) !important;
    color: var(--accent-color) !important;
}

.sidebar-icon[data-widget="todo"].active::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 3px !important;
    height: 30px !important;
    background: var(--accent-color) !important;
    border-radius: 0 2px 2px 0 !important;
}

/* ==============================================
   1. GLOBAL RESET & BASE STYLES
   ============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

/* ==============================================
   2. HIDE ALL WORDPRESS ELEMENTS - NUCLEAR OPTION
   ============================================== */
body.homepage-template #wpadminbar,
body.homepage-template .wp-site-blocks,
body.homepage-template header, 
body.homepage-template footer, 
body.homepage-template nav,
body.homepage-template .site-header, 
body.homepage-template .site-footer, 
body.homepage-template .site-main,
body.homepage-template .entry-header, 
body.homepage-template .entry-content, 
body.homepage-template .entry-footer,
body.homepage-template .content-area, 
body.homepage-template .site-content,
body.homepage-template .wp-block-group, 
body.homepage-template .wp-block-cover,
body.homepage-template .has-global-padding,
body.homepage-template .wp-container-core-group-is-layout-1,
body.homepage-template main, 
body.homepage-template article, 
body.homepage-template section.wp-block-group,
body.homepage-template .wp-block-navigation, 
body.homepage-template .wp-navigation,
body.homepage-template .menu, 
body.homepage-template .nav-menu, 
body.homepage-template .navigation-menu,
body.homepage-template .wp-block-navigation__submenu-container,
body.homepage-template .wp-block-navigation-item,
body.homepage-template .has-child .wp-block-navigation-link,
body.homepage-template .wp-block-navigation__container {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Hide source link */
body.homepage-template .source {
    display: none !important;
}

/* ==============================================
   3. ENHANCED CSS VARIABLES WITH GLASSMORPHIC EFFECTS
   ============================================== */

/* Dark Theme - KEEP EXACTLY AS IS (No changes to black theme) */
html[data-theme="dark"],
html body[data-theme="dark"],
body.homepage-template[data-theme="dark"] {
    --bg-primary: rgba(0, 0, 0, 0.6) !important;
    --bg-secondary: rgba(255, 255, 255, 0.1) !important;
    --text-primary: #ffffff !important;
    --text-secondary: rgba(255, 255, 255, 0.8) !important;
    --accent-color: #4285f4 !important;
    --overlay-bg: rgba(0, 0, 0, 0.45) !important;
    --sidebar-bg: rgba(20, 20, 20, 0.95) !important;
    --sidebar-icon-color: rgba(255, 255, 255, 0.7) !important;
    --sidebar-icon-hover: rgba(255, 255, 255, 0.9) !important;
    --sidebar-icon-active: #4285f4 !important;
    --border-color: rgba(255, 255, 255, 0.1) !important;
    --container-bg: rgba(0, 0, 0, 0.7) !important;
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    --glass-border: rgba(255, 255, 255, 0.15) !important;
}

/* Enhanced Light Theme with Stronger White Glassmorphic Effect */
html[data-theme="light"],
html body[data-theme="light"],
body.homepage-template[data-theme="light"] {
    --bg-primary: rgba(255, 255, 255, 0.7) !important;
    --bg-secondary: rgba(255, 255, 255, 0.4) !important;
    --text-primary: #333333 !important;
    --text-secondary: rgba(0, 0, 0, 0.7) !important;
    --accent-color: #4285f4 !important;
    --overlay-bg: rgba(255, 255, 255, 0.5) !important;
    --sidebar-bg: rgba(255, 255, 255, 0.8) !important;
    --sidebar-icon-color: rgba(0, 0, 0, 0.6) !important;
    --sidebar-icon-hover: rgba(0, 0, 0, 0.8) !important;
    --sidebar-icon-active: #4285f4 !important;
    --border-color: rgba(255, 255, 255, 0.8) !important;
    --container-bg: rgba(255, 255, 255, 0.75) !important;
    --glass-shadow: 0 8px 32px rgba(255, 255, 255, 0.4) !important;
    --glass-border: rgba(255, 255, 255, 0.9) !important;
}

/* Enhanced Blue Theme with Glassmorphic Effect */
html[data-theme="blue"],
html body[data-theme="blue"],
body.homepage-template[data-theme="blue"] {
    --bg-primary: rgba(25, 118, 210, 0.15) !important;
    --bg-secondary: rgba(255, 255, 255, 0.1) !important;
    --text-primary: #ffffff !important;
    --text-secondary: rgba(255, 255, 255, 0.8) !important;
    --accent-color: #1976d2 !important;
    --overlay-bg: rgba(25, 118, 210, 0.2) !important;
    --sidebar-bg: rgba(25, 118, 210, 0.2) !important;
    --sidebar-icon-color: rgba(255, 255, 255, 0.7) !important;
    --sidebar-icon-hover: rgba(255, 255, 255, 0.9) !important;
    --sidebar-icon-active: #1976d2 !important;
    --border-color: rgba(255, 255, 255, 0.2) !important;
    --container-bg: rgba(25, 118, 210, 0.2) !important;
    --glass-shadow: 0 8px 32px rgba(25, 118, 210, 0.15) !important;
    --glass-border: rgba(255, 255, 255, 0.25) !important;
}

/* Enhanced Green Theme with More Greenish Glassmorphic Effect */
html[data-theme="green"],
html body[data-theme="green"],
body.homepage-template[data-theme="green"] {
    --bg-primary: rgba(76, 175, 80, 0.25) !important;
    --bg-secondary: rgba(129, 199, 132, 0.15) !important;
    --text-primary: #ffffff !important;
    --text-secondary: rgba(255, 255, 255, 0.8) !important;
    --accent-color: #4caf50 !important;
    --overlay-bg: rgba(46, 125, 50, 0.25) !important;
    --sidebar-bg: rgba(76, 175, 80, 0.3) !important;
    --sidebar-icon-color: rgba(255, 255, 255, 0.7) !important;
    --sidebar-icon-hover: rgba(255, 255, 255, 0.9) !important;
    --sidebar-icon-active: #4caf50 !important;
    --border-color: rgba(129, 199, 132, 0.4) !important;
    --container-bg: rgba(76, 175, 80, 0.3) !important;
    --glass-shadow: 0 8px 32px rgba(76, 175, 80, 0.2) !important;
    --glass-border: rgba(129, 199, 132, 0.5) !important;
}

/* Enhanced Red Theme with More Reddish Glassmorphic Effect */
html[data-theme="red"],
html body[data-theme="red"],
body.homepage-template[data-theme="red"] {
    --bg-primary: rgba(244, 67, 54, 0.25) !important;
    --bg-secondary: rgba(239, 83, 80, 0.15) !important;
    --text-primary: #ffffff !important;
    --text-secondary: rgba(255, 255, 255, 0.8) !important;
    --accent-color: #f44336 !important;
    --overlay-bg: rgba(198, 40, 40, 0.25) !important;
    --sidebar-bg: rgba(244, 67, 54, 0.3) !important;
    --sidebar-icon-color: rgba(255, 255, 255, 0.7) !important;
    --sidebar-icon-hover: rgba(255, 255, 255, 0.9) !important;
    --sidebar-icon-active: #f44336 !important;
    --border-color: rgba(239, 83, 80, 0.4) !important;
    --container-bg: rgba(244, 67, 54, 0.3) !important;
    --glass-shadow: 0 8px 32px rgba(244, 67, 54, 0.2) !important;
    --glass-border: rgba(239, 83, 80, 0.5) !important;
}

/* Enhanced Orange Theme with More Orange Glassmorphic Effect */
html[data-theme="orange"],
html body[data-theme="orange"],
body.homepage-template[data-theme="orange"] {
    --bg-primary: rgba(255, 152, 0, 0.25) !important;
    --bg-secondary: rgba(255, 183, 77, 0.15) !important;
    --text-primary: #ffffff !important;
    --text-secondary: rgba(255, 255, 255, 0.8) !important;
    --accent-color: #ff9800 !important;
    --overlay-bg: rgba(230, 126, 34, 0.25) !important;
    --sidebar-bg: rgba(255, 152, 0, 0.3) !important;
    --sidebar-icon-color: rgba(255, 255, 255, 0.7) !important;
    --sidebar-icon-hover: rgba(255, 255, 255, 0.9) !important;
    --sidebar-icon-active: #ff9800 !important;
    --border-color: rgba(255, 183, 77, 0.4) !important;
    --container-bg: rgba(255, 152, 0, 0.3) !important;
    --glass-shadow: 0 8px 32px rgba(255, 152, 0, 0.2) !important;
    --glass-border: rgba(255, 183, 77, 0.5) !important;
}

/* Enhanced Yellow Theme with Luxury Golden Glassmorphic Effect */
html[data-theme="yellow"],
html body[data-theme="yellow"],
body.homepage-template[data-theme="yellow"] {
    --bg-primary: rgba(255, 215, 0, 0.4) !important;
    --bg-secondary: rgba(255, 235, 59, 0.25) !important;
    --text-primary: #ffffff !important;
    --text-secondary: rgba(255, 255, 255, 0.9) !important;
    --accent-color: #ffc107 !important;
    --overlay-bg: rgba(255, 193, 7, 0.25) !important;
    --sidebar-bg: rgba(255, 193, 7, 0.6) !important;
    --sidebar-icon-color: rgba(255, 255, 255, 0.8) !important;
    --sidebar-icon-hover: rgba(255, 255, 255, 1) !important;
    --sidebar-icon-active: #ffffff !important;
    --border-color: rgba(255, 249, 196, 0.5) !important;
    --container-bg: rgba(255, 215, 0, 0.45) !important;
    --glass-shadow: 0 8px 32px rgba(255, 193, 7, 0.15) !important;
    --glass-border: rgba(255, 249, 196, 0.6) !important;
}

/* ==============================================
   4. BODY & MAIN LAYOUT WITH FORCED THEME APPLICATION
   ============================================== */
body.homepage-template,
body.home.page-template-page-homepage,
body.page.page-template-page-homepage,
body.page-template-page-homepage {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    color: var(--text-primary) !important;
    height: 100vh !important;
    width: 100vw !important;
    overflow: hidden !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-image: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') !important;
}

/* Overlay for better text readability - CRITICAL for theme changes */
body.homepage-template::before,
body.home.page-template-page-homepage::before,
body.page.page-template-page-homepage::before {
    content: '' !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: var(--overlay-bg) !important;
    z-index: 1 !important;
    transition: background-color 0.3s ease !important;
}

.homepage-content {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2 !important;
    padding: 20px !important;
}

/* ==============================================
   5. FORCED TEXT COLOR APPLICATION
   ============================================== */

/* Force text colors with highest specificity */
body.homepage-template .quote-container,
body.homepage-template .quote-container blockquote,
body.homepage-template .quote-container .author,
body.homepage-template .time-widget .time,
body.homepage-template .time-widget .date,
body.homepage-template .weather-widget,
body.homepage-template .weather-widget .weather-temp,
body.homepage-template .weather-widget .temp-max,
body.homepage-template .combined-widget,
body.homepage-template .combined-widget .combined-temp,
body.homepage-template .combined-widget .combined-time,
body.homepage-template .panel-header h3,
body.homepage-template .setting-item .setting-info span,
body.homepage-template .theme-colors h4,
body.homepage-template .overlay-transparency h4,
body.homepage-template .widget-transparency h4,
body.homepage-template #searchInput {
    color: var(--text-primary) !important;
}

/* Force secondary text colors */
body.homepage-template .weather-description,
body.homepage-template .today-location,
body.homepage-template .panel-close,
body.homepage-template .setting-controls,
body.homepage-template .slider-labels,
body.homepage-template .weather-widget .temp-min,
body.homepage-template .combined-widget .combined-separator,
body.homepage-template #searchInput::placeholder {
    color: var(--text-secondary) !important;
}

/* ==============================================
   6. GLASSMORPHIC CONTAINER STYLING
   ============================================== */

/* Enhanced Quote Container with Glassmorphism */
body.homepage-template .quote-container {
    background: var(--container-bg) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid var(--glass-border, var(--border-color)) !important;
    border-radius: 20px !important;
    box-shadow: var(--glass-shadow, 0 8px 32px rgba(0, 0, 0, 0.12)) !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 40px !important;
    margin: 0 auto !important;
    transition: all 0.3s ease !important;
    max-width: 800px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Glass shine effect for quote container */
body.homepage-template .quote-container::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent) !important;
    z-index: 1 !important;
}

/* Enhanced Widgets with Glassmorphism */
body.homepage-template .time-widget:not(.no-container),
body.homepage-template .weather-widget:not(.no-container),
body.homepage-template .combined-widget:not(.no-container) {
    background: var(--container-bg) !important;
    backdrop-filter: blur(15px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(15px) saturate(180%) !important;
    border: 1px solid var(--glass-border, var(--border-color)) !important;
    border-radius: 16px !important;
    box-shadow: var(--glass-shadow, 0 8px 32px rgba(0, 0, 0, 0.12)) !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 20px !important;
    transition: all 0.3s ease !important;
}

/* Glass shine effect for widgets */
body.homepage-template .time-widget:not(.no-container)::before,
body.homepage-template .weather-widget:not(.no-container)::before,
body.homepage-template .combined-widget:not(.no-container)::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
    z-index: 1 !important;
}

/* Enhanced Search Bar with Glassmorphism */
body.homepage-template .search-bar {
    background: var(--container-bg) !important;
    backdrop-filter: blur(15px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(15px) saturate(180%) !important;
    border: 1px solid var(--glass-border, var(--border-color)) !important;
    border-radius: 25px !important;
    box-shadow: var(--glass-shadow, 0 8px 32px rgba(0, 0, 0, 0.12)) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    padding: 8px 15px !important;
    transition: all 0.3s ease !important;
}

/* Enhanced Sidebar with Glassmorphism */
body.homepage-template .mystart-sidebar {
    background: var(--sidebar-bg) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-right: 1px solid var(--glass-border, var(--border-color)) !important;
    box-shadow: var(--glass-shadow, 0 8px 32px rgba(0, 0, 0, 0.12)) !important;
    position: fixed !important;
    left: -70px !important;
    top: 0 !important;
    width: 70px !important;
    height: 100vh !important;
    z-index: 1000 !important;
    transition: left 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Enhanced Content Panel with Glassmorphism */
body.homepage-template .content-panel {
    background: var(--container-bg) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    border-right: 1px solid var(--glass-border, var(--border-color)) !important;
    box-shadow: var(--glass-shadow, 0 8px 32px rgba(0, 0, 0, 0.12)) !important;
    position: fixed !important;
    left: -350px !important;
    top: 0 !important;
    width: 350px !important;
    height: 100vh !important;
    z-index: 999 !important;
    transition: left 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    overflow-y: auto !important;
}

/* Enhanced Menu Toggle with Glassmorphism */
body.homepage-template .menu-toggle {
    background: var(--sidebar-bg) !important;
    backdrop-filter: blur(15px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(15px) saturate(180%) !important;
    border: 1px solid var(--glass-border, var(--border-color)) !important;
    border-radius: 12px !important;
    box-shadow: var(--glass-shadow, 0 8px 32px rgba(0, 0, 0, 0.12)) !important;
    position: fixed !important;
    top: 20px !important;
    left: 20px !important;
    z-index: 1001 !important;
    padding: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Enhanced Weather Forecast with Glassmorphism */
body.homepage-template .weather-forecast {
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    box-shadow: var(--glass-shadow, 0 8px 32px rgba(0, 0, 0, 0.12)) !important;
    position: absolute !important;
    top: 0 !important;
    right: 100% !important;
    margin-right: 15px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0 !important;
    min-width: 200px !important;
    max-width: 220px !important;
    max-height: 400px !important;
    overflow: hidden !important;
    z-index: 1000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(10px) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

body.homepage-template .today-header {
    background: var(--container-bg) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid var(--glass-border, var(--border-color)) !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 12px 14px !important;
    text-align: center !important;
    border-bottom: 1px solid var(--border-color) !important;
}

/* Enhanced Notification with Glassmorphism */
body.homepage-template .notification {
    background: var(--container-bg) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid var(--glass-border, var(--border-color)) !important;
    border-radius: 16px !important;
    box-shadow: var(--glass-shadow, 0 8px 32px rgba(0, 0, 0, 0.12)) !important;
    position: fixed !important;
    top: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(-100px) !important;
    padding: 14px 20px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: center !important;
    z-index: 1000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    min-width: 200px !important;
    max-width: 400px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* ==============================================
   7. ENHANCED HOVER EFFECTS WITH GLASSMORPHISM
   ============================================== */

/* Enhanced hover effects */
body.homepage-template .weather-widget:hover,
body.homepage-template .time-widget:hover,
body.homepage-template .combined-widget:hover {
    transform: translateY(-2px) !important;
    box-shadow: 
        var(--glass-shadow, 0 8px 32px rgba(0, 0, 0, 0.12)),
        0 12px 40px rgba(0, 0, 0, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

body.homepage-template .quote-container:hover {
    transform: translateY(-1px) !important;
    box-shadow: 
        var(--glass-shadow, 0 8px 32px rgba(0, 0, 0, 0.12)),
        0 16px 50px rgba(0, 0, 0, 0.12) !important;
}

body.homepage-template .search-bar:focus-within {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 
        var(--glass-shadow, 0 8px 32px rgba(0, 0, 0, 0.12)),
        0 0 0 3px rgba(66, 133, 244, 0.2) !important;
}

body.homepage-template .menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: scale(1.05) !important;
}

/* Shimmer effect on hover */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

body.homepage-template .quote-container:hover::after,
body.homepage-template .weather-widget:hover::after,
body.homepage-template .time-widget:hover::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    ) !important;
    animation: shimmer 2s ease-in-out !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

/* ==============================================
   8. HAMBURGER MENU TOGGLE - FORCED STYLING
   ============================================== */
body.homepage-template .hamburger {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    width: 18px !important;
    height: 14px !important;
}

body.homepage-template .hamburger span {
    width: 100% !important;
    height: 2px !important;
    background: var(--text-primary) !important;
    border-radius: 1px !important;
    transition: all 0.3s ease !important;
}

/* ==============================================
   9. SIDEBAR SYSTEM - FORCED STYLING
   ============================================== */
body.homepage-template .mystart-sidebar.open {
    left: 0 !important;
}

body.homepage-template .sidebar-icons {
    display: flex !important;
    flex-direction: column !important;
    padding: 20px 0 !important;
    gap: 4px !important;
}

body.homepage-template .sidebar-icon {
    width: 70px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: var(--sidebar-icon-color) !important;
    transition: all 0.2s ease !important;
    position: relative !important;
}

body.homepage-template .sidebar-icon:hover {
    color: var(--sidebar-icon-hover) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

body.homepage-template .sidebar-icon.active {
    color: var(--sidebar-icon-active) !important;
    background: rgba(66, 133, 244, 0.1) !important;
}

body.homepage-template .sidebar-icon.active::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 3px !important;
    height: 30px !important;
    background: var(--sidebar-icon-active) !important;
    border-radius: 0 2px 2px 0 !important;
}

/* ==============================================
   10. CONTENT PANEL - FORCED STYLING
   ============================================== */
body.homepage-template .content-panel.open {
    left: 70px !important;
}

body.homepage-template .panel-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 24px !important;
    border-bottom: 1px solid var(--border-color) !important;
    background: rgba(0, 0, 0, 0.1) !important;
}

body.homepage-template .panel-header h3 {
    color: var(--text-primary) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

body.homepage-template .panel-close {
    background: none !important;
    border: none !important;
    color: var(--text-secondary) !important;
    cursor: pointer !important;
    padding: 8px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.homepage-template .panel-close:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-primary) !important;
}

body.homepage-template .panel-content {
    padding: 24px !important;
}

body.homepage-template .panel-section {
    display: none !important;
}

body.homepage-template .panel-section.active {
    display: block !important;
}

/* ==============================================
   11. SEARCH BAR - COMPLETE IMPLEMENTATION
   ============================================== */
body.homepage-template .search-container {
    position: fixed !important;
    top: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10 !important;
    transition: opacity 0.3s ease !important;
}

body.homepage-template #searchInput {
    background: none !important;
    border: none !important;
    outline: none !important;
    color: var(--text-primary) !important;
    font-size: 16px !important;
    width: 300px !important;
    padding: 8px 12px !important;
    border-radius: 20px !important;
}

body.homepage-template #searchInput::placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.6 !important;
}

body.homepage-template #searchBtn {
    background: none !important;
    border: none !important;
    color: var(--text-secondary) !important;
    cursor: pointer !important;
    padding: 5px !important;
    border-radius: 50% !important;
    transition: all 0.2s !important;
}

body.homepage-template #searchBtn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: var(--accent-color) !important;
}

/* COMPLETE SEARCH OPTIONS STYLING */
body.homepage-template .search-options {
    display: flex !important;
    gap: 6px !important;
    margin-left: 8px !important;
    align-items: center !important;
}

body.homepage-template .search-option {
    font-size: 9px !important;
    padding: 1px 4px !important;
    margin: 0 !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-secondary) !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    line-height: 1.1 !important;
    min-width: auto !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

body.homepage-template .search-option:hover {
    background: var(--accent-color) !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

body.homepage-template .search-option.active {
    background: var(--accent-color) !important;
    color: white !important;
}

/* Search engine toggle styling - matches clock format and quote size toggles */
body.homepage-template .search-engine-toggle {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 11px !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
    line-height: 18px !important;
}

body.homepage-template .search-engine-option {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    display: inline !important;
    vertical-align: middle !important;
    cursor: pointer !important;
    transition: color 0.2s ease !important;
    text-transform: uppercase !important;
}

body.homepage-template .search-engine-option.active {
    color: #ffffff !important;
}

body.homepage-template .search-engine-option:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

body.homepage-template .search-engine-separator {
    color: rgba(255, 255, 255, 0.4) !important;
    margin: 0 4px !important;
    font-size: 10px !important;
}

/* Ensure consistent layout with other toggles */
body.homepage-template .setting-item .setting-controls .search-engine-toggle {
    display: inline-flex !important;
    align-items: center !important;
    margin-right: 12px !important;
}

/* ==============================================
   12. QUOTE CONTAINER - FORCED STYLING
   ============================================== */
body.homepage-template .container {
    position: relative !important;
    z-index: 2 !important;
    max-width: 900px !important;
    padding: 20px !important;
    text-align: center !important;
}

/* Quote size variations */
body.homepage-template .quote-container.quote-small {
    max-width: 450px !important;
    padding: 20px !important;
}

body.homepage-template .quote-container.quote-small blockquote {
    font-size: 20px !important;
    margin-bottom: 5px !important;
}

body.homepage-template .quote-container.quote-small .author {
    font-size: 15px !important;
    margin-bottom: 10px !important;
}

body.homepage-template .quote-container.quote-medium {
    max-width: 600px !important;
    padding: 25px !important;
}

body.homepage-template .quote-container.quote-medium blockquote {
    font-size: 25px !important;
    margin-bottom: 14px !important;
}

body.homepage-template .quote-container.quote-medium .author {
    margin-bottom: 0 !important;
}

body.homepage-template .quote-container.quote-large {
    max-width: 750px !important;
    padding: 30px !important;
}

body.homepage-template .quote-container.quote-large blockquote {
    margin-bottom: 16px !important;
}

body.homepage-template .quote-container.quote-large .author {
    margin-bottom: 0 !important;
}

body.homepage-template blockquote {
    font-size: 36px !important;
    line-height: 1.4 !important;
    margin-bottom: 15px !important;
    font-weight: 300 !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3) !important;
    color: var(--text-primary) !important;
    margin-top: 0 !important;
}

body.homepage-template .author {
    font-size: 24px !important;
    font-weight: 500 !important;
    color: var(--text-secondary) !important;
    margin-bottom: 15px !important;
}

/* ==============================================
   13. WIDGETS CONTAINER - FORCED STYLING
   ============================================== */
body.homepage-template .widgets-container {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    z-index: 10 !important;
}

body.homepage-template .time {
    font-size: 35px !important;
    font-weight: 350 !important;
    color: var(--text-primary) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important;
    line-height: 1 !important;
    margin-bottom: 5px !important;
}

body.homepage-template .date {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: var(--text-secondary) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Weather widget specific styles */
body.homepage-template .weather-widget {
    text-align: center !important;
    min-width: 140px !important;
    position: relative !important;
    cursor: pointer !important;
    padding: 15px !important;
}

body.homepage-template .weather-content {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    flex-direction: row !important;
    margin-bottom: 8px !important;
}

body.homepage-template .weather-icon {
    font-size: 20px !important;
    margin: 0 !important;
    order: 2 !important;
}

body.homepage-template .weather-temp {
    font-size: 18px !important;
    font-weight: 500 !important;
    color: var(--text-primary) !important;
    margin: 0 !important;
    line-height: 1 !important;
}

body.homepage-template .weather-description {
    font-size: 11px !important;
    color: var(--text-secondary) !important;
    text-transform: capitalize !important;
    margin: 0 !important;
}

body.homepage-template .weather-location {
    display: none !important;
}

/* Temperature styling */
body.homepage-template .temp-max {
    font-size: 35px !important;
    font-weight: 350 !important;
    color: var(--text-primary) !important;
    line-height: 1 !important;
}

body.homepage-template .temp-min {
    font-size: 10px !important;
    font-weight: 400 !important;
    color: var(--text-secondary) !important;
    opacity: 0.8 !important;
    line-height: 1 !important;
}

/* Combined Widget */
body.homepage-template .combined-widget {
    display: none !important; /* Hidden by default */
    flex-direction: row !important; /* Keep horizontal */
    align-items: center !important; /* Center alignment */
    justify-content: center !important;
    gap: 12px !important;
    cursor: pointer !important;
    min-width: 140px !important;
    padding: 15px 20px !important;
    text-align: center !important;
}

body.homepage-template .combined-widget .combined-temp {
    font-size: 35px !important;
    font-weight: 350 !important;
    color: var(--text-primary) !important;
    line-height: 1 !important;
}

body.homepage-template .combined-widget .combined-separator {
    color: var(--text-secondary) !important;
    font-size: 16px !important;
    opacity: 0.6 !important;
}

body.homepage-template .combined-widget .combined-time {
    font-size: 35px !important;
    font-weight: 350 !important;
    color: var(--text-primary) !important;
    line-height: 1 !important;
}

/* Combined Layout */
body.homepage-template .widgets-container.combined-layout {
    flex-direction: row !important;
    gap: 0 !important;
}

body.homepage-template .widgets-container.combined-layout .time-widget,
body.homepage-template .widgets-container.combined-layout .weather-widget {
    display: none !important;
}

body.homepage-template .widgets-container.combined-layout .combined-widget {
    display: flex !important;
}
/* Left side: Weather section (icon above temp) */
.combined-weather-side {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1px !important; /* Reduce gap for better alignment */
    min-height: 45px !important; /* Fixed height for alignment */
    justify-content: center !important;
}
.combined-weather-icon {
    font-size: 16px !important; /* SMALLER ICON - was 20px */
    line-height: 1 !important;
    margin-bottom: 1px !important;
}
body.homepage-template .combined-temp {
    font-size: 18px !important;
    font-weight: 500 !important;
    color: var(--text-primary) !important;
    line-height: 1 !important;
}
/* Center separator - keep as vertical bar */
body.homepage-template .combined-separator {
    color: var(--text-secondary) !important;
    font-size: 16px !important;
    opacity: 0.6 !important;
    margin: 0 8px !important;
    align-self: center !important; /* Ensure vertical centering */
}
.combined-time-side {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1px !important; /* Reduce gap for better alignment */
    min-height: 45px !important; /* Fixed height for alignment */
    justify-content: center !important;
}
.combined-date {
    font-size: 13px !important; /* BIGGER DATE - was 10px */
    font-weight: 500 !important; /* Slightly bolder */
    color: var(--text-secondary) !important;
    line-height: 1 !important;
    text-align: center !important;
    margin-bottom: 1px !important;
}
body.homepage-template .combined-time {
    font-size: 18px !important;
    font-weight: 350 !important;
    color: var(--text-primary) !important;
    line-height: 1 !important;
}
/* ==============================================
   14. THEME COLORS & CONTROLS - FORCED STYLING
   ============================================== */
body.homepage-template .theme-colors {
    margin-bottom: 24px !important;
}

body.homepage-template .theme-colors h4 {
    color: var(--text-primary) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 16px !important;
}

body.homepage-template .color-palette {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

body.homepage-template .color-dot {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    border: 2px solid transparent !important;
    transition: all 0.2s ease !important;
    position: relative !important;
}

body.homepage-template .color-dot:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body.homepage-template .color-dot.active {
    border-color: var(--text-primary) !important;
    box-shadow: 0 0 0 2px var(--accent-color) !important;
    transform: scale(1.1) !important;
}

body.homepage-template .color-dot.active::after {
    content: '✓' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: white !important;
    font-size: 12px !important;
    font-weight: bold !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* ==============================================
   15. SETTINGS & CONTROLS - COMPLETE IMPLEMENTATION
   ============================================== */
body.homepage-template .settings-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin-bottom: 30px !important;
}

body.homepage-template .setting-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 10px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid var(--border-color) !important;
    transition: all 0.2s ease !important;
}

body.homepage-template .setting-item:hover {
    background: rgba(255, 255, 255, 0.04) !important;
}

body.homepage-template .setting-info span {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: var(--text-primary) !important;
}

body.homepage-template .setting-controls {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Toggle Switch - Forced Styling */
body.homepage-template .toggle-switch {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    line-height: 18px !important;
}

body.homepage-template .toggle-switch input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

body.homepage-template .toggle-switch label {
    display: block !important;
    width: 32px !important;
    height: 18px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 18px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

body.homepage-template .toggle-switch label::after {
    content: '' !important;
    position: absolute !important;
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    background: white !important;
    top: 2px !important;
    left: 2px !important;
    transition: all 0.3s ease !important;
}

body.homepage-template .toggle-switch input:checked + label {
    background: var(--accent-color) !important;
}

body.homepage-template .toggle-switch input:checked + label::after {
    transform: translateX(14px) !important;
}

/* Clock and Quote Format Toggles - ENHANCED FORCED STYLING */
body.homepage-template .setting-item .setting-controls {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    gap: 20px !important;
    width: auto !important;
    min-height: 18px !important;
}

body.homepage-template .clock-format-toggle, 
body.homepage-template .quote-size-toggle {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 11px !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
    line-height: 18px !important;
}

body.homepage-template .clock-format-option, 
body.homepage-template .quote-size-option {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    display: inline !important;
    vertical-align: middle !important;
    cursor: pointer !important;
    transition: color 0.2s ease !important;
}

body.homepage-template .clock-format-option.active, 
body.homepage-template .quote-size-option.active {
    color: #ffffff !important;
}

body.homepage-template .clock-format-option:hover,
body.homepage-template .quote-size-option:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

body.homepage-template .clock-format-separator, 
body.homepage-template .quote-size-separator {
    color: rgba(255, 255, 255, 0.4) !important;
    margin: 0 5px !important;
    font-size: 11px !important;
}

/* Light/Yellow theme text color overrides - Updated for Yellow White Text */
body.homepage-template[data-theme="light"] .clock-format-option,
body.homepage-template[data-theme="light"] .quote-size-option,
body.homepage-template[data-theme="light"] .search-engine-option {
    color: rgba(0, 0, 0, 0.5) !important;
}

body.homepage-template[data-theme="light"] .clock-format-option.active,
body.homepage-template[data-theme="light"] .quote-size-option.active,
body.homepage-template[data-theme="light"] .search-engine-option.active {
    color: #333333 !important;
}

body.homepage-template[data-theme="light"] .clock-format-separator,
body.homepage-template[data-theme="light"] .quote-size-separator,
body.homepage-template[data-theme="light"] .search-engine-separator {
    color: rgba(0, 0, 0, 0.4) !important;
}

/* Yellow theme now uses white text like other colored themes */
body.homepage-template[data-theme="yellow"] .clock-format-option,
body.homepage-template[data-theme="yellow"] .quote-size-option,
body.homepage-template[data-theme="yellow"] .search-engine-option {
    color: rgba(255, 255, 255, 0.5) !important;
}

body.homepage-template[data-theme="yellow"] .clock-format-option.active,
body.homepage-template[data-theme="yellow"] .quote-size-option.active,
body.homepage-template[data-theme="yellow"] .search-engine-option.active {
    color: #ffffff !important;
}

body.homepage-template[data-theme="yellow"] .clock-format-separator,
body.homepage-template[data-theme="yellow"] .quote-size-separator,
body.homepage-template[data-theme="yellow"] .search-engine-separator {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* ==============================================
   16. WEATHER FORECAST SYSTEM - FORCED STYLING
   ============================================== */
body.homepage-template .weather-forecast.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
}

body.homepage-template .today-location {
    font-size: 11px !important;
    color: var(--text-secondary) !important;
    margin-top: 4px !important;
    text-transform: none !important;
    letter-spacing: 0.3px !important;
    text-align: center !important;
    font-weight: 400 !important;
}

body.homepage-template .today-forecast {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 10px !important;
    gap: 10px !important;
}

body.homepage-template .today-temps {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    order: 2 !important;
}

body.homepage-template .today-icon {
    font-size: 24px !important;
    order: 1 !important;
}

body.homepage-template .today-temp-max {
    color: var(--text-primary) !important;
    font-weight: 350 !important;
    font-size: 35px !important;
    line-height: 1 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

body.homepage-template .today-temp-min {
    color: var(--text-secondary) !important;
    font-weight: 300 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    opacity: 0.8 !important;
}

body.homepage-template .forecast-days-container {
    padding: 0 !important;
    background: rgba(255, 255, 255, 0.01) !important;
    border-radius: 0 0 12px 12px !important;
}

body.homepage-template .forecast-day {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 14px !important;
    border-bottom: none !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    background: transparent !important;
    gap: 8px !important;
}

body.homepage-template .forecast-day:last-child {
    border-bottom: none !important;
    border-radius: 0 0 12px 12px !important;
}

body.homepage-template .forecast-day:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

body.homepage-template .forecast-day-name {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: var(--text-primary) !important;
    min-width: 32px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    flex-shrink: 0 !important;
}

body.homepage-template .forecast-icon {
    font-size: 16px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    width: 20px !important;
    text-align: center !important;
}

body.homepage-template .forecast-temps {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    min-width: 50px !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
}

body.homepage-template .forecast-day .temp-max {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

body.homepage-template .forecast-day .temp-min {
    color: var(--text-secondary) !important;
    font-weight: 400 !important;
    font-size: 11px !important;
    line-height: 1 !important;
    opacity: 0.7 !important;
}

/* ==============================================
   17. NO-CONTAINER WIDGETS - COMPLETE IMPLEMENTATION
   ============================================== */
body.homepage-template .time-widget.no-container,
body.homepage-template .weather-widget.no-container,
body.homepage-template .combined-widget.no-container {
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 15px 10px !important;
}

body.homepage-template .time-widget.no-container .time,
body.homepage-template .time-widget.no-container .date,
body.homepage-template .weather-widget.no-container .weather-temp,
body.homepage-template .weather-widget.no-container .weather-icon,
body.homepage-template .weather-widget.no-container .weather-description,
body.homepage-template .combined-widget.no-container .combined-temp,
body.homepage-template .combined-widget.no-container .combined-time,
body.homepage-template .combined-widget.no-container .combined-separator {
    color: var(--text-primary) !important;
    text-shadow: 
        2px 2px 6px rgba(0, 0, 0, 0.9), 
        1px 1px 3px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(0, 0, 0, 0.7) !important;
    font-weight: 350 !important;
}

body.homepage-template .combined-widget.no-container .combined-temp,
body.homepage-template .combined-widget.no-container .combined-time,
body.homepage-template .combined-widget.no-container .combined-date,
body.homepage-template .combined-widget.no-container .combined-weather-icon,
body.homepage-template .combined-widget.no-container .combined-separator {
    color: var(--text-primary) !important;
    text-shadow: 
        2px 2px 6px rgba(0, 0, 0, 0.9), 
        1px 1px 3px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(0, 0, 0, 0.7) !important;
    font-weight: 400 !important;
}


body.homepage-template .weather-widget.no-container .temp-max {
    color: var(--text-primary) !important;
    text-shadow: 
        2px 2px 6px rgba(0, 0, 0, 0.9), 
        1px 1px 3px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(0, 0, 0, 0.7) !important;
    font-weight: 350 !important;
}

body.homepage-template .weather-widget.no-container .temp-min {
    color: var(--text-primary) !important;
    text-shadow: 
        2px 2px 6px rgba(0, 0, 0, 0.9), 
        1px 1px 3px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(0, 0, 0, 0.7) !important;
    font-weight: 400 !important;
}

/* Light theme specific shadows for no-container */
body.homepage-template[data-theme="light"] .combined-widget.no-container .combined-temp,
body.homepage-template[data-theme="light"] .combined-widget.no-container .combined-time,
body.homepage-template[data-theme="light"] .combined-widget.no-container .combined-date,
body.homepage-template[data-theme="light"] .combined-widget.no-container .combined-weather-icon,
body.homepage-template[data-theme="light"] .combined-widget.no-container .combined-separator {
    color: var(--text-primary) !important;
    text-shadow: 
        2px 2px 6px rgba(255, 255, 255, 0.9), 
        1px 1px 3px rgba(255, 255, 255, 0.8),
        0 0 15px rgba(255, 255, 255, 0.7) !important;
}

/* Yellow theme now uses standard dark shadows since it has white text */
body.homepage-template[data-theme="yellow"] .time-widget.no-container .time,
body.homepage-template[data-theme="yellow"] .time-widget.no-container .date,
body.homepage-template[data-theme="yellow"] .weather-widget.no-container .weather-temp,
body.homepage-template[data-theme="yellow"] .weather-widget.no-container .weather-icon,
body.homepage-template[data-theme="yellow"] .weather-widget.no-container .weather-description,
body.homepage-template[data-theme="yellow"] .combined-widget.no-container .combined-temp,
body.homepage-template[data-theme="yellow"] .combined-widget.no-container .combined-time,
body.homepage-template[data-theme="yellow"] .combined-widget.no-container .combined-separator {
    color: var(--text-primary) !important;
    text-shadow: 
        2px 2px 6px rgba(0, 0, 0, 0.9), 
        1px 1px 3px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(0, 0, 0, 0.7) !important;
    font-weight: 600 !important;
}

/* ==============================================
   18. TRANSPARENCY SLIDERS - FORCED STYLING
   ============================================== */
body.homepage-template .overlay-transparency,
body.homepage-template .widget-transparency {
    margin-bottom: 24px !important;
}

body.homepage-template .overlay-transparency h4,
body.homepage-template .widget-transparency h4 {
    color: var(--text-primary) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
}

body.homepage-template .transparency-slider {
    position: relative !important;
    margin-bottom: 8px !important;
}

body.homepage-template .slider {
    width: 100% !important;
    height: 4px !important;
    border-radius: 2px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    outline: none !important;
    -webkit-appearance: none !important;
    cursor: pointer !important;
}

body.homepage-template .slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    background: var(--accent-color) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

body.homepage-template .slider::-webkit-slider-thumb:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 0 8px var(--accent-color) !important;
}

body.homepage-template .slider::-moz-range-thumb {
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    background: var(--accent-color) !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

body.homepage-template .slider::-moz-range-thumb:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 0 8px var(--accent-color) !important;
}

body.homepage-template .slider-labels {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 10px !important;
    color: var(--text-secondary) !important;
    opacity: 0.8 !important;
    margin-top: 4px !important;
}

body.homepage-template .transparency-slider .reset-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: bold !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    position: absolute !important;
    right: 0 !important;
    top: -8px !important;
}

body.homepage-template .transparency-slider .reset-btn:hover {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: white !important;
    transform: scale(1.1) rotate(180deg) !important;
}

/* ==============================================
   19. QUOTE FILTERS & ACTIONS - FORCED STYLING
   ============================================== */
body.homepage-template .setting-section {
    margin-bottom: 20px !important;
    padding: 20px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 10px !important;
    border: 1px solid var(--border-color) !important;
}

body.homepage-template .setting-section h4 {
    color: var(--text-primary) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding-bottom: 10px !important;
}

body.homepage-template .filter-group {
    margin-bottom: 15px !important;
}

body.homepage-template .filter-group label {
    display: block !important;
    color: var(--text-primary) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-bottom: 5px !important;
}

body.homepage-template .filter-select {
    width: 100% !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
    color: var(--text-primary) !important;
    font-size: 13px !important;
    padding: 8px 10px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

body.homepage-template .filter-select:focus {
    outline: none !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2) !important;
}

body.homepage-template .filter-select:hover {
    border-color: var(--accent-color) !important;
    background: rgba(0, 0, 0, 0.4) !important;
}

body.homepage-template .filter-select option {
    background: rgba(0, 0, 0, 0.95) !important;
    color: var(--text-primary) !important;
    padding: 8px !important;
}

body.homepage-template .filter-actions {
    display: flex !important;
    gap: 8px !important;
    margin-top: 15px !important;
    margin-bottom: 10px !important;
}

body.homepage-template .filter-btn,
body.homepage-template .random-btn {
    flex: 1 !important;
    font-size: 11px !important;
    padding: 8px 12px !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
    margin: 0 !important;
    height: 32px !important;
    line-height: 1 !important;
}

body.homepage-template .filter-btn {
    background: var(--accent-color) !important;
    color: white !important;
}

body.homepage-template .filter-btn:hover {
    opacity: 0.8 !important;
    transform: translateY(-1px) !important;
}

body.homepage-template .random-btn {
    background: #4ecdc4 !important;
    color: white !important;
}

body.homepage-template .random-btn:hover {
    background: #26d0ce !important;
    transform: translateY(-1px) !important;
}

body.homepage-template .reset-section {
    margin-top: 10px !important;
    text-align: center !important;
}

body.homepage-template .reset-btn-small {
    background: #ff6b6b !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
    font-size: 9px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    opacity: 0.7 !important;
}

body.homepage-template .reset-btn-small:hover {
    background: #ff5252 !important;
    opacity: 1 !important;
    transform: translateY(-1px) !important;
}

body.homepage-template .current-quote-info {
    margin-top: 15px !important;
    padding: 12px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 6px !important;
    border: 1px solid var(--border-color) !important;
}

body.homepage-template .current-quote-info small {
    color: var(--text-secondary) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    display: block !important;
    margin-bottom: 8px !important;
}

body.homepage-template .quote-details {
    color: var(--text-primary) !important;
}

body.homepage-template .quote-meta {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

body.homepage-template .meta-item {
    font-size: 11px !important;
    color: var(--text-secondary) !important;
    opacity: 0.9 !important;
    padding: 2px 0 !important;
    border-bottom: 1px solid var(--border-color) !important;
}

body.homepage-template .meta-item:last-child {
    border-bottom: none !important;
}

/* ==============================================
   20. ACTION BUTTONS - FORCED STYLING
   ============================================== */
body.homepage-template .action-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 20px !important;
}

body.homepage-template .action-btn {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    color: var(--text-primary) !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    margin-bottom: 12px !important;
}

body.homepage-template .action-btn:hover {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

/* ==============================================
   21. SOCIAL ICONS - FORCED STYLING
   ============================================== */
body.homepage-template .social-icons {
    display: flex !important;
    justify-content: center !important;
    gap: 20px !important;
    margin-top: 30px !important;
    padding-top: 20px !important;
    border-top: 1px solid var(--border-color) !important;
}

body.homepage-template .social-icons a {
    color: var(--text-secondary) !important;
    transition: all 0.2s ease !important;
    padding: 8px !important;
    border-radius: 6px !important;
}

body.homepage-template .social-icons a:hover {
    color: var(--accent-color) !important;
    background: var(--bg-secondary) !important;
    transform: translateY(-2px) !important;
}

/* ==============================================
   22. NOTIFICATION SYSTEM - ENHANCED STYLING
   ============================================== */
body.homepage-template .notification.show {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.homepage-template .notification.success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.9), rgba(46, 125, 50, 0.9)) !important;
    border-color: rgba(129, 199, 132, 0.5) !important;
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.3) !important;
}

body.homepage-template .notification.error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.9), rgba(198, 40, 40, 0.9)) !important;
    border-color: rgba(239, 83, 80, 0.5) !important;
    box-shadow: 0 8px 32px rgba(244, 67, 54, 0.3) !important;
}

body.homepage-template .notification.warning {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.9), rgba(230, 126, 34, 0.9)) !important;
    border-color: rgba(255, 183, 77, 0.5) !important;
    box-shadow: 0 8px 32px rgba(255, 152, 0, 0.3) !important;
}

body.homepage-template .notification.info {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.9), rgba(25, 118, 210, 0.9)) !important;
    border-color: rgba(100, 181, 246, 0.5) !important;
    box-shadow: 0 8px 32px rgba(33, 150, 243, 0.3) !important;
}

/* ==============================================
   23. LOCATION MODAL - COMPLETE IMPLEMENTATION
   ============================================== */
.location-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(5px) !important;
    z-index: 2000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
}

.location-modal.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.location-modal-content {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    width: 90% !important;
    max-width: 400px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    transform: scale(0.9) translateY(20px) !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.location-modal.active .location-modal-content {
    transform: scale(1) translateY(0) !important;
}

/* Dark theme support for location modal */
[data-theme="dark"] .location-modal-content,
[data-theme="blue"] .location-modal-content,
[data-theme="green"] .location-modal-content,
[data-theme="red"] .location-modal-content,
[data-theme="orange"] .location-modal-content {
    background: rgba(32, 32, 32, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ==============================================
   24. SCROLLBAR & UTILITY CLASSES
   ============================================== */
::-webkit-scrollbar {
    width: 2px !important;
}

::-webkit-scrollbar-track {
    background: transparent !important;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 1px !important;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

body.homepage-template .hidden {
    display: none !important;
}

/* ==============================================
   25. MOBILE GLASSMORPHIC OPTIMIZATIONS
   ============================================== */

/* Reduce blur intensity on mobile for performance */
@media (max-width: 768px) {
    body.homepage-template .quote-container,
    body.homepage-template .time-widget:not(.no-container),
    body.homepage-template .weather-widget:not(.no-container),
    body.homepage-template .combined-widget:not(.no-container),
    body.homepage-template .search-bar {
        backdrop-filter: blur(10px) saturate(150%) !important;
        -webkit-backdrop-filter: blur(10px) saturate(150%) !important;
    }
    
    body.homepage-template .mystart-sidebar,
    body.homepage-template .content-panel {
        backdrop-filter: blur(15px) saturate(150%) !important;
        -webkit-backdrop-filter: blur(15px) saturate(150%) !important;
    }
    
    /* Disable shimmer animations on mobile */
    body.homepage-template .quote-container:hover::after,
    body.homepage-template .weather-widget:hover::after,
    body.homepage-template .time-widget:hover::after {
        animation: none !important;
    }
    
    .floating-todo-widget {
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: calc(100vw - 20px) !important;
        transform: translateY(-50%) translateY(100vh) !important;
    }
    
    .floating-todo-widget.visible {
        transform: translateY(-50%) translateY(0) !important;
    }
    
    .todo-widget-header {
        padding: 12px 16px !important;
    }
    
    .todo-input-section {
        padding: 12px 16px !important;
    }
    
    .todo-actions-section {
        padding: 12px 16px !important;
    }
    
    .todo-item {
        padding: 10px 16px !important;
    }
    
    .todo-widget-title {
        font-size: 15px !important;
    }
    
    .todo-input {
        font-size: 13px !important;
        padding: 8px 10px !important;
    }
    
    .todo-text {
        font-size: 13px !important;
    }
}

/* ==============================================
   26. RESPONSIVE DESIGN - MOBILE OPTIMIZATION
   ============================================== */

/* Tablet and small desktop adjustments */
@media (max-width: 1200px) {
    body.homepage-template .weather-forecast {
        right: auto !important;
        left: 100% !important;
        margin-left: 15px !important;
        margin-right: 0 !important;
        transform: translateX(-10px) !important;
    }
    
    body.homepage-template .weather-forecast.visible {
        transform: translateX(0) !important;
    }
}

/* Mobile Landscape and Tablet Portrait */
@media (max-width: 768px) {
    /* Reorder layout: widgets top, search center, quote below */
    body.homepage-template .widgets-container {
        top: 12px !important;
        right: 12px !important;
        flex-direction: row !important;
        gap: 10px !important;
        align-items: flex-start !important;
        z-index: 15 !important;
    }
    
    /* Weather widget on the left, time widget on the right */
    body.homepage-template .weather-widget {
        order: 1 !important;
    }
    
    body.homepage-template .time-widget {
        order: 2 !important;
    }
    
    body.homepage-template .combined-widget {
        order: 1 !important;
    }
    
    /* Smaller widgets for mobile */
    body.homepage-template .time-widget,
    body.homepage-template .weather-widget {
        padding: 8px 10px !important;
        min-width: auto !important;
        border-radius: 8px !important;
    }
    
    body.homepage-template .time {
        font-size: 14px !important;
        font-weight: 500 !important;
        margin-bottom: 2px !important;
    }
    
    body.homepage-template .date {
        font-size: 9px !important;
    }
    
    body.homepage-template .weather-widget {
        padding: 8px 10px !important;
        min-width: auto !important;
    }
    
    body.homepage-template .weather-temp {
        font-size: 12px !important;
    }
    
    body.homepage-template .temp-max {
        font-size: 14px !important;
    }
    
    body.homepage-template .temp-min {
        font-size: 8px !important;
    }
    
    body.homepage-template .weather-icon {
        font-size: 12px !important;
    }
    
    body.homepage-template .weather-description {
        font-size: 8px !important;
    }
    
    /* Combined widget mobile sizing */
    body.homepage-template .combined-widget {
        padding: 8px 12px !important;
        min-width: auto !important;
        gap: 8px !important;
    }
    
    body.homepage-template .combined-widget .combined-temp {
        font-size: 12px !important;
    }
    
    body.homepage-template .combined-widget .combined-time {
        font-size: 12px !important;
    }
    
    body.homepage-template .combined-widget .combined-separator {
        font-size: 10px !important;
    }
    
    /* Search bar adjustments - more spacing from widgets */
    body.homepage-template .search-container {
        top: 70px !important; /* Increased spacing from widgets */
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 14 !important;
    }
    
    body.homepage-template .search-bar {
        padding: 6px 10px !important;
        border-radius: 20px !important;
    }
    
    body.homepage-template #searchInput {
        width: 140px !important;
        font-size: 13px !important;
        padding: 6px 10px !important;
    }
    
    body.homepage-template #searchBtn {
        padding: 4px !important;
        width: 28px !important;
        height: 28px !important;
    }
    
    /* Search options mobile */
    body.homepage-template .search-options {
        gap: 4px !important;
        margin-left: 4px !important;
    }
    
    body.homepage-template .search-option {
        font-size: 7px !important;
        padding: 1px 3px !important;
    }
    
    /* Quote container mobile optimization */
    body.homepage-template .quote-container {
        width: 95% !important;
        padding: 20px !important;
        margin-top: 50px !important;
    }
    
    body.homepage-template blockquote {
        font-size: 20px !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }
    
    body.homepage-template .author {
        font-size: 16px !important;
        margin-bottom: 15px !important;
    }
    
    /* Weather forecast mobile adjustments */
    body.homepage-template .weather-forecast {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) scale(0.9) !important;
        min-width: 200px !important;
        max-height: 60vh !important;
        margin: 0 !important;
    }
    
    body.homepage-template .weather-forecast.visible {
        transform: translate(-50%, -50%) scale(1) !important;
    }
    
    /* Sidebar mobile adjustments */
    body.homepage-template .mystart-sidebar {
        width: 60px !important;
        left: -60px !important;
    }
    
    body.homepage-template .content-panel {
        left: -300px !important;
        width: 300px !important;
    }
    
    body.homepage-template .content-panel.open {
        left: 60px !important;
    }
    
    /* Menu toggle mobile */
    body.homepage-template .menu-toggle {
        top: 15px !important;
        left: 15px !important;
        width: 38px !important;
        height: 38px !important;
        padding: 10px !important;
    }
    
    /* Mobile-specific layout override */
    body.homepage-template .homepage-content {
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding-top: 60px !important;
    }
    
    body.homepage-template .container {
        margin-top: auto !important;
        margin-bottom: auto !important;
        padding: 10px !important;
    }
    
    /* Ensure proper stacking */
    body.homepage-template .widgets-container {
        position: fixed !important;
        z-index: 15 !important;
    }
    
    body.homepage-template .search-container {
        position: fixed !important;
        z-index: 14 !important;
    }
    
    body.homepage-template .quote-container {
        position: relative !important;
        z-index: 13 !important;
    }
}

/* Mobile Portrait - Extra Small Screens */
@media (max-width: 480px) {
    body.homepage-template .widgets-container {
        top: 15px !important;
        right: 15px !important;
        gap: 12px !important;
    }
    
    body.homepage-template .time-widget,
    body.homepage-template .weather-widget {
        padding: 6px 8px !important;
        border-radius: 6px !important;
    }
    
    body.homepage-template .time {
        font-size: 12px !important;
        margin-bottom: 1px !important;
    }
    
    body.homepage-template .date {
        font-size: 8px !important;
    }
    
    body.homepage-template .weather-temp {
        font-size: 10px !important;
    }
    
    body.homepage-template .temp-max {
        font-size: 12px !important;
    }
    
    body.homepage-template .temp-min {
        font-size: 6px !important;
    }
    
    body.homepage-template .weather-icon {
        font-size: 10px !important;
    }
    
    body.homepage-template .weather-description {
        font-size: 6px !important;
    }
    
    /* Search bar extra small */
    body.homepage-template .search-container {
        top: 85px !important;
    }
    
    body.homepage-template .search-bar {
        padding: 5px 8px !important;
        border-radius: 18px !important;
    }
    
    body.homepage-template #searchInput {
        width: 100px !important;
        font-size: 12px !important;
        padding: 5px 8px !important;
    }
    
    /* Search options extra small */
    body.homepage-template .search-options {
        gap: 2px !important;
        margin-left: 2px !important;
    }
    
    body.homepage-template .search-option {
        font-size: 6px !important;
        padding: 1px 2px !important;
    }
    
    /* Quote container extra small */
    body.homepage-template .quote-container {
        width: 98% !important;
        padding: 15px !important;
        margin-top: 60px !important;
    }
    
    body.homepage-template blockquote {
        font-size: 16px !important;
        line-height: 1.2 !important;
        margin-bottom: 8px !important;
    }
    
    body.homepage-template .author {
        font-size: 12px !important;
        margin-bottom: 15px !important;
    }
}

/* Extra Mobile Layout Adjustments for Very Small Screens */
@media (max-width: 360px) {
    body.homepage-template .time-widget,
    body.homepage-template .weather-widget,
    body.homepage-template .combined-widget {
        padding: 5px 6px !important;
        border-radius: 5px !important;
    }
    
    body.homepage-template .time {
        font-size: 10px !important;
    }
    
    body.homepage-template .date {
        font-size: 7px !important;
    }
    
    body.homepage-template .weather-temp {
        font-size: 8px !important;
    }
    
    body.homepage-template .temp-max {
        font-size: 10px !important;
    }
    
    body.homepage-template .weather-icon {
        font-size: 8px !important;
    }
    
    body.homepage-template .weather-description {
        font-size: 5px !important;
    }
    
    body.homepage-template .search-container {
        top: 70px !important;
    }
    
    body.homepage-template #searchInput {
        width: 80px !important;
        font-size: 10px !important;
    }
    
    /* Hide search options on ultra small screens */
    body.homepage-template .search-options {
        display: none !important;
    }
    
    body.homepage-template .quote-container {
        width: 99% !important;
        padding: 12px !important;
        margin-top: 50px !important;
    }
    
    body.homepage-template blockquote {
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }
    
    body.homepage-template .author {
        font-size: 10px !important;
        margin-bottom: 15px !important;
    }
}

/* ==============================================
   27. QUOTE VISIBILITY TOGGLE - COMPLETE IMPLEMENTATION
   ============================================== */

/* Hide quote container when quotes are disabled */
body.homepage-template.quotes-hidden .quote-container,
body.homepage-template.quotes-disabled .quote-container,
body.homepage-template[data-quotes="false"] .quote-container,
body.homepage-template[data-show-quotes="false"] .quote-container {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Hide quote container with class-based approach */
body.homepage-template .quote-container.hidden,
body.homepage-template .container.quotes-hidden .quote-container,
body.homepage-template .container[data-quotes-visible="false"] .quote-container {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Alternative approach - if using a wrapper class */
body.homepage-template .homepage-content.hide-quotes .quote-container,
body.homepage-template .homepage-content[data-show-quotes="false"] .quote-container {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Smooth transition when hiding/showing quotes */
body.homepage-template .quote-container {
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease !important;
}

/* When quotes are hidden, center other content if needed */
body.homepage-template.quotes-hidden .homepage-content,
body.homepage-template[data-show-quotes="false"] .homepage-content {
    justify-content: center !important;
    align-items: center !important;
}

/* ==============================================
   28. MISSING FEATURES FROM SECOND CSS
   ============================================== */

/* Clock format and quote size selects from second CSS */
body.homepage-template .clock-format-select,
body.homepage-template .quote-size-select {
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 4px !important;
    color: var(--text-primary) !important;
    font-size: 10px !important;
    padding: 2px 4px !important;
    cursor: pointer !important;
    min-width: 50px !important;
    transition: all 0.2s ease !important;
}

body.homepage-template .clock-format-select:focus,
body.homepage-template .quote-size-select:focus {
    outline: none !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2) !important;
}

body.homepage-template .clock-format-select:hover,
body.homepage-template .quote-size-select:hover {
    border-color: var(--accent-color) !important;
    background: rgba(0, 0, 0, 0.8) !important;
}

body.homepage-template .clock-format-select option,
body.homepage-template .quote-size-select option {
    background: rgba(0, 0, 0, 0.95) !important;
    color: var(--text-primary) !important;
    padding: 3px !important;
}

/* Special theme handling for all elements - Updated for Yellow White Text */
body.homepage-template[data-theme="light"] .filter-select,
body.homepage-template[data-theme="light"] .clock-format-select,
body.homepage-template[data-theme="light"] .quote-size-select {
    background: rgba(255, 255, 255, 0.8) !important;
}

body.homepage-template[data-theme="light"] .filter-select option,
body.homepage-template[data-theme="light"] .clock-format-select option,
body.homepage-template[data-theme="light"] .quote-size-select option {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333333 !important;
}

/* Yellow theme now uses standard dark backgrounds since text is white */
body.homepage-template[data-theme="yellow"] .filter-select,
body.homepage-template[data-theme="yellow"] .clock-format-select,
body.homepage-template[data-theme="yellow"] .quote-size-select {
    background: rgba(0, 0, 0, 0.6) !important;
}

body.homepage-template[data-theme="yellow"] .filter-select option,
body.homepage-template[data-theme="yellow"] .clock-format-select option,
body.homepage-template[data-theme="yellow"] .quote-size-select option {
    background: rgba(0, 0, 0, 0.95) !important;
    color: var(--text-primary) !important;
}

/* Location modal additional styling from second CSS */
.location-modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.location-modal-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 0 !important;
}

.location-modal-close {
    background: none !important;
    border: none !important;
    font-size: 24px !important;
    cursor: pointer !important;
    color: #666 !important;
    padding: 4px !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.location-modal-close:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    color: #333 !important;
}

.location-search-container {
    position: relative !important;
    margin-bottom: 20px !important;
}

.location-search-input {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    background: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    outline: none !important;
}

.location-search-input:focus {
    border-color: #4285f4 !important;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2) !important;
}

.location-search-input::placeholder {
    color: #999 !important;
}

.location-results {
    max-height: 300px !important;
    overflow-y: auto !important;
    margin-top: 12px !important;
}

.location-result-item {
    padding: 12px 16px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-bottom: 4px !important;
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.location-result-item:hover {
    background: rgba(66, 133, 244, 0.1) !important;
    border-color: #4285f4 !important;
    transform: translateY(-1px) !important;
}

.location-result-name {
    font-weight: 600 !important;
    color: #333 !important;
    font-size: 14px !important;
    margin-bottom: 2px !important;
}

.location-result-details {
    font-size: 12px !important;
    color: #666 !important;
    opacity: 0.8 !important;
}

.current-location-btn {
    width: 100% !important;
    padding: 12px 16px !important;
    background: #4285f4 !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-top: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.current-location-btn:hover {
    background: #3367d6 !important;
    transform: translateY(-1px) !important;
}

.current-location-btn:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.location-loading {
    text-align: center !important;
    padding: 20px !important;
    color: #666 !important;
    font-size: 14px !important;
}

.location-error {
    text-align: center !important;
    padding: 20px !important;
    color: #e74c3c !important;
    font-size: 14px !important;
    background: rgba(231, 76, 60, 0.1) !important;
    border-radius: 8px !important;
    margin-top: 12px !important;
}

.selected-location-info {
    background: rgba(76, 175, 80, 0.1) !important;
    border: 1px solid rgba(76, 175, 80, 0.3) !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    margin-bottom: 16px !important;
}

.selected-location-name {
    font-weight: 600 !important;
    color: #2e7d32 !important;
    font-size: 14px !important;
    margin-bottom: 2px !important;
}

.selected-location-coords {
    font-size: 12px !important;
    color: #4caf50 !important;
    opacity: 0.8 !important;
}

/* Dark theme support for location modal */
[data-theme="dark"] .location-search-input,
[data-theme="blue"] .location-search-input,
[data-theme="green"] .location-search-input,
[data-theme="red"] .location-search-input,
[data-theme="orange"] .location-search-input {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .location-result-item,
[data-theme="blue"] .location-result-item,
[data-theme="green"] .location-result-item,
[data-theme="red"] .location-result-item,
[data-theme="orange"] .location-result-item {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .location-result-name,
[data-theme="blue"] .location-result-name,
[data-theme="green"] .location-result-name,
[data-theme="red"] .location-result-name,
[data-theme="orange"] .location-result-name {
    color: #ffffff !important;
}

/* Light and yellow theme specific adjustments */
[data-theme="light"] .location-modal-content,
[data-theme="yellow"] .location-modal-content {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* ==============================================
   ENHANCED YELLOW THEME SPECIFIC STYLING
   ============================================== */

/* Premium Quote Container for Yellow Theme */
body.homepage-template[data-theme="yellow"] .quote-container {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(255, 193, 7, 0.3)) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid var(--glass-border, var(--border-color)) !important;
    border-radius: 20px !important;
    box-shadow: var(--glass-shadow, 0 8px 32px rgba(0, 0, 0, 0.12)) !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Simple shine effect for yellow quote container - same as other themes */
body.homepage-template[data-theme="yellow"] .quote-container::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent) !important;
    z-index: 1 !important;
}

/* Remove the glow animation - no ::after element */

/* Enhanced Yellow Theme Widgets */
body.homepage-template[data-theme="yellow"] .time-widget:not(.no-container),
body.homepage-template[data-theme="yellow"] .weather-widget:not(.no-container),
body.homepage-template[data-theme="yellow"] .combined-widget:not(.no-container) {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.45), rgba(255, 193, 7, 0.35)) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1.5px solid rgba(255, 235, 59, 0.8) !important;
    border-radius: 20px !important;
    box-shadow: 
        0 12px 40px rgba(255, 193, 7, 0.25),
        0 6px 20px rgba(255, 215, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

/* Enhanced Yellow Theme Widget Glow */
body.homepage-template[data-theme="yellow"] .time-widget:not(.no-container)::before,
body.homepage-template[data-theme="yellow"] .weather-widget:not(.no-container)::before,
body.homepage-template[data-theme="yellow"] .combined-widget:not(.no-container)::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.6), 
        rgba(255, 215, 0, 0.4),
        rgba(255, 255, 255, 0.6), 
        transparent) !important;
    z-index: 1 !important;
}

/* Enhanced Yellow Theme Search Bar */
body.homepage-template[data-theme="yellow"] .search-bar {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(255, 193, 7, 0.3)) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1.5px solid rgba(255, 235, 59, 0.7) !important;
    border-radius: 30px !important;
    box-shadow: 
        0 8px 32px rgba(255, 193, 7, 0.3),
        0 4px 16px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Enhanced Yellow Theme Sidebar */
body.homepage-template[data-theme="yellow"] .mystart-sidebar {
    background: linear-gradient(180deg, 
        rgba(255, 193, 7, 0.7), 
        rgba(255, 215, 0, 0.6), 
        rgba(255, 235, 59, 0.5)) !important;
    backdrop-filter: blur(25px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(200%) !important;
    border-right: 2px solid rgba(255, 235, 59, 0.8) !important;
    box-shadow: 
        4px 0 40px rgba(255, 193, 7, 0.3),
        2px 0 20px rgba(255, 215, 0, 0.2) !important;
}

/* Enhanced Yellow Theme Content Panel */
body.homepage-template[data-theme="yellow"] .content-panel {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.5), 
        rgba(255, 193, 7, 0.4), 
        rgba(255, 235, 59, 0.3)) !important;
    backdrop-filter: blur(30px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(200%) !important;
    border-right: 2px solid rgba(255, 235, 59, 0.8) !important;
    box-shadow: 
        4px 0 60px rgba(255, 193, 7, 0.4),
        2px 0 30px rgba(255, 215, 0, 0.3) !important;
}

/* Enhanced Yellow Theme Menu Toggle */
body.homepage-template[data-theme="yellow"] .menu-toggle {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.6), rgba(255, 193, 7, 0.5)) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1.5px solid rgba(255, 235, 59, 0.8) !important;
    border-radius: 16px !important;
    box-shadow: 
        0 8px 32px rgba(255, 193, 7, 0.4),
        0 4px 16px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Enhanced Yellow Theme Hover Effects */
body.homepage-template[data-theme="yellow"] .weather-widget:hover,
body.homepage-template[data-theme="yellow"] .time-widget:hover,
body.homepage-template[data-theme="yellow"] .combined-widget:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 
        0 20px 60px rgba(255, 193, 7, 0.4),
        0 12px 40px rgba(255, 215, 0, 0.3),
        0 6px 20px rgba(255, 235, 59, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
}

body.homepage-template[data-theme="yellow"] .quote-container:hover {
    transform: translateY(-2px) scale(1.01) !important;
    box-shadow: 
        0 24px 80px rgba(255, 193, 7, 0.4),
        0 16px 60px rgba(255, 215, 0, 0.3),
        0 8px 32px rgba(255, 235, 59, 0.2) !important;
}

body.homepage-template[data-theme="yellow"] .search-bar:focus-within {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.5), rgba(255, 193, 7, 0.4)) !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 
        0 12px 40px rgba(255, 193, 7, 0.4),
        0 6px 20px rgba(255, 215, 0, 0.3),
        0 0 0 4px rgba(255, 235, 59, 0.3) !important;
    transform: scale(1.02) !important;
}

body.homepage-template[data-theme="yellow"] .menu-toggle:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.8), rgba(255, 193, 7, 0.7)) !important;
    transform: scale(1.1) rotate(5deg) !important;
    box-shadow: 
        0 12px 40px rgba(255, 193, 7, 0.5),
        0 6px 20px rgba(255, 215, 0, 0.4) !important;
}

/* Enhanced Yellow Theme Text Styling */
body.homepage-template[data-theme="yellow"] .quote-container blockquote,
body.homepage-template[data-theme="yellow"] .quote-container .author {
    text-shadow: 
        2px 2px 8px rgba(0, 0, 0, 0.6),
        1px 1px 4px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 215, 0, 0.3) !important;
    color: #ffffff !important;
}

/* Enhanced Yellow Theme Weather Forecast */
body.homepage-template[data-theme="yellow"] .today-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.5), rgba(255, 193, 7, 0.4)) !important;
    backdrop-filter: blur(25px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(200%) !important;
    border: 1.5px solid rgba(255, 235, 59, 0.8) !important;
    border-radius: 20px 20px 0 0 !important;
    box-shadow: 
        0 8px 32px rgba(255, 193, 7, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

/* Enhanced Yellow Theme Color Dot */
body.homepage-template[data-theme="yellow"] .color-dot.active {
    border-color: #ffffff !important;
    box-shadow: 
        0 0 0 3px rgba(255, 215, 0, 0.6),
        0 4px 20px rgba(255, 193, 7, 0.4) !important;
    transform: scale(1.15) !important;
}

/* Enhanced Yellow Theme Notification */
body.homepage-template[data-theme="yellow"] .notification {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.9), rgba(255, 193, 7, 0.8)) !important;
    backdrop-filter: blur(25px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(200%) !important;
    border: 1.5px solid rgba(255, 235, 59, 0.8) !important;
    box-shadow: 
        0 12px 40px rgba(255, 193, 7, 0.4),
        0 6px 20px rgba(255, 215, 0, 0.3) !important;
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* ==============================================
   END ENHANCED YELLOW THEME STYLING
   ============================================== */

/* Ensure weather widget clickable */
body.homepage-template .weather-widget {
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

body.homepage-template .weather-widget:hover {
    transform: scale(1.02) !important;
}

/* Force hide sidebars with lower z-index than quote */
body.homepage-template .mystart-sidebar,
body.homepage-template .content-panel {
    z-index: 999 !important;
}

/* Emergency override for quote container positioning */
body.homepage-template .quote-container {
    position: relative !important;
    display: block !important;
    margin: 0 auto !important;
    float: none !important;
}

/* Force theme transitions */
body.homepage-template * {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease !important;
}

/* Additional elements that need theme colors - COMPREHENSIVE LIST */
body.homepage-template .filter-select,
body.homepage-template .action-btn,
body.homepage-template .filter-btn,
body.homepage-template .random-btn,
body.homepage-template .reset-btn-small,
body.homepage-template .current-quote-info,
body.homepage-template .setting-section,
body.homepage-template .meta-item,
body.homepage-template .quote-details,
body.homepage-template .filter-group label,
body.homepage-template .overlay-transparency h4,
body.homepage-template .widget-transparency h4,
body.homepage-template .clock-format-select,
body.homepage-template .quote-size-select {
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

/* Ensure all interactive elements respond to themes */
body.homepage-template .action-btn {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

body.homepage-template .action-btn:hover {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: white !important;
}

/* Landscape orientation adjustments for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    body.homepage-template .widgets-container {
        top: 5px !important;
        right: 5px !important;
        flex-direction: row !important;
        gap: 8px !important;
    }
    
    body.homepage-template .search-container {
        top: 5px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    body.homepage-template .quote-container {
        margin-top: 10px !important;
        padding: 15px !important;
    }
    
    body.homepage-template blockquote {
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }
    
    body.homepage-template .author {
        font-size: 14px !important;
    }
    
    body.homepage-template .homepage-content {
        padding: 10px !important;
    }
}
/* FIXED: Theme-Specific Styling for Subcategories */
body.homepage-template[data-theme="light"] .subcategory-card {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.homepage-template[data-theme="light"] .subcategory-card:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
}

body.homepage-template[data-theme="yellow"] .subcategory-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 193, 7, 0.1)) !important;
    border-color: rgba(255, 235, 59, 0.4) !important;
}

body.homepage-template[data-theme="yellow"] .subcategory-card:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 193, 7, 0.2)) !important;
    border-color: rgba(255, 235, 59, 0.6) !important;
}
/* Extra css  */
#backgroundsCategories::-webkit-scrollbar,
#backgroundsPhotosGrid::-webkit-scrollbar {
    width: 6px;
}

#backgroundsCategories::-webkit-scrollbar-track,
#backgroundsPhotosGrid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

#backgroundsCategories::-webkit-scrollbar-thumb,
#backgroundsPhotosGrid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

#backgroundsCategories::-webkit-scrollbar-thumb:hover,
#backgroundsPhotosGrid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* FIXED: Ensure sidebar doesn't auto-close when interacting with backgrounds */
.content-panel.open {
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.content-panel.open #backgrounds-content.active {
    display: block !important;
}

/* FIXED: Prevent sidebar auto-close on background selection */
.sidebar-icon[data-section="backgrounds"].active {
    background: var(--accent-color) !important;
    color: white !important;
}

/* FIXED: Technology thumbnail and other category images loading */
.category-image[src*="photo-1518709268805"] {
    object-position: center center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-image[onerror] {
    min-height: 120px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color) 0%, rgba(255, 255, 255, 0.1) 100%);
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.category-image[onerror]::after {
    content: attr(alt);
    text-align: center;
    padding: 20px;
}

/* FIXED: Loading state for individual images */
.category-image,
.photo-image {
    transition: opacity 0.3s ease;
}

.category-image[style*="opacity"],
.photo-image[style*="opacity"] {
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image[style*="opacity"]::before,
.photo-image[style*="opacity"]::before {
    content: "📷";
    font-size: 24px;
    opacity: 0.5;
}

/* FIXED: Enhanced hover effects */
.category-card,
.subcategory-card,
.photo-item {
    will-change: transform;
}

.category-card:active,
.photo-item:active {
    transform: translateY(-1px) scale(0.98);
}

/* Focus States for Keyboard Navigation */
.category-card:focus,
.subcategory-card:focus,
.photo-item:focus,
.load-more-btn:focus,
#backgroundsSearchBtn:focus,
.backgrounds-back-btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}
/* FIXED: Ensure Grid Switches Properly */
#backgroundsPhotosGrid.backgrounds-photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
}
/* FIXED: Subcategories Grid Layout - Two Columns */
#backgroundsPhotosGrid.backgrounds-subcategories-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* Exactly 2 columns */
    gap: 16px !important;
    padding: 16px !important;
    max-height: calc(100vh - 250px) !important;
    overflow-y: auto !important;
}
/* FIXED: Prevent Grid Layout Conflicts */
#backgroundsPhotosGrid:not(.backgrounds-subcategories-grid):not(.backgrounds-photos-grid) {
    display: block !important;
}
/* FIXED: Loading States */
.backgrounds-subcategories-grid .backgrounds-loading {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 60px 20px !important;
    color: var(--text-secondary) !important;
    text-align: center !important;
}
/* FIXED: Empty States */
.backgrounds-subcategories-grid .backgrounds-empty {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 60px 20px !important;
    color: var(--text-secondary) !important;
    text-align: center !important;
}
/* FIXED: Error States */
.backgrounds-subcategories-grid .backgrounds-error {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 60px 20px !important;
    color: #ff6b6b !important;
    text-align: center !important;
}
/* FIXED: Subcategory Cards with Proper Cursor and Hover */
.subcategory-card {
    position: relative !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    min-height: 120px !important;
    max-height: 120px !important; /* Prevent height variations */
    display: flex !important;
    flex-direction: column !important;
    user-select: none !important;
    width: 100% !important; /* Ensure full width */
    box-sizing: border-box !important; /* Include borders in width */
}
.subcategory-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3) !important;
    border-color: var(--accent-color) !important;
    z-index: 10 !important; /* Bring to front on hover */
}
/* FIXED: Ensure Subcategories Are Clickable */
.subcategory-card {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}
.subcategory-card {
    will-change: transform !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
}
.subcategory-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
/* FIXED: Enhanced Hover Effects */
.subcategory-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    border-color: var(--accent-color) !important;
    cursor: pointer !important; /* Ensure cursor stays pointer on hover */
}

/* FIXED: Loading State for Subcategory Cards */
.subcategory-card.loading {
    pointer-events: none !important;
    opacity: 0.6 !important;
    cursor: wait !important;
}

.subcategory-card.loading::after {
    content: '⏳' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 24px !important;
    background: rgba(0, 0, 0, 0.8) !important;
    padding: 12px !important;
    border-radius: 50% !important;
    z-index: 10 !important;
    animation: pulse 2s ease-in-out infinite !important;
}
/* FIXED: Subcategory Images */
.subcategory-image {
    width: 100% !important;
    height: 80px !important; /* Fixed height */
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
    flex-shrink: 0 !important;
}
.subcategory-image {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.subcategory-card:hover .subcategory-image {
    transform: scale(1.03) !important;
}

/* FIXED: Subcategory overlay always visible */
.subcategory-overlay {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)) !important;
    padding: 10px 8px 6px !important;
    color: white !important;
    height: 40px !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    opacity: 1 !important; /* Always visible */
    transition: background 0.3s ease !important; /* Only transition background */
}

.subcategory-card:hover .subcategory-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0.4),
        rgba(0, 0, 0, 0.9)
    ) !important;
}


.subcategory-title {
    font-weight: 600 !important;
    font-size: 12px !important;
    text-align: center !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    opacity: 1 !important; /* Always visible */
}
/* FIXED: Prevent Grid Conflicts */
#backgroundsPhotosGrid:not(.backgrounds-subcategories-grid) .subcategory-card {
    display: none !important; /* Hide subcategory cards when not in subcategory mode */
}

#backgroundsPhotosGrid.backgrounds-subcategories-grid .photo-item {
    display: none !important; /* Hide photo items when in subcategory mode */
}
/* FIXED: Focus States for Accessibility */
.subcategory-card:focus {
    outline: 2px solid var(--accent-color) !important;
    outline-offset: 2px !important;
}

/* FIXED: Active State */
.subcategory-card:active {
    transform: translateY(-2px) scale(0.98) !important;
}
/* FIXED: High contrast mode support */
@media (prefers-contrast: high) {
    .category-card,
    .subcategory-card,
    .photo-item {
        border-width: 2px;
    }
    
    .category-overlay,
    .subcategory-overlay,
    .photo-overlay {
        background: rgba(0, 0, 0, 0.9);
    }
    
    .persistent-attribution {
        background: rgba(0, 0, 0, 0.95) !important;
        border-width: 2px !important;
    }
}

/* FIXED: Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .category-card,
    .photo-item,
    .load-more-btn,
    .loading-spinner {
        transition: none;
        animation: none;
    }
    
    .category-card:hover,
    .photo-item:hover {
        transform: none;
    }
    
    .category-image,
    .photo-image {
        transition: none;
    }
    
    .category-card:hover .category-image,
    .photo-item:hover .photo-image {
        transform: none;
    }
}

