:root {
    --bright-mint: #00FFC3;
    --mint-glow: rgba(0, 255, 195, 0.4);
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background: #080808; color: white; height: 100vh; display: flex; justify-content: center; align-items: center; overflow: hidden; }

.background-elements { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.4; transition: transform 0.2s ease-out; }
.cocoa { width: 45vw; height: 45vw; background: #2d1b18; top: -10%; left: -10%; }
.mint { width: 40vw; height: 40vw; background: var(--bright-mint); bottom: -5%; right: -5%; opacity: 0.15; }

.glass-shell {
    width: clamp(320px, 95vw, 1000px);
    height: clamp(500px, 90vh, 750px);
    background: var(--glass);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--border);
    border-radius: 40px;
    display: flex;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}

.side-bar { width: 90px; border-right: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; padding: 40px 0; flex-shrink: 0; }
.mint-icon { color: var(--bright-mint); filter: drop-shadow(0 0 8px var(--mint-glow)); }
.nav-stack { margin-top: 60px; display: flex; flex-direction: column; gap: 40px; flex: 1; }
.nav-btn { color: rgba(255,255,255,0.2); cursor: pointer; transition: 0.3s; }
.nav-btn.active { color: var(--bright-mint); transform: scale(1.1); }

.workspace { flex: 1; padding: clamp(25px, 5vw, 50px); display: flex; flex-direction: column; overflow: hidden; }
.workspace-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
h1 { font-weight: 300; letter-spacing: 5px; font-size: 1.5rem; }
h1 span { font-weight: 800; color: var(--bright-mint); }
.greeting p { font-size: 0.7rem; color: #666; letter-spacing: 2px; margin-top: 5px; }

.header-tools { display: flex; gap: 30px; align-items: center; }
.search-bar { background: rgba(255,255,255,0.05); padding: 10px 20px; border-radius: 15px; display: flex; align-items: center; gap: 10px; }
.search-bar input { background: none; border: none; color: white; outline: none; font-size: 0.8rem; width: 150px; }

.progress-display { width: 140px; }
.progress-stats { display: flex; justify-content: space-between; font-size: 0.65rem; margin-bottom: 8px; color: #888; }
.progress-track { height: 3px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; }
#progress-bar { height: 100%; width: 0%; background: var(--bright-mint); box-shadow: 0 0 10px var(--bright-mint); transition: 0.6s ease; }

.input-container {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    padding: 12px 12px 12px 25px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
#task-name { background: none; border: none; color: white; width: 60%; outline: none; font-size: 1rem; }
.input-meta { display: flex; gap: 15px; align-items: center; }
select { background: none; border: none; color: var(--bright-mint); font-weight: 700; outline: none; cursor: pointer; text-transform: uppercase; font-size: 0.7rem; }

#add-task {
    background: var(--bright-mint);
    border: none;
    width: 44px; height: 44px;
    border-radius: 15px;
    cursor: pointer;
    transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}

.task-viewport { flex: 1; overflow-y: auto; padding-right: 15px; }
#task-list { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.task-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid transparent;
    padding: 20px 25px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s ease;
}
.task-card:hover { background: rgba(255,255,255,0.05); border-color: var(--border); transform: translateX(5px); }
.task-card.urgent { border-left: 4px solid #ff4b2b; }
.task-card.done { opacity: 0.3; filter: grayscale(1); }

.task-viewport::-webkit-scrollbar { width: 4px; }
.task-viewport::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

@keyframes taskIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.task-card { animation: taskIn 0.4s ease forwards; }

.meta-btn {
    background: rgba(255,255,255,0.05);
    border: none;
    color: #666;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}
.meta-btn.active { color: var(--bright-mint); background: rgba(0, 255, 195, 0.1); }

#floating-bell {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    cursor: pointer;
    z-index: 1000;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#floating-bell:hover { 
    border-color: var(--bright-mint); 
    color: white;
    transform: translateY(-5px);
}

.bell-dot { 
    position: absolute; top: 18px; right: 18px; 
    width: 8px; height: 8px; background: #ff4b2b; 
    border-radius: 50%; display: none;
    box-shadow: 0 0 10px #ff4b2b;
}

#notif-popup {
    position: absolute;
    bottom: 75px;
    right: 0;
    background: #ff4b2b;
    color: white;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
    pointer-events: none;
}

.bell-active .bell-dot { display: block; }
.bell-active #notif-popup { opacity: 1; transform: translateY(0); }
.bell-active i { 
    color: #ff4b2b; 
    animation: bell-ring 0.5s infinite alternate; 
}

@keyframes bell-ring {
    from { transform: rotate(-15deg); }
    to { transform: rotate(15deg); }
}

.task-date-tag {
    font-size: 9px;
    color: var(--bright-mint); 
    background: rgba(0, 255, 195, 0.1); 
    border: 1px solid rgba(0, 255, 195, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
}

.settings-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
}

.settings-modal.open { opacity: 1; pointer-events: all; }

.settings-content {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 30px;
    width: 320px;
    transform: translateY(20px);
    transition: 0.4s;
}

.settings-modal.open .settings-content { transform: translateY(0); }

.settings-content header { display: flex; justify-content: space-between; margin-bottom: 30px; }
.settings-content h3 { font-size: 0.9rem; letter-spacing: 2px; }
.settings-content h3 span { color: var(--bright-mint); }

.setting-group { margin-bottom: 25px; }
.setting-group label { display: block; font-size: 0.6rem; color: #666; letter-spacing: 1px; margin-bottom: 10px; }

.theme-picker { display: flex; gap: 15px; }
.color-dot { width: 25px; height: 25px; border-radius: 50%; cursor: pointer; transition: 0.3s; border: 2px solid transparent; }
.color-dot.active { border-color: white; transform: scale(1.2); }

.danger-btn {
    width: 100%;
    background: rgba(255, 75, 43, 0.1);
    border: 1px solid #ff4b2b;
    color: #ff4b2b;
    padding: 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: 0.3s;
}
.danger-btn:hover { background: #ff4b2b; color: white; }

.settings-footer { text-align: center; margin-top: 20px; font-size: 0.5rem; color: #777676; }


.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%; /* Fill the viewport */
    width: 100%;
    color: rgba(255, 255, 255, 0.2);
    animation: taskIn 0.4s ease forwards;
    pointer-events: none; 
    user-select: none;
    padding-bottom: 50px; /* Counter-balance the header height for perfect centering */
}

.empty-state i {
    margin-bottom: 15px;
    opacity: 0.3;
    width: 40px;
    height: 40px;
}

.empty-state p {
    font-size: 0.85rem;
    letter-spacing: 1px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
        height: 100dvh; 
        align-items: flex-start;
        overflow: hidden;
    }

    .glass-shell {
        flex-direction: column;
        height: 100%;
        border-radius: 25px;
    }
    .side-bar {
        position: fixed;
        bottom: 15px;
        left: 5%;
        width: 90%;
        height: 65px;
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center;
        padding: 0 20px;
        border-right: none;
        border: 1px solid var(--border);
        background: rgba(10, 10, 10, 0.8);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 20px;
        z-index: 1000;
    }

    .side-bar .logo { margin: 0; }
    
    .nav-stack {
        margin: 0 !important; 
        flex-direction: row;
        gap: 20px;
        flex: 1;
        justify-content: center; 
    }

    .nav-bottom { margin: 0; } 

    .workspace {
        padding: 20px 15px 100px 15px;
        overflow-y: auto;
    }

    .workspace-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .header-tools {
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }

    .search-bar, .progress-display { width: 100%; }

    .input-container {
        flex-direction: column; 
        padding: 15px;
        gap: 12px;
        align-items: stretch;
    }

    #task-name {
        width: 100%;
        font-size: 0.9rem;
        padding: 5px 0;
        background: transparent;
        border: none;
        color: white;
        outline: none;
        resize: none;      
        overflow: hidden;  
        font-family: inherit; 
    }

    .input-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        border-top: 1px solid var(--border);
        padding-top: 10px;
    }

    .due-date-wrapper { display: flex; align-items: center; }

    #floating-bell {
        bottom: 90px;
        right: 15px;
    }
}






