* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Force sRGB color space for consistency across browsers */
@media (color-gamut: p3) {
    * {
        color-profile: sRGB;
    }
}

/* Screen reader only class for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Landing Page Styles - Modern Clean Design */
.landing-page {
    min-height: 100vh;
    background: #0a0e1a;
    color: #e4e6eb;
    overflow-x: hidden;
    overflow-y: visible;
}

/* Landing Header */
.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.landing-logo {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #5a9fd4, #7b68ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-login-small {
    padding: 10px 24px;
    background: transparent;
    border: 2px solid rgba(90, 159, 212, 0.3);
    color: #5a9fd4;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login-small:hover {
    background: rgba(90, 159, 212, 0.1);
    border-color: #5a9fd4;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 80px 40px 120px;
    text-align: center;
    background: linear-gradient(180deg, #0a0e1a 0%, #121827 100%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1200px;
    max-width: none;
    background: radial-gradient(circle at center top, rgba(90, 159, 212, 0.15) 0%, rgba(90, 159, 212, 0.08) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 72px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #fff;
    letter-spacing: -2px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 22px;
    line-height: 1.6;
    color: #b0b3b8;
    margin-bottom: 40px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle em {
    color: #5a9fd4;
    font-style: normal;
    font-weight: 600;
}

.btn-hero {
    padding: 18px 48px;
    background: linear-gradient(135deg, #5a9fd4, #7b68ee);
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(90, 159, 212, 0.3);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(90, 159, 212, 0.4);
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Section Styles */
.section-title {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    color: #fff;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: #b0b3b8;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Demo Section */
.demo-section {
    padding: 100px 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.demo-placeholder {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.demo-card {
    background: rgba(37, 43, 61, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(90, 159, 212, 0.2);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.demo-card:hover {
    transform: translateY(-8px);
    border-color: rgba(90, 159, 212, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.demo-card-header {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #e4e6eb;
}

.demo-card-item {
    padding: 10px;
    margin-bottom: 8px;
    background: rgba(45, 53, 72, 0.5);
    border-radius: 6px;
    font-size: 14px;
    color: #b0b3b8;
    border-left: 3px solid #5a9fd4;
}

.demo-card-text {
    color: #b0b3b8;
    font-size: 14px;
    line-height: 1.6;
}

/* Features Section */
.features-section {
    padding: 120px 0;
    background: #0a0e1a;
}

.features-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.features-visual {
    position: relative;
}

.features-placeholder-image {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, rgba(90, 159, 212, 0.1), rgba(123, 104, 238, 0.1));
    border-radius: 16px;
    border: 1px solid rgba(90, 159, 212, 0.2);
    position: relative;
    overflow: hidden;
}

.placeholder-badge {
    position: absolute;
    background: rgba(37, 43, 61, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(90, 159, 212, 0.3);
    border-radius: 8px;
    padding: 16px;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.placeholder-badge.small {
    min-width: 140px;
    padding: 12px;
}

.placeholder-badge.tall {
    padding: 20px 16px;
}

.placeholder-badge-header {
    font-size: 14px;
    font-weight: 700;
    color: #e4e6eb;
    margin-bottom: 12px;
}

.placeholder-badge-line {
    height: 8px;
    background: rgba(90, 159, 212, 0.3);
    border-radius: 4px;
    margin-bottom: 8px;
}

.placeholder-badge-line.short {
    width: 60%;
}

.features-content {
    text-align: left;
}

.features-content .section-title {
    text-align: left;
    margin-bottom: 16px;
}

.features-content .section-subtitle {
    text-align: left;
    margin-bottom: 48px;
    margin-left: 0;
    margin-right: 0;
}

.features-list-simple {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.feature-simple {
    text-align: left;
}

.feature-simple h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #e4e6eb;
}

.feature-simple p {
    font-size: 16px;
    line-height: 1.7;
    color: #b0b3b8;
    margin: 0;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: #121827;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 64px;
    font-weight: 900;
    background: linear-gradient(135deg, #5a9fd4, #7b68ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 18px;
    color: #b0b3b8;
    font-weight: 500;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: #0a0e1a;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.testimonial-card {
    padding: 32px;
    background: rgba(37, 43, 61, 0.4);
    border: 1px solid rgba(90, 159, 212, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(90, 159, 212, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: #e4e6eb;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    font-size: 14px;
    color: #5a9fd4;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(90, 159, 212, 0.1), rgba(123, 104, 238, 0.1));
    text-align: center;
}

.cta-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.cta-subtitle {
    font-size: 18px;
    color: #b0b3b8;
    margin-bottom: 40px;
}

.btn-cta {
    padding: 18px 48px;
    background: linear-gradient(135deg, #5a9fd4, #7b68ee);
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(90, 159, 212, 0.3);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(90, 159, 212, 0.4);
}

/* Footer Section */
.landing-footer-section {
    padding: 40px 0;
    background: #0a0e1a;
    text-align: center;
    border-top: 1px solid rgba(90, 159, 212, 0.1);
}

.landing-footer-section p {
    color: #8a8d91;
    font-size: 14px;
}

:root {
    --primary-color: #5a9fd4;
    --secondary-color: #7b68ee;
    --bg-color: #1a1f2e;
    --text-color: #e4e6eb;
    --border-color: #2d3548;
    --widget-bg: #252b3d;
    --widget-hover: #2d3548;
    --header-bg: #1e2433;
    --entry-bg: #2d3548;
    --font-family: Arial, sans-serif;
    --base-font-size: 14px;
}

body {
    font-family: var(--font-family);
    font-size: var(--base-font-size);
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 0;
    margin: 0;
    min-height: 100vh;
    /* Always reserve space for scrollbar to prevent layout shift between tabs */
    overflow-y: scroll;
}

#dashboardContent {
    min-height: 100vh;
    background-color: var(--bg-color);
    transition: background-color 0.4s ease;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 80px);
}

.dashboard-header {
    display: grid;
    grid-template-columns: 1fr auto;
    /* Anchor tab borders down to the bottom edge of the header */
    align-items: flex-end;
    margin-bottom: 20px;
    /* Tabs should sit flush on the bottom border (no dead-zone gap) */
    padding: 12px 20px 0 20px;
    background: var(--header-bg);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    width: 100%;
    position: relative;
    left: 0;
    right: 0;
    border-bottom: 2px solid rgba(90, 159, 212, 0.3);
    gap: 20px;
}

.header-left {
    display: flex;
    /* Anchor the tabs to the bottom edge of the header */
    align-items: flex-end;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.dashboard-header h1 {
    font-size: 20px;
    /* Match landing page "Get Started" button gradient */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
    flex-shrink: 0;
    /* Center the page title within the header */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 5; /* Below tabs (z-index: 10) but above header background */
    pointer-events: none; /* Allow clicks to pass through to elements behind */
    line-height: 1.1;
    z-index: 2;
    pointer-events: none;
}

.header-controls {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    /* Preserve bottom breathing room for buttons after removing header padding-bottom */
    padding-bottom: 12px;
    justify-self: end; /* Align to the right within the grid cell */
    transition: all 0.3s ease;
    flex-wrap: nowrap;
    align-items: center;
}

.header-controls .btn {
    padding: 8px 16px;
    font-size: 13px;
    /* Avoid animating padding/size (causes vertical "squish" in header). */
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                opacity 0.3s ease,
                transform 0.3s ease;
}

/* Dashboard Tabs Inline Styles */
.dashboard-tabs-inline {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--tab-border, rgba(90, 159, 212, 0.3)) transparent;
    padding: 0;
    margin-bottom: 0;
}

.dashboard-tabs-inline::-webkit-scrollbar {
    height: 6px;
}

.dashboard-tabs-inline::-webkit-scrollbar-track {
    background: transparent;
}

.dashboard-tabs-inline::-webkit-scrollbar-thumb {
    background: var(--tab-border, rgba(90, 159, 212, 0.3));
    border-radius: 3px;
}

.dashboard-tabs-inline::-webkit-scrollbar-thumb:hover {
    background: var(--tab-active-text, rgba(90, 159, 212, 0.5));
}

.dashboard-tabs {
    display: flex;
    gap: 2px;
    min-width: 0;
    align-items: flex-end;
    margin-bottom: -2px; /* Overlap the 2px header border so tab borders reach the bottom */
}

.dashboard-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--tab-inactive-bg, #252d3d);
    border: 1px solid var(--tab-border, rgba(90, 159, 212, 0.3));
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    color: var(--tab-text, rgba(228, 230, 235, 0.7));
    font-size: 13px;
    position: relative;
    flex-shrink: 0;
    margin-bottom: 0;
}

.dashboard-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background 0.2s ease;
}

.dashboard-tab:hover {
    background: var(--tab-hover-bg, #2a3448);
    border-color: var(--tab-border, rgba(90, 159, 212, 0.5));
    color: var(--tab-text, rgba(228, 230, 235, 0.9));
    transform: translateY(-2px);
}

.dashboard-tab.active {
    background: var(--tab-active-bg, #1e2433);
    border-color: var(--tab-border, rgba(90, 159, 212, 0.6));
    border-bottom: none;
    color: var(--tab-active-text, #5a9fd4);
    font-weight: 600;
    z-index: 10;
    transform: translateY(0);
}

.dashboard-tab.active::after {
    background: var(--tab-active-bg, #1e2433);
}

.dashboard-tab-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-tab-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show actions on hover when controls are NOT hidden */
body:not(.controls-hidden) .dashboard-tab:hover .dashboard-tab-actions {
    opacity: 1;
}

/* Show actions on active tab when controls are NOT hidden */
body:not(.controls-hidden) .dashboard-tab.active .dashboard-tab-actions {
    opacity: 1;
}

.dashboard-tab-btn {
    padding: 3px 6px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-color);
    font-size: 12px;
    transition: all 0.3s ease;
    line-height: 1;
}

.dashboard-tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.dashboard-tab-btn.delete-btn:hover {
    background: rgba(244, 67, 54, 0.3);
    color: #f44336;
}

.btn-add-dashboard-inline {
    padding: 8px 16px;
    background: rgba(90, 159, 212, 0.15);
    border: 1px solid rgba(90, 159, 212, 0.4);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    /* Keep hover + hide/show smooth without affecting header height */
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                opacity 0.3s ease,
                transform 0.3s ease,
                max-width 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
    margin-bottom: 0;
}

/* Header edit controls should slide horizontally in/out (no vertical squish) */
.header-controls #addBadgeBtn,
.header-controls #settingsBtn {
    max-width: 240px; /* enables max-width animation from 0 → normal */
    overflow: hidden;
    white-space: nowrap;
    transform: translateX(0);
    transition: max-width 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.btn-add-dashboard-inline:hover {
    background: rgba(90, 159, 212, 0.25);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 -2px 8px rgba(90, 159, 212, 0.2);
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #357abd;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.controls-panel {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 15px 20px;
    background: var(--widget-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    margin-bottom: 20px;
    flex-wrap: wrap;
    border: 1px solid var(--border-color);
}

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

.control-group label {
    font-weight: 500;
}

.control-group input[type="number"] {
    width: 60px;
    padding: 5px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--entry-bg);
    color: var(--text-color);
}

.control-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.badges-container {
    display: grid;
    grid-template-columns: repeat(var(--columns, 3), 1fr);
    column-gap: 20px;
    row-gap: 0; /* Spacing is controlled by row placement (10px grid rows + GAP_BETWEEN_BADGES in JS) */
    position: relative;
    grid-auto-flow: row; /* Normal flow - badges go in order */
    grid-auto-rows: 10px; /* Granular rows: 10px each (matches relayoutFromDOM / DnD math) */
    align-items: start;
    padding-top: 20px;
}

.badge-column {
    /* Legacy class kept for backwards compatibility, not used in grid layout */
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    align-items: stretch;
    align-content: flex-start;
    padding-top: 50px;
}

.drop-indicator {
    border: 2px dashed var(--primary-color);
    background: rgba(74, 144, 226, 0.1);
    border-radius: 4px;
    pointer-events: none;
    z-index: 100;
    position: absolute;
}

.badge {
    background: var(--widget-bg);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: default; /* Default cursor - only header shows grab */
    position: relative;
    overflow: hidden; /* Changed to hidden so content scrolls within badge */
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    /* Grid positioning - set via inline styles (grid-column, grid-row) */
}

/* Removed badge hover "lift" effect (no movement/glow on hover) */

.badge.dragging {
    opacity: 0.95;
    transform: none;
    box-shadow: 0 12px 30px rgba(0,0,0,0.55);
}

.badge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    padding-right: 5px;
    border-bottom: 2px solid var(--border-color);
    cursor: grab; /* Show grab cursor only on draggable header */
    user-select: none; /* Prevent text selection while dragging */
}

.badge-header:active {
    cursor: grabbing; /* Show grabbing cursor when actively dragging */
}

/* iPhone-style live reorder */
body.badge-reordering {
    cursor: grabbing;
}

body.badge-reordering .badge {
    will-change: transform;
    transition: transform 160ms cubic-bezier(0.2, 0, 0, 1), box-shadow 160ms cubic-bezier(0.2, 0, 0, 1);
}

body.badge-reordering .badge:hover {
    /* Avoid hover "lift" fighting with drag transforms */
    transform: none;
}

body.badge-reordering .badge.dragging {
    transition: none;
    z-index: 2000;
}

/* On drop/commit, we want an instant snap (no "fly-in" animation) */
body.no-reorder-animation .badge {
    transition: none !important;
}

body.no-reorder-animation .badge:hover {
    transform: none !important;
}

.badge-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
    cursor: inherit; /* Inherit grab cursor from header */
}

.badge-actions {
    display: flex;
    gap: 8px;
    margin-left: 10px;
    cursor: default; /* Default cursor for actions container, buttons override */
}

body.controls-hidden .badge-actions button[data-action="settings"],
body.controls-hidden .badge-actions button[data-action="add-habit"],
body.controls-hidden .badge-actions button[data-action="delete"] {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: scale(0.8) !important;
    pointer-events: none !important;
    max-width: 0 !important;
    padding: 5px 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

body.controls-hidden #settingsBtn {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(-16px) !important;
    pointer-events: none !important;
    max-width: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-width: 0 !important;
    overflow: hidden !important;
}

body.controls-hidden #addBadgeBtn {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(-16px) !important;
    pointer-events: none !important;
    max-width: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-width: 0 !important;
    overflow: hidden !important;
}

body.controls-hidden #addDashboardBtn {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(-16px) !important;
    pointer-events: none !important;
    max-width: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-width: 0 !important;
    overflow: hidden !important;
}

body.controls-hidden .dashboard-tab-actions {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: scale(0.8) !important;
    pointer-events: none !important;
}

body.controls-hidden .badge-header {
    cursor: default !important;
}

body.controls-hidden .badge-header:active {
    cursor: default !important;
}

#toggleControlsBtn {
    min-width: 40px;
    padding: 8px 12px;
}

.badge-actions button {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer; /* Pointer cursor for buttons, overrides header grab */
    font-size: 12px;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    color: var(--text-color);
}

.badge-actions button:hover {
    background: rgba(255,255,255,0.2);
}

/* Make refresh icon more legible */
.badge-actions button[data-action="refresh"] {
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 0 2px rgba(255,255,255,0.3);
}

.feed-entries {
    display: flex;
    flex-direction: column;
    gap: 0; /* Use marginBottom on entries for spacing, controlled by entrySpacing setting */
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
    cursor: auto; /* Default cursor for badge content */
    overflow-y: auto; /* Enable scrolling for RSS feeds */
    overflow-x: hidden;
    flex: 1; /* Take remaining space in badge */
    /* Default: hide scrollbars (we override for RSS below to avoid layout shifting) */
    scrollbar-width: none; /* Firefox */
}

/* Hide WebKit scrollbars by default (but keep scrolling enabled) */
.feed-entries::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* RSS: keep layout stable (no padding/width changes on hover), but only show the thumb on hover */
.badge[data-badge-type="rss"] .feed-entries {
    /* Reserve scrollbar space so RSS entry borders never shift when hover shows the thumb */
    scrollbar-gutter: stable;
    scrollbar-width: thin; /* Firefox: reserves a thin scrollbar */
    scrollbar-color: transparent transparent; /* Hide thumb until hover */
    /* Minimal padding - scrollbar reserves its own space */
    --rss-scrollbar-width: 6px;
    padding-right: 0;
    padding-left: 6px;
}

.badge[data-badge-type="rss"] .feed-entries::-webkit-scrollbar {
    width: var(--rss-scrollbar-width); /* Reserve space consistently */
}

.badge[data-badge-type="rss"] .feed-entries::-webkit-scrollbar-track {
    background: transparent;
}

.badge[data-badge-type="rss"] .feed-entries::-webkit-scrollbar-thumb {
    background: transparent; /* Hidden until hover */
    border-radius: 999px;
}

.badge[data-badge-type="rss"]:hover .feed-entries {
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.badge[data-badge-type="rss"]:hover .feed-entries::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
}

.badge[data-badge-type="rss"]:hover .feed-entries::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

.feed-entry {
    padding: 6px;
    background: var(--entry-bg);
    border-radius: 5px;
    border-left: 3px solid var(--primary-color);
    transition: background-color 0.2s, box-shadow 0.2s;
}

.feed-entry:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    background: var(--widget-hover);
}

.feed-entry-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 0;
    color: var(--text-color);
}

.feed-entry-title a {
    color: inherit;
    text-decoration: none;
}

.feed-entry-title a:hover {
    text-decoration: underline;
}

.feed-entry-description {
    font-size: 14px;
    color: #b0b3b8;
    line-height: 1.5;
    /* Smooth expand/collapse animation */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out, opacity 0.2s ease-out, margin-top 0.25s ease-out;
    margin-top: 0;
}

.feed-entry-description.show {
    max-height: 150px; /* Enough for 2-3 lines of text */
    opacity: 1;
    margin-top: 6px;
}

/* Expand/Collapse button for RSS entries */
.feed-entry-title-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    /* Keep button and title text vertically aligned */
    line-height: 1;
}

.feed-entry-title {
    display: flex;
    align-items: center;
    line-height: 1;
}

.feed-entry-title a {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.feed-entry.title-only {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Initial layout: hide badges to prevent overlap flash, but show a quick loading overlay */
#badgesContainer.initial-layout {
    position: relative;
}
#badgesContainer.initial-layout .badge {
    visibility: hidden;
}
#layoutLoadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #b0b3b8;
    font-size: 16px;
    text-align: center;
    pointer-events: none;
    background: var(--bg-color, #1a1f2e);
    z-index: 500;
    transition: opacity 0.3s ease-out;
}

#layoutLoadingOverlay.fade-out {
    opacity: 0;
}

.feed-entry.title-only .feed-entry-title-wrapper {
    align-items: center;
}

.feed-entry.title-only .feed-entry-title {
    margin-bottom: 0;
}

.feed-entry-expand-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: monospace;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
    line-height: 1;
    height: 1em;
}

/* Fine-tune the + / - glyph inside the brackets without moving the brackets themselves */
.feed-entry-expand-btn .glyph {
    position: relative;
    top: 0.14em; /* positive = move DOWN */
}

.feed-entry-expand-btn:hover {
    opacity: 1;
}

.feed-entry-expand-btn:focus {
    outline: none;
    opacity: 1;
}

.feed-entry-date {
    font-size: 12px;
    color: #8a8d91;
    margin-top: 8px;
}

.notes-content {
    cursor: text;
    transition: border-color 0.2s, box-shadow 0.2s;
    flex: 1;
    min-height: 0;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    /* Match the minimalist scrollbar behavior */
    scrollbar-width: none;
}

.notes-content::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.badge:hover .notes-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
    padding-right: 4px;
}

.badge:hover .notes-content::-webkit-scrollbar {
    width: 10px;
}

.badge:hover .notes-content::-webkit-scrollbar-track {
    background: transparent;
}

.badge:hover .notes-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    border-left: 4px solid transparent;
    background-clip: padding-box;
}

.badge:hover .notes-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Vertically center link content within the badge */
.badge[data-badge-type="link"] .feed-entries,
.badge[data-badge-type="linklist"] .feed-entries {
    justify-content: center;
}

/* For linklist button-style: distribute buttons evenly while staying vertically centered overall */
.badge[data-badge-type="linklist"] .feed-entries.linklist-buttons {
    justify-content: space-evenly;
}

/* Remove per-button top margin so spacing is purely controlled by flex distribution */
.badge[data-badge-type="linklist"] .feed-entries.linklist-buttons .link-badge-button {
    margin-top: 0 !important;
}

.notes-content:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
    outline: none;
}

.badge[data-badge-id] .notes-content {
    /* Ensure textarea doesn't interfere with badge dragging */
    pointer-events: auto;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex !important;
    justify-content: center;
    align-items: center;
    z-index: 10000 !important;
}

.modal-content {
    background-color: var(--widget-bg);
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.add-badge-modal {
    max-width: 800px;
    padding: 40px;
}

/* Badge Selection Screen */
.badge-selection-screen {
    text-align: center;
}

.badge-selection-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-align: left;
}

.badge-selection-subtitle {
    font-size: 18px;
    color: #b0b3b8;
    margin-bottom: 40px;
    text-align: left;
}

.badge-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.badge-type-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
}

.badge-type-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.02);
}

.badge-type-card.selected {
    border-color: var(--primary-color);
    background: rgba(90, 159, 212, 0.1);
}

.badge-type-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.badge-type-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-type-description {
    font-size: 14px;
    color: #b0b3b8;
    line-height: 1.5;
    margin: 0;
}

.badge-config-screen {
    text-align: left;
}

.badge-config-screen h2 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.back-button-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--entry-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.back-button-bottom:hover {
    background: var(--widget-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Theme Selection Screen */
.theme-selection-screen {
    text-align: left;
}

.theme-selection-screen h2 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.theme-selection-content {
    display: grid;
    grid-template-columns: 1fr 2.5fr; /* Preview is much wider */
    gap: 30px;
    margin-bottom: 30px;
}

.theme-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.theme-options label {
    font-weight: 600;
    color: var(--text-color);
}

.theme-options select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--entry-bg);
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
}

.theme-preview-container {
    display: flex;
    flex-direction: column;
}

.theme-preview-container h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
}

.theme-preview {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    background: var(--widget-bg);
    min-height: 200px;
}

@media (max-width: 768px) {
    .theme-selection-content {
        grid-template-columns: 1fr;
    }
}

#feedSettingsModal .modal-content {
    max-width: 500px;
}

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

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

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-color);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: #ff6b6b;
    opacity: 0.8;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 3px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 6px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    background: var(--entry-bg);
    color: var(--text-color);
}

.settings-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.settings-column {
    display: flex;
    flex-direction: column;
}

.form-group-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: end;
    margin-bottom: 12px;
}

.form-group-row .form-group {
    margin-bottom: 0;
}

.form-group-row .form-group:first-child {
    min-width: 180px;
}

.form-group-row .form-group input[type="number"] {
    width: 100%;
}

.form-group input[type="color"] {
    width: 60px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #8a8d91;
}

.error {
    padding: 10px;
    background: #fee;
    color: #c33;
    border-radius: 4px;
    margin-top: 10px;
}

.settings-preview {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 15px;
    background: var(--entry-bg);
    margin-top: 10px;
    max-width: 100%;
    box-sizing: border-box;
}

.preview-badge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.preview-badge-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
}

.preview-feed-entry {
    padding: 12px;
    background: var(--widget-bg);
    border-radius: 5px;
    border-left: 3px solid var(--primary-color);
}

.preview-entry-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    padding: 4px 8px;
    border-radius: 3px;
}

.preview-entry-description {
    font-size: 14px;
    color: #b0b3b8;
    line-height: 1.5;
    margin-top: 8px;
}

.link-list-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background: var(--entry-bg);
    border-radius: 4px;
    align-items: center;
}

.link-list-item input[type="text"],
.link-list-item input[type="url"] {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    background: var(--widget-bg);
    color: var(--text-color);
}

.link-list-item button {
    padding: 8px 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.link-list-item button:hover {
    background: #c82333;
}

/* Login Modal Styles */
#loginModal .modal-content {
    max-width: 400px;
}

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

.login-form h2 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.login-form .error-message {
    padding: 10px;
    background: #fee;
    color: #c33;
    border-radius: 4px;
    margin-bottom: 10px;
    display: none;
}

.login-form .error-message.show {
    display: block;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    background: var(--entry-bg);
    color: var(--text-color);
}

.login-form button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.login-form button:hover {
    background-color: #357abd;
}

.login-form button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: gap 0.3s ease;
}

.user-info .username {
    font-weight: 500;
    color: var(--text-color);
}

.user-info .logout-btn {
    background-color: #dc3545;
    transition: all 0.3s ease;
}

.user-info .logout-btn:hover {
    background-color: #c82333;
}

.user-info .btn-admin {
    background: linear-gradient(135deg, #7b68ee, #5a9fd4);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.user-info .btn-admin:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .demo-placeholder {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .landing-header {
        padding: 16px 24px;
    }
    
    .landing-logo {
        font-size: 20px;
    }
    
    .hero {
        padding: 60px 24px 80px;
    }
    
    .hero-title {
        font-size: 42px;
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .btn-hero,
    .btn-cta {
        padding: 14px 32px;
        font-size: 16px;
    }
    
    .container {
        padding: 0 24px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .section-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .demo-section,
    .features-section,
    .testimonials-section,
    .cta-section {
        padding: 60px 0;
    }
    
    .stats-section {
        padding: 50px 0;
    }
    
    .testimonials-grid,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .features-two-column {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .features-placeholder-image {
        height: 400px;
    }
    
    .features-content .section-title,
    .features-content .section-subtitle {
        text-align: center;
    }
    
    .feature-simple {
        text-align: center;
    }
    
    .cta-title {
        font-size: 36px;
    }
    
    /* Force single column layout on mobile for dashboard */
    .badges-container {
        grid-template-columns: 1fr !important;
        --columns: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    /* Force all badges to span only 1 column on mobile and reset positioning */
    .badge {
        grid-column: span 1 !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 0 !important;
    }
    
    .dashboard-header {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* When header stacks, keep title in normal flow (not absolutely centered) */
    .dashboard-header h1 {
        position: static;
        left: auto;
        bottom: auto;
        transform: none;
        pointer-events: auto;
        margin: 0;
        align-self: center;
    }
    
    .header-left {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .dashboard-tabs-inline {
        width: 100%;
    }
    
    .header-controls {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .controls-panel {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .badge-type-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 15px;
    }
    
    .features-placeholder-image {
        height: 300px;
    }
    
    .placeholder-badge {
        min-width: 140px;
        padding: 12px;
    }
    
    .placeholder-badge-header {
        font-size: 12px;
    }
    
    .feature-simple h3 {
        font-size: 18px;
    }
    
    .feature-simple p {
        font-size: 15px;
    }
    
    .feature-card,
    .testimonial-card {
        padding: 24px 20px;
    }
    
    .stat-number {
        font-size: 48px;
    }
    
    .stat-label {
        font-size: 16px;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .cta-subtitle {
        font-size: 16px;
    }
    
    /* Additional mobile dashboard optimizations */
    .dashboard-container {
        padding: 10px;
    }
    
    .dashboard-header {
        padding: 10px;
    }
    
    .dashboard-header h1 {
        font-size: 18px;
    }
    
    .header-controls .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px 15px;
    }
    
    .add-badge-modal {
        padding: 20px 15px;
    }
    
    .settings-two-column {
        grid-template-columns: 1fr;
    }
}

/* RSS Feed Selector Styles */
.rss-feed-selector {
    position: relative;
    width: 100%;
}

#rssFeedSearch {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    background: var(--entry-bg);
    color: var(--text-color);
    box-sizing: border-box;
}

#rssFeedSearch:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(90, 159, 212, 0.2);
}

.rss-feed-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: var(--widget-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-top: 4px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.rss-feed-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.rss-feed-item:hover {
    background: var(--widget-hover);
}

.rss-feed-item.selected {
    background: rgba(90, 159, 212, 0.2);
    border-left: 3px solid var(--primary-color);
}

.rss-feed-item-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.rss-feed-item-url {
    font-size: 12px;
    color: #b0b3b8;
    word-break: break-all;
    font-family: monospace;
}

.rss-feed-item-empty {
    padding: 20px;
    text-align: center;
    color: #8a8d91;
    font-style: italic;
}

/* ============================================
   Skeleton Loading Placeholders
   ============================================ */

.skeleton-entry {
    pointer-events: none;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.skeleton-title,
.skeleton-description {
    background: linear-gradient(
        90deg,
        rgba(45, 53, 72, 0.6) 25%,
        rgba(61, 69, 88, 0.8) 50%,
        rgba(45, 53, 72, 0.6) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
    margin: 6px 0;
}

.skeleton-title {
    height: 18px;
    width: 75%;
}

.skeleton-description {
    height: 14px;
    width: 90%;
    opacity: 0.7;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Fade-in animation when real content loads */
.feed-entry {
    animation: fadeIn 0.3s ease-in;
}

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

/* Cache indicator badge (optional visual feedback) */
.from-cache-indicator {
    display: inline-block;
    font-size: 10px;
    padding: 2px 6px;
    background: rgba(90, 159, 212, 0.2);
    color: #5a9fd4;
    border-radius: 3px;
    margin-left: 8px;
    opacity: 0.7;
}

/* Loading state */
.feed-entries.loading {
    opacity: 0.6;
}

/* Smooth transition when updating cached content */
.feed-entries.updating {
    transition: opacity 0.3s ease;
}
