/*
 * Project Atlas — Custom theme layer
 * Works alongside Tailwind CDN + dark: class strategy.
 */

/* ── Smooth theme transitions ── */
*,
*::before,
*::after {
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* ── Gradient backgrounds ── */
.atlas-bg-gradient {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecf9 40%, #fdf2f8 100%);
}
.dark .atlas-bg-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #1a1a2e 100%);
}

/* ── Card styles ── */
.atlas-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 24px rgba(0, 0, 0, 0.04);
}
.dark .atlas-card {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* ── Glass navbar ── */
.atlas-navbar {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.dark .atlas-navbar {
    background: rgba(15, 23, 42, 0.78);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* ── Task row hover ── */
.atlas-task-row {
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
}
.atlas-task-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.dark .atlas-task-row:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ── Animated entrance ── */
@keyframes atlas-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes atlas-slide-in {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}
.atlas-animate-in {
    animation: atlas-fade-in 0.35s ease-out backwards;
}
.atlas-slide-in {
    animation: atlas-slide-in 0.3s ease-out both;
}

/* stagger children */
.atlas-stagger > *:nth-child(1)  { animation-delay: 0.03s; }
.atlas-stagger > *:nth-child(2)  { animation-delay: 0.06s; }
.atlas-stagger > *:nth-child(3)  { animation-delay: 0.09s; }
.atlas-stagger > *:nth-child(4)  { animation-delay: 0.12s; }
.atlas-stagger > *:nth-child(5)  { animation-delay: 0.15s; }
.atlas-stagger > *:nth-child(6)  { animation-delay: 0.18s; }
.atlas-stagger > *:nth-child(7)  { animation-delay: 0.21s; }
.atlas-stagger > *:nth-child(8)  { animation-delay: 0.24s; }
.atlas-stagger > *:nth-child(9)  { animation-delay: 0.27s; }
.atlas-stagger > *:nth-child(10) { animation-delay: 0.30s; }

/* ── Button hover glow ── */
.atlas-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.atlas-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}
.atlas-btn-primary:active {
    transform: translateY(0);
}

/* ── Checkbox ── */
.atlas-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.atlas-checkbox:hover {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.atlas-checkbox.checked {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: transparent;
}
.dark .atlas-checkbox {
    border-color: #4b5563;
}

/* ── Badge pills ── */
.atlas-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}

/* ── Toast / message animation ── */
@keyframes atlas-toast-in {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.atlas-toast {
    animation: atlas-toast-in 0.3s ease-out both;
}

/* ── Input focus ring ── */
.atlas-input {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.atlas-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.dark .atlas-input {
    background: rgba(30, 41, 59, 0.6);
    border-color: #374151;
    color: #e2e8f0;
}
.dark .atlas-input:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
}

/* ── Scrollbar (webkit) ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.dark ::-webkit-scrollbar-thumb { background: #475569; }

/* ── Details/summary ── */
details summary {
    cursor: pointer;
    user-select: none;
}
details[open] > summary {
    margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════════════
   Sticky Notes (vNote) View — Premium Design
   ═══════════════════════════════════════════════ */

/* ── Note card ── */
.atlas-note {
    position: relative;
    border-radius: 2px 2px 2px 2px;
    padding: 1.6rem 1rem 1.25rem;
    min-height: 140px;
    break-inside: avoid;
    margin-bottom: 1.25rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    border-left: 3px solid rgba(0,0,0,0.08);
    /* Ruled paper lines + color via CSS custom properties */
    --note-bg-start: #fffbeb;
    --note-bg-end: #fef3c7;
    background:
        repeating-linear-gradient(
            transparent,
            transparent 26px,
            rgba(0,0,0,0.025) 26px,
            rgba(0,0,0,0.025) 27px
        ),
        linear-gradient(145deg, var(--note-bg-start), var(--note-bg-end));
    background-position: 0 18px, 0 0;
    /* Layered 3D shadow */
    box-shadow:
        0 1px 1px rgba(0,0,0,0.04),
        0 2px 4px rgba(0,0,0,0.04),
        0 4px 8px rgba(0,0,0,0.04),
        0 8px 16px rgba(0,0,0,0.04);
}
.dark .atlas-note {
    background:
        repeating-linear-gradient(
            transparent,
            transparent 26px,
            rgba(255,255,255,0.018) 26px,
            rgba(255,255,255,0.018) 27px
        ),
        linear-gradient(145deg, var(--note-bg-start), var(--note-bg-end));
    background-position: 0 18px, 0 0;
    box-shadow:
        0 1px 1px rgba(0,0,0,0.12),
        0 2px 4px rgba(0,0,0,0.12),
        0 4px 8px rgba(0,0,0,0.10),
        0 8px 16px rgba(0,0,0,0.10);
}

/* ── Push pin (::before) ── */
.atlas-note::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 13px;
    height: 13px;
    background: radial-gradient(circle at 38% 32%,
        #ff8a8a 0%, #ef4444 32%, #dc2626 62%, #991b1b 100%);
    border-radius: 50%;
    box-shadow:
        0 2px 5px rgba(0,0,0,0.28),
        0 1px 2px rgba(0,0,0,0.15),
        inset 0 1px 3px rgba(255,255,255,0.4),
        inset 0 -1px 2px rgba(0,0,0,0.18);
    z-index: 3;
}
/* Stagger pin positions for natural feel */
.atlas-note:nth-child(3n)::before   { left: 38%; }
.atlas-note:nth-child(3n+2)::before { left: 62%; }

/* ── Corner fold (::after) ── */
.atlas-note::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: linear-gradient(
        225deg,
        rgba(255,255,255,0.7) 0%,
        rgba(255,255,255,0.6) 42%,
        rgba(0,0,0,0.04) 46%,
        rgba(0,0,0,0.09) 100%
    );
    border-bottom-right-radius: 2px;
}
.dark .atlas-note::after {
    background: linear-gradient(
        225deg,
        rgba(15,23,42,0.6) 0%,
        rgba(15,23,42,0.5) 42%,
        rgba(255,255,255,0.02) 46%,
        rgba(255,255,255,0.05) 100%
    );
}

/* ── Hover lift with 3D depth ── */
.atlas-note:hover {
    transform: translateY(-6px) rotate(0deg) !important;
    box-shadow:
        0 2px 2px rgba(0,0,0,0.03),
        0 4px 4px rgba(0,0,0,0.03),
        0 8px 8px rgba(0,0,0,0.03),
        0 16px 32px rgba(0,0,0,0.06),
        0 24px 48px rgba(0,0,0,0.04);
    z-index: 10;
}
.dark .atlas-note:hover {
    box-shadow:
        0 2px 2px rgba(0,0,0,0.10),
        0 4px 4px rgba(0,0,0,0.10),
        0 8px 8px rgba(0,0,0,0.08),
        0 16px 32px rgba(0,0,0,0.12),
        0 24px 48px rgba(0,0,0,0.08);
}

/* ── Natural rotations ── */
.atlas-note:nth-child(6n+1) { transform: rotate(-0.8deg); }
.atlas-note:nth-child(6n+2) { transform: rotate(1deg); }
.atlas-note:nth-child(6n+3) { transform: rotate(-1.2deg); }
.atlas-note:nth-child(6n+4) { transform: rotate(0.6deg); }
.atlas-note:nth-child(6n+5) { transform: rotate(-0.4deg); }
.atlas-note:nth-child(6n)   { transform: rotate(1.1deg); }

/* ── Note color themes — light (via CSS custom properties) ── */
.note-yellow    { --note-bg-start: #fefce8; --note-bg-end: #fef9c3; border-left-color: #eab308; }
.note-pink      { --note-bg-start: #fdf2f8; --note-bg-end: #fce7f3; border-left-color: #ec4899; }
.note-green     { --note-bg-start: #ecfdf5; --note-bg-end: #d1fae5; border-left-color: #10b981; }
.note-blue      { --note-bg-start: #eff6ff; --note-bg-end: #dbeafe; border-left-color: #3b82f6; }
.note-lavender  { --note-bg-start: #f5f3ff; --note-bg-end: #ede9fe; border-left-color: #8b5cf6; }
.note-peach     { --note-bg-start: #fff7ed; --note-bg-end: #ffedd5; border-left-color: #f97316; }

/* ── Note color themes — dark ── */
.dark .note-yellow    { --note-bg-start: rgba(234,179,8,0.13); --note-bg-end: rgba(245,158,11,0.08); border-left-color: #eab308; }
.dark .note-pink      { --note-bg-start: rgba(236,72,153,0.13); --note-bg-end: rgba(219,39,119,0.08); border-left-color: #ec4899; }
.dark .note-green     { --note-bg-start: rgba(16,185,129,0.13); --note-bg-end: rgba(5,150,105,0.08); border-left-color: #10b981; }
.dark .note-blue      { --note-bg-start: rgba(59,130,246,0.13); --note-bg-end: rgba(37,99,235,0.08); border-left-color: #3b82f6; }
.dark .note-lavender  { --note-bg-start: rgba(139,92,246,0.13); --note-bg-end: rgba(124,58,237,0.08); border-left-color: #8b5cf6; }
.dark .note-peach     { --note-bg-start: rgba(249,115,22,0.13); --note-bg-end: rgba(234,88,12,0.08); border-left-color: #f97316; }

/* ── Masonry grid ── */
.atlas-notes-grid {
    columns: 4;
    column-gap: 1.25rem;
    padding-top: 0.5rem;
}
@media (max-width: 1280px) { .atlas-notes-grid { columns: 3; } }
@media (max-width: 768px)  { .atlas-notes-grid { columns: 2; } }
@media (max-width: 480px)  { .atlas-notes-grid { columns: 1; } }

/* ── Note completion fade ── */
@keyframes atlas-note-complete {
    0%   { opacity: 1; transform: scale(1); }
    50%  { opacity: 0.5; transform: scale(0.96); }
    100% { opacity: 0; transform: scale(0.9); }
}
.atlas-note-completing {
    animation: atlas-note-complete 0.4s ease-out forwards;
    pointer-events: none;
}

/* ── Flutter & Settle — wind-blown entrance for sticky notes ── */
@keyframes atlas-flutter {
    0% {
        opacity: 0;
        transform: perspective(800px) rotateZ(-3deg) rotateX(0deg)
                   translateX(-6px) translateY(8px);
    }
    18% {
        opacity: 0.85;
        transform: perspective(800px) rotateZ(-1.5deg) rotateX(4deg)
                   translateX(-3px) translateY(3px);
    }
    38% {
        opacity: 0.94;
        transform: perspective(800px) rotateZ(2.5deg) rotateX(6deg)
                   translateX(4px) translateY(-2px);
    }
    58% {
        opacity: 0.98;
        transform: perspective(800px) rotateZ(-1.2deg) rotateX(2deg)
                   translateX(-2px) translateY(1px);
    }
    78% {
        opacity: 1;
        transform: perspective(800px) rotateZ(0.5deg) rotateX(0.5deg)
                   translateX(0.5px) translateY(-0.5px);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}
.atlas-note.atlas-note-flutter {
    animation: atlas-flutter var(--flutter-dur, 1.8s) var(--flutter-delay, 0s)
               cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    will-change: transform, opacity;
}
.atlas-note.atlas-note-flutter:hover {
    animation-play-state: paused;
}
/* Respect reduced-motion: skip flutter, use simple fade */
@media (prefers-reduced-motion: reduce) {
    .atlas-note.atlas-note-flutter {
        animation: atlas-fade-in 0.35s ease-out both;
        will-change: auto;
    }
}

/* ── View toggle buttons ── */
.atlas-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.65rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
    border: none;
    background: transparent;
    font-size: 0.75rem;
    font-weight: 500;
}
.atlas-view-btn.active {
    background: white;
    color: #4f46e5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.atlas-view-btn:hover:not(.active) {
    color: #374151;
    background: rgba(0, 0, 0, 0.04);
}
.dark .atlas-view-btn {
    color: #9ca3af;
}
.dark .atlas-view-btn.active {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.dark .atlas-view-btn:hover:not(.active) {
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.05);
}

/* ═══════════════════════════════════════════════
   Settings Page — Checkbox & Toggle polish
   ═══════════════════════════════════════════════ */
.atlas-toggle-wrap input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 0.25rem;
    border: 2px solid #d1d5db;
    cursor: pointer;
    transition: all 0.2s ease;
    accent-color: #6366f1;
}
.dark .atlas-toggle-wrap input[type="checkbox"] {
    border-color: #4b5563;
}
.atlas-toggle-wrap input[type="checkbox"]:checked {
    border-color: #6366f1;
}
.dark .atlas-toggle-wrap input[type="checkbox"]:checked {
    border-color: #818cf8;
}

/* ═══════════════════════════════════════════════
   Bucket System — Sticky Headers, Pagination,
   Skeletons, Collapse, Infinite Scroll
   ═══════════════════════════════════════════════ */

/* ── Bucket sticky header ── */
.atlas-bucket-header {
    background: rgba(240, 244, 255, 0.92);
    backdrop-filter: blur(12px);
    border-radius: 0.5rem;
    padding: 0.5rem 0.25rem;
    margin-bottom: 0.5rem;
}
.dark .atlas-bucket-header {
    background: rgba(15, 23, 42, 0.88);
}

/* ── Bucket body collapse ── */
.atlas-bucket-body {
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease;
}
.atlas-bucket-body.collapsed {
    max-height: 0 !important;
    opacity: 0;
    pointer-events: none;
}
.atlas-bucket-chevron {
    transition: transform 0.25s ease;
}
.atlas-bucket-chevron.rotated {
    transform: rotate(-90deg);
}

/* ── Load-more button ── */
.atlas-load-more {
    position: relative;
}
.atlas-load-more .htmx-indicator {
    display: none;
}
.atlas-load-more.htmx-request .atlas-load-more-label {
    opacity: 0.4;
}
.atlas-load-more.htmx-request .htmx-indicator {
    display: block;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Skeleton shimmer ── */
@keyframes atlas-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.atlas-bucket-skeleton [class*="animate-pulse"] {
    animation: atlas-shimmer 1.5s ease-in-out infinite;
    background-image: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.4) 50%,
        transparent 100%
    );
    background-size: 400px 100%;
}
.dark .atlas-bucket-skeleton [class*="animate-pulse"] {
    background-image: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.06) 50%,
        transparent 100%
    );
}

/* ── Infinite scroll sentinel ── */
.atlas-io-sentinel {
    visibility: hidden;
    pointer-events: none;
}

/* ── Bucket section spacing ── */
.atlas-bucket-section + .atlas-bucket-section {
    margin-top: 0.5rem;
}

/* ── Count badge ── */
.atlas-bucket-count {
    transition: all 0.3s ease;
    min-width: 3rem;
    text-align: center;
}

/* ═══════════════════════════════════════════════
   Wallboard — Horizontal Slide Carousel for
   Sticky Notes View (study-room corkboard)
   ═══════════════════════════════════════════════ */

/* ── Cork-board frame (light) ── */
.atlas-wallboard {
    position: relative;
    border-radius: 12px;
    padding: 1.5rem 3rem;
    min-height: 420px;
    /* Full-bleed: break out of narrow parent */
    width: calc(100vw - 3rem);
    max-width: 72rem;
    margin-left: 50%;
    transform: translateX(-50%);
    /* Cork grain: layered radial grain over warm base */
    background:
        url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
        radial-gradient(ellipse at 25% 40%, rgba(180,140,70,0.10) 0%, transparent 60%),
        radial-gradient(ellipse at 75% 65%, rgba(160,120,55,0.08) 0%, transparent 55%),
        linear-gradient(145deg, #c4a265 0%, #d4b87e 28%, #caad6e 52%, #c0a060 78%, #b89858 100%);
    /* Recessed inner shadow + outer frame depth */
    box-shadow:
        inset 0 3px 12px rgba(0,0,0,0.30),
        inset 0 -2px 8px rgba(0,0,0,0.18),
        inset 3px 0 8px rgba(0,0,0,0.14),
        inset -3px 0 8px rgba(0,0,0,0.14),
        0 2px 4px rgba(0,0,0,0.10),
        0 6px 20px rgba(0,0,0,0.08);
    /* Wood frame border */
    border: 3px solid #8B6F47;
    outline: 1px solid rgba(0,0,0,0.08);
}

/* ── Chalkboard frame (dark) ── */
.dark .atlas-wallboard {
    background:
        url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E"),
        radial-gradient(ellipse at 25% 40%, rgba(100,116,139,0.10) 0%, transparent 60%),
        radial-gradient(ellipse at 75% 65%, rgba(71,85,105,0.08) 0%, transparent 55%),
        linear-gradient(145deg, #1e293b 0%, #253347 28%, #1f2d40 52%, #1a2435 78%, #182030 100%);
    box-shadow:
        inset 0 3px 14px rgba(0,0,0,0.55),
        inset 0 -2px 10px rgba(0,0,0,0.40),
        inset 3px 0 10px rgba(0,0,0,0.30),
        inset -3px 0 10px rgba(0,0,0,0.30),
        0 2px 4px rgba(0,0,0,0.25),
        0 6px 20px rgba(0,0,0,0.18);
    border-color: #475569;
    outline-color: rgba(255,255,255,0.04);
}

/* ── Viewport: clips overflow, shows one slide ── */
.atlas-wb-viewport {
    overflow: hidden;
    position: relative;
    border-radius: 6px;
}

/* ── Track: flex row of slides, animates via translateX ── */
.atlas-wb-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ── Individual slide: CSS Grid for note layout ── */
.atlas-wb-slide {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(max(210px, calc(25% - 0.75rem)), 1fr));
    gap: 1rem;
    padding: 0.5rem 0;
    min-height: 380px;
    align-content: start;
}

/* ── Arrow buttons ── */
.atlas-wb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255,255,255,0.88);
    color: #374151;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.atlas-wb-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.22);
    transform: translateY(-50%) scale(1.1);
}
.atlas-wb-arrow:active {
    transform: translateY(-50%) scale(0.94);
}
.atlas-wb-arrow--prev { left: 6px; }
.atlas-wb-arrow--next { right: 6px; }
.atlas-wb-arrow[disabled] {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}
.dark .atlas-wb-arrow {
    background: rgba(30,41,59,0.88);
    color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.40);
}
.dark .atlas-wb-arrow:hover {
    background: rgba(30,41,59,0.96);
    box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}

/* ── Dot indicators ── */
.atlas-wb-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    padding-top: 0.85rem;
}
.atlas-wb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
    background: rgba(0,0,0,0.18);
}
.atlas-wb-dot:hover {
    background: rgba(0,0,0,0.35);
    transform: scale(1.25);
}
.atlas-wb-dot.active {
    background: #6366f1;
    transform: scale(1.3);
    box-shadow: 0 0 0 2.5px rgba(99,102,241,0.30);
}
.dark .atlas-wb-dot {
    background: rgba(255,255,255,0.18);
}
.dark .atlas-wb-dot:hover {
    background: rgba(255,255,255,0.35);
}
.dark .atlas-wb-dot.active {
    background: #818cf8;
    box-shadow: 0 0 0 2.5px rgba(129,140,248,0.30);
}
.atlas-wb-dots:empty,
.atlas-wb-dots[data-single] {
    display: none;
}

/* ── Note overrides inside wallboard ── */
.atlas-wallboard .atlas-note {
    break-inside: auto;
    margin-bottom: 0;
}

/* ── Day-card note (one note = one day's grouped tasks) ── */
.atlas-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px dashed rgba(0,0,0,0.12);
}
.atlas-day-header .day-name {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    line-height: 1.3;
}
.atlas-day-header .day-count {
    font-size: 10px;
    font-weight: 600;
    background: rgba(0,0,0,0.08);
    color: #6b7280;
    padding: 1px 6px;
    border-radius: 9999px;
    flex-shrink: 0;
}

.atlas-day-tasks {
    list-style: none;
    margin: 0;
    padding: 0;
}
.atlas-day-tasks li {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    font-size: 12px;
    line-height: 1.4;
}
.atlas-day-tasks li:last-child { border-bottom: none; }
.atlas-day-tasks li.done a {
    text-decoration: line-through;
    opacity: 0.4;
}
.atlas-day-tasks li a {
    color: #374151;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}
.atlas-day-tasks li a:hover {
    color: var(--brand-600, #4f46e5);
}

/* Priority pips inside day-cards */
.priority-pip {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.priority-pip.priority-3 { background: #f97316; }
.priority-pip.priority-4 { background: #ef4444; }

/* Day-card dark mode */
.dark .atlas-day-header { border-bottom-color: rgba(255,255,255,0.08); }
.dark .atlas-day-header .day-name { color: #e5e7eb; }
.dark .atlas-day-header .day-count { background: rgba(255,255,255,0.1); color: #9ca3af; }
.dark .atlas-day-tasks li { border-bottom-color: rgba(255,255,255,0.04); }
.dark .atlas-day-tasks li a { color: #d1d5db; }
.dark .atlas-day-tasks li a:hover { color: var(--brand-400, #818cf8); }

/* ── Responsive: mobile wallboard ── */
@media (max-width: 768px) {
    .atlas-wallboard {
        padding: 1rem 0.75rem;
        min-height: 360px;
        width: calc(100vw - 1rem);
        border-radius: 8px;
    }
    .atlas-wb-arrow { display: none; }
    .atlas-wb-slide { min-height: 340px; }
}
@media (max-width: 480px) {
    .atlas-wallboard {
        padding: 0.75rem 0.5rem;
        border-width: 2px;
        min-height: 300px;
    }
    .atlas-wb-slide {
        grid-template-columns: 1fr;
        min-height: 280px;
    }
}

/* ── Reduced motion: instant slide transitions ── */
@media (prefers-reduced-motion: reduce) {
    .atlas-wb-track {
        transition-duration: 0.01s;
    }
}
