@import url('https://fonts.googleapis.com/css2?family=Aclonica&family=Eagle+Lake&family=MedievalSharp&family=Philosopher&family=UnifrakturMaguntia&display=swap');

:root {
    /* Color palette */
    --color-bg: #0D1117;
    --color-surface: #161B22;
    --color-primary: #14B5FF;
    --color-secondary: #845CCC;
    --color-text: #C9D1D9;
    --color-link: #14B5FF;
    --color-link-hover: #C5F8FF;

    --gradient-1: linear-gradient(to right bottom, #00C8FF, #14A5FF, #7066FF, #5E17EB);
    --gradient-2: linear-gradient(#00FFEE, #27AAFF);

    /* Font families */
    --font-aclonica: 'Aclonica', sans-serif;

    /* Glassmorphism */
    --glass-bg: rgba(0, 0, 0, 0.5);
    --glass-gradient: linear-gradient(135deg, rgba(20, 181, 255, 0.1), rgba(0, 0, 0, 0.3));
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Global styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-aclonica);
    color: var(--color-text);
}

/* Page layout */
.container {
    display: grid;
    width: min(1000px, 100%);
    min-height: 800px;
    grid-template-columns: 200px 1fr 1fr;
    grid-template-rows: 100px auto auto auto auto;
    gap: 0.5rem;
    margin-top: 50px;
    margin-bottom: 50px;
}

.header {
    grid-row: 1 / 2;
    grid-column: 1 / 4;
    background: rgba(0, 0, 0, 0.7) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-image: none !important;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.header-logo {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
    filter: drop-shadow(0 0 6px rgba(20, 181, 255, 0.6)) drop-shadow(0 0 12px rgba(121, 82, 245, 0.4));
}

.header-title {
    font-size: clamp(1.35rem, 2.4vw, 2.3rem);
    line-height: 1.1;
    font-weight: bold;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    background: linear-gradient(135deg, #00f2ff, #3b82f6, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar {
    grid-row: 2 / 4;
    grid-column: 1 / 2;
    padding: 1rem 0.25rem;
    overflow-y: auto;
    overflow-x: hidden;
    background-image: url('../images/spacebackground.png') !important;
    background-size: cover;
    background-position: center !important;
    background-repeat: no-repeat;
}

.content-1 {
    grid-row: 2 / 3;
    grid-column: 2 / 4;
}

.content-1 p {
    color: whitesmoke;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
    line-height: 1.6;
}

.content-2 {
    grid-row: 3 / 4;
    grid-column: 2 / 3;
}

.content-3 {
    grid-row: 3 / 4;
    grid-column: 3 / 4;
    align-self: stretch;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.85rem;
}

.content-3 h1 {
    width: 100%;
    margin: 0;
    text-align: center;
    font-size: clamp(0.95rem, 1.4vw, 1.25rem);
    line-height: 1.15;
}

.content-3 h3 {
    width: 100%;
    margin: 0;
    font-size: clamp(0.78rem, 1vw, 0.95rem);
    line-height: 1.25;
}

.content-3 .producer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
    align-items: stretch;
}

.content-3 .producer-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    height: 100%;
}

.content-3 .producer-card .btn-hover {
    width: 80px;
    height: 24px;
    font-size: 8px;
    margin: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-3 .producer-card .btn-hover p {
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.content-3 .producer-card .btn-hover .emoji {
    font-size: 10px;
}

.content-3 .producer-card .buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
    justify-content: flex-start;
    align-items: center;
}

.content-3 .producer-card .buttons buttons {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Donations Section */
.donations-section {
    grid-row: 4 / 5;
    grid-column: 1 / 4;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.4) !important;
}

@media (max-width: 768px) {
    .donations-links {
        gap: 1rem;
    }
    .donation-link {
        width: 100%;
        justify-content: center;
    }
}

.donations-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 800px;
}

.donations-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    padding-top: 1rem;
}

.donations-header::before {
    content: '';
    position: absolute;
    top: 0;
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--glass-border), transparent);
}

.donations-scroll-img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(121, 82, 245, 0.5));
    transition: transform 0.3s ease;
}

.donations-scroll-img:hover {
    transform: scale(1.1) rotate(-5deg);
}

.donations-quote {
    font-size: clamp(0.65rem, 0.8vw, 0.9rem);
    font-style: italic;
    background: linear-gradient(135deg, #00f2ff, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    font-weight: bold;
    max-width: 600px;
    line-height: 1.4;
}

.donations-quote .emoji {
    margin: 0 10px;
    filter: drop-shadow(0 0 5px rgba(20, 181, 255, 0.3));
}

.donations-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.donation-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--color-text);
    padding: 0.6rem 1.25rem;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
}

.donation-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-primary);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(20, 181, 255, 0.2);
}

.donation-link.cashapp:hover {
    color: #00D632; /* Cash App Green */
}

.donation-link.bmac:hover {
    color: #FFDD00; /* BMAC Yellow */
}

.donation-link.amazon_wishlist:hover {
    color: #7f3bff;
}

.footer {
    grid-row: 5 / 6;
    grid-column: 1 / 4;
    background: rgba(0, 0, 0, 0.7) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    padding: 2rem 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.5rem !important;
    background-image: none !important;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 800px;
}

.footer-main {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.footer-iframe-wrapper {
    flex: 1;
    min-width: 250px;
    max-width: 600px;
    padding: 0.5rem;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.1), rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.iframes-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1rem;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.bottom-iframe {
    width: 100%;
    max-width: 1000px;
}

@media (max-width: 600px) {
    .iframes-row {
        flex-wrap: wrap;
    }
}

.footer-iframe-wrapper .iframe-container {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.footer-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.footer-logo {
    width: 35px;
    height: 35px;
    filter: drop-shadow(0 0 8px rgba(0, 232, 255, 0.5));
}

.footer-text {
    font-family: var(--font-aclonica);
    background: linear-gradient(130deg, #00ffee, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1rem !important;
    margin: 0 !important;
    font-weight: normal !important;
}

.sidebar,
.content-1,
.content-2,
.content-3,
.footer {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    line-height: 1.5;
    padding: 1rem;
    color: #f5f5f5;
}

/* Headings */
.content-1 h1,
.content-2 h1,
.content-3 h1 {
    width: 100%;
    text-align: center;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    line-height: 1.2;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #00f2ff, #3b82f6, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.content-1 h3,
.content-2 h3,
.content-3 h3 {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.3;
    margin: 1rem 0 0.5rem;
}

/* Main container styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    padding: 0;
    margin: 0;
    min-height: 100%;
    background-image: url('../images/wisp.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: all 0.4s ease-in-out;
}

body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-rendering: optimizeLegibility;
}

.item {
    overflow-wrap: anywhere;
    word-break: break-word;
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    min-width: 0;
    min-height: 0;
    transition: transform 0.3s ease;
}

.item:hover {
    transform: translateY(-5px);
}

.app-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem;
}

.back {
    font-size: 1.5rem;
    line-height: 2em;
    white-space: nowrap;
}

/* Buttons and links */
.buttons a,
.buttons p {
    font-size: clamp(0.5rem, 0.75vw, 0.75rem);
    line-height: 1.2;
    white-space: nowrap;
    color: inherit;
    text-decoration: none;
}

/* Small-button override for container 3 */
.content-3 .btn-hover {
    width: 110px;
    height: 34px;
    margin: 0;
    font-size: 0.72rem;
    border-radius: 999px;
}

.content-3 .btn-hover p,
.content-3 .btn-hover a {
    font-size: 0.72rem;
    line-height: 1;
}

.content-3 .btn-hover a {
    text-decoration: none;
}

@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(5, auto);
        width: 95%;
        margin-top: 20px;
    }

    .header, .sidebar, .content-1, .content-2, .content-3, .donations-section, .footer {
        grid-column: 1 / 3;
        grid-row: auto;
    }

    .sidebar {
        grid-row: 2;
        grid-column: 1 / 2;
    }

    .content-1 {
        grid-row: 2;
        grid-column: 2 / 3;
    }

    .content-2 {
        grid-row: 3;
        grid-column: 1 / 2;
    }

    .content-3 {
        grid-row: 3;
        grid-column: 2 / 3;
    }

    .donations-section {
        grid-row: 4;
        grid-column: 1 / 3;
    }

    .footer {
        grid-row: 5;
        grid-column: 1 / 3;
    }
}

@media (max-width: 600px) {
    .container {
        grid-template-columns: 1fr;
    grid-template-rows: repeat(7, auto);
        gap: 0.75rem;
    }

    .header, .sidebar, .content-1, .content-2, .content-3, .donations-section, .footer {
        grid-column: 1 / 2;
        grid-row: auto;
    }

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

    .header-title {
        white-space: normal;
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }
    
    .item {
        padding: 0.75rem;
        margin: 0 0.5rem;
    }

    .sidebar .buttons {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .sidebar .btn-hover {
        width: 100%;
        margin: 0;
        height: 35px;
        font-size: clamp(8px, 2.5vw, 10px);
    }

    .sidebar .btn-hover .emoji {
        font-size: clamp(10px, 3vw, 12px);
    }

    .sidebar-header-highlight {
        margin: 0.5rem;
    }

    .sidebar-header-gradient {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
    }

    .donations-quote {
        font-size: clamp(0.75rem, 3vw, 0.9rem);
        padding: 0 0.5rem;
    }

    .donations-links {
        gap: 0.75rem;
    }

    .donation-link {
        font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    }
}

@media (max-width: 700px) {
    .content-3 .producer-grid {
        grid-template-columns: 1fr;
    }

    .content-3 .producer-card .btn-hover {
        width: 100px;
        height: 30px;
        font-size: 10px;
    }

    .content-3 .producer-card .btn-hover .emoji {
        font-size: 12px;
    }
}
/* Animated gradient for headers */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.header-title,
.eigenscribe-gradient-text,
.producer-gradient-text,
.producer-gradient-green,
.sidebar-header-gradient,
.metadata-gradient-text,
.footer-text,
.content-1 h1,
.content-2 h1,
.content-3 h1,
.donations-quote {
    background-size: 200% auto !important;
    animation: gradient-shift 5s ease infinite !important;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.4)) brightness(1.15);
}

.producer-gradient-green {
    background: linear-gradient(135deg, #4ade80, #06b6d4, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #14b5ff, #7952f5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #00ffee, #14b5ff);
}

/* Glassy button refinement for sidebar */
.sidebar .btn-hover {
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sidebar .buttons {
    margin: 0.5rem auto 1.5rem auto;
}

/* Add a subtle glow to producer cards on hover */
.producer-card:hover {
    box-shadow: 0 0 20px rgba(20, 181, 255, 0.2), 0 8px 32px 0 rgba(0, 0, 0, 0.5) !important;
    border-color: rgba(20, 181, 255, 0.4) !important;
}

/* Emoji style to restore original colors */
.emoji {
    background: transparent !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: initial !important;
    color: initial !important;
    text-shadow: none !important;
    display: inline-block;
    vertical-align: middle;
}

/* Eigenscribe wisp background */
.eigenscribe-bg {
  background-image: url('../images/wisp.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Eigenscribe gradient text */
.eigenscribe-gradient-text {
  background: linear-gradient(135deg, #00f2ff, #10b981, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
  font-weight: 800;
}

/* Purple-pinkish gradient for producers */
.producer-gradient-text {
  background: linear-gradient(135deg, #f472b6, #8b5cf6, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  font-weight: 800;
}

/* Glassmorphism effect */
.glass-panel {
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
}

.glass-panel h1,
.glass-panel h2,
.glass-panel h3,
.glass-panel h4,
.glass-panel p,
.glass-panel span,
.glass-panel li {
  color: #f5f5f5 !important;
}

/* Light cyan text */
.text-cyan-light {
  color: #c5f8ff !important;
}

.producer-desc {
  font-size: 0.8rem !important;
  line-height: 1.3 !important;
}

/* Selected item with blue-purple gradient overlay */
.selected-gradient-purple {
  background: linear-gradient(145deg, rgba(0, 232, 255, 0.25), rgba(0, 112, 235, 0.25)) !important;
  border: 1px solid rgba(20, 181, 255, 0.5) !important;
}

/* Sidebar section header gradient text */
.sidebar-header-gradient {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  text-align: center;
  width: 100%;
  font-weight: 800;
}

.stream-links-header {
  background-image: linear-gradient(135deg, #8b5cf6, #ec4899, #f43f5e);
}

.content-creation-header {
  background-image: linear-gradient(135deg, #3a59b9, #06b6d4, #10b981);
}

.merch-store-header {
  background-image: linear-gradient(135deg, #facc15, #30d30e, #00f2ff);
}

/* Light highlight for sidebar headers */
.sidebar-header-highlight {
  background: linear-gradient(90deg, rgba(20, 181, 255, 0.15), rgba(121, 82, 245, 0.12), transparent);
  border-radius: 6px;
  padding: 5px 10px;
  margin-bottom: 10px;
}

/* Green connected status overlay */
.connected-green {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(22, 163, 74, 0.25)) !important;
  border-color: rgba(34, 197, 94, 0.6) !important;
  color: #86efac !important;
}

/* Warm tag gradient for article tags */
.tag-warm {
  background: linear-gradient(145deg, rgba(247, 129, 102, 0.25), rgba(255, 166, 87, 0.2)) !important;
  border-color: rgba(247, 129, 102, 0.5) !important;
  color: #ffb088 !important;
}

/* Purple-blue gradient overlay for sidebar tags */
.tag-purple {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(139, 92, 246, 0.3), rgba(168, 85, 247, 0.25)) !important;
  border: 1px solid rgba(129, 140, 248, 0.45) !important;
  color: #c4b5fd !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Warm orange gradient text effect */
.metadata-gradient-text {
  background: #ff8c6b; /* Fallback */
  background: linear-gradient(to right, #f97316, #facc15, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  padding: 0 2px;
}

/* Node glow effect */
.node-glow {
  filter: drop-shadow(0 0 6px rgba(20, 181, 255, 0.6)) drop-shadow(0 0 12px rgba(121, 82, 245, 0.4));
}

/* Navigation arrow glow */
.nav-arrow-glow {
  box-shadow: 0 0 10px rgba(20, 181, 255, 0.5), 0 0 20px rgba(121, 82, 245, 0.3);
}

/* White smoke text */
.text-whitesmoke {
  color: #f5f5f5 !important;
}

/* Mermaid diagram container */
.mermaid-container svg {
  max-width: 100%;
  height: auto;
}

/* PyScript To-Do List Styles */
.pyscript-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.5rem;
}

.todo-input-group {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  align-items: center;
}

.todo-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  color: white;
  font-family: var(--font-aclonica);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.todo-input:focus {
  border-color: #14b5ff;
}

.todo-btn {
  margin: 0 !important;
  flex-shrink: 0;
  width: 100px !important;
  height: 36px !important;
  font-size: 0.75rem !important;
}

.todo-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 5px;
}

.todo-list::-webkit-scrollbar {
  width: 6px;
}

.todo-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.todo-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.2s ease;
}

.todo-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

.todo-item p {
  margin: 0;
  font-size: 0.95rem;
  color: #f5f5f5;
  font-weight: normal;
}

.line-through {
  text-decoration: line-through;
  opacity: 0.6;
}

/* Fix for PyScript error/splash screen causing layout issues */
py-error, .py-error, py-terminal, .py-terminal {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    overflow: hidden !important;
    visibility: hidden !important;
    display: none !important;
}
