/* --- Root & Body stay the same --- */
:root {
    --bg: #002f43;
    --sidebar-bg: #001f2d;
    --text: #e0e1e2;
    --orange: #fbaa19;
    --teal: #47c3d4;
    --light-gray: #e0e1e2;
}

body { 
    background: linear-gradient(-45deg, #002f43, #001a25, #003d57, #002f43);
    background-size: 400% 400%;
    animation: gradientMood 18s ease-in-out infinite;
    color: var(--text); font-family: 'Segoe UI', sans-serif; margin: 0;
}

/* --- Splash Screen --- */
#splash-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease-out, visibility 1s;
}

.splash-logo {
    width: 120px;
    animation: pulseLogo 2s infinite ease-in-out;
}

@keyframes pulseLogo {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

#splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* --- Ticker, Sidebar, Workspace, & Grid styles remain identical to previous turn --- */
.app-wrapper { display: flex; min-height: 100vh; }
.ticker-wrap { width: 100%; overflow: hidden; background: rgba(0,0,0,0.4); backdrop-filter: blur(5px); height: 30px; border-bottom: 1px solid var(--teal); position: sticky; top: 0; z-index: 100; }
.ticker { white-space: nowrap; display: inline-block; padding-top: 5px; animation: scrollTicker 240s linear infinite; color: var(--teal); font-weight: 600; font-size: 0.85rem; }
@keyframes scrollTicker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }
.sidebar { width: 260px; background: var(--sidebar-bg); border-right: 1px solid rgba(71, 195, 212, 0.2); padding: 25px; position: sticky; top: 30px; height: calc(100vh - 30px); }
.sidebar-logo { width: 50px; margin-bottom: 10px; }
.sidebar-item { background: rgba(255,255,255,0.05); padding: 10px; border-radius: 4px; border-left: 3px solid var(--orange); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.sidebar-item a { color: var(--text); text-decoration: none; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-item:hover { background: rgba(255, 0, 0, 0.2); }
.workspace { flex: 1; padding: 0 50px 50px; }
.centered-title { text-align: center; font-size: 4.5rem; margin: 20px 0; letter-spacing: 5px; font-weight: 800; }
.header-tools { display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.2); padding: 12px 25px; border-radius: 50px; margin-top: 20px;}
#main-search { background: rgba(255,255,255,0.1); border: 1px solid var(--teal); border-radius: 20px; padding: 8px 15px; color: white; width: 220px; outline: none; }
.main-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.bookmark-card { background: var(--light-gray); color: var(--bg); border-radius: 8px; padding: 12px; transition: all 0.4s ease; overflow: hidden; max-height: 48px; position: relative; cursor: grab; }
.bookmark-card:hover { max-height: 250px; background: #ffffff; }
.card-content { display: flex; align-items: center; gap: 10px; }
.card-content a { color: var(--bg); text-decoration: none; font-weight: 800; font-size: 0.95rem; }
.card-content img { width: 24px; height: 24px; }
.extra-info { margin-top: 15px; font-size: 0.85rem; color: #333; opacity: 0; padding-top: 10px; border-top: 1px solid rgba(0,0,0,0.1); transition: opacity 0.3s; }
.bookmark-card:hover .extra-info { opacity: 1; }
.extra-info div[contenteditable="true"] { font-weight: bold; margin-top: 5px; outline: none; }
.notes-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 20px; }
.sticky-note { padding: 20px; border-radius: 8px; min-height: 120px; color: var(--bg); font-weight: 600; position: relative; background: var(--teal); }
.color-tab { height: 10px; width: 100%; position: absolute; bottom: 0; left: 0; cursor: pointer; background: var(--orange); }
.color-tab:hover { background: #ff4444; }
.add-btn-small { background: var(--teal); border: none; border-radius: 4px; color: var(--bg); font-weight: bold; cursor: pointer; padding: 2px 10px; }