:root{
    --bg:#eefaf5;
    --card:#fff;
    --accent:#1fb774;
    --danger:#e35b4f;
    --muted:#9aa6a1;
}

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

body{
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}

#container{
    width: 100%;
    max-width: 500px;
    background: var(--card);
    padding: 24px; 
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

form{
    display: flex;
    flex-direction: column;
}

h1{
    color: var(--accent);
    text-align: center;
    font-weight: 800;
    font-size: 34px;
    margin-bottom: 14px;  
}

input{
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #e6e6e6;
    font-size: 14px;
    border-radius: 6px;
}

#add-bookmark{
    padding: 12px;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--accent), #17a564);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.list{
    margin-top: 16px;
}

.empty{
    color: var(--muted);
    text-align: center;
    padding: 18px;
}

#small{
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    text-align: center;
}

#bookmark-list{
    list-style: none;
    padding: 0;
}

#bookmark-list li{
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

#bookmark-list a{
    color: var(--accent);
    text-decoration: none;
    word-break: break-all;
}

#bookmark-list .remove-btn{
    background-color: var(--danger);
    padding: 6px 10px;
    border-radius: 4px;
    border: none;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

#credit{
    position: absolute;
    bottom: 20%;
    background-color: #17a564;
    padding: 10px;
    border-radius: 50px;
}

#credit a{
    text-decoration: none;
    color: #fff;
    font-weight: 600;
}

#bookmark-list .remove-btn:hover{
    opacity: 0.9;
}

@media (max-width:480px){
    #container{
        width: 90%;
    }
    h1{
        font-size: 28px;
    }
}
