* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", "Segoe UI", sans-serif;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 20% 20%, #1e293b, #0f172a 60%);
}

#all {
    width: 460px;
    padding: 40px;
    border-radius: 20px;
    background: linear-gradient(145deg, #1f2937, #111827);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #818cf8, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#notes {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: white;
    font-size: 14px;
    margin-bottom: 18px;
    transition: 0.3s ease;
}

#notes::placeholder {
    color: rgba(255,255,255,0.4);
}

#notes:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.25);
    background: rgba(255,255,255,0.07);
}

button {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(90deg, #6366f1, #22d3ee);
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s ease;
    margin-bottom: 25px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99,102,241,0.3);
}

ul {
    list-style: none;
    max-height: 250px;
    overflow-y: auto;
}

li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s ease;
    animation: fadeIn 0.3s ease forwards;
}

li:hover {
    background: rgba(255,255,255,0.08);
    transform: translateX(3px);
}

li button {
    width: auto;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 8px;
    background: rgba(239,68,68,0.15);
    color: #f87171;
    font-weight: 500;
    margin: 0;
}

li button:hover {
    background: rgba(239,68,68,0.25);
    transform: translateY(-0.5px);
    box-shadow: 0 5px 10px rgba(239,60,60,0.2); 
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet */
@media (max-width: 768px) {
    #all {
        width: 90%;
        padding: 30px;
    }

    h1 {
        font-size: 22px;
    }
}

/* Telefon */
@media (max-width: 480px) {
    body {
        align-items: flex-start;
        padding: 20px;
    }

    #all {
        width: 100%;
        padding: 25px 20px;
        border-radius: 18px;
    }

    h1 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    #notes {
        padding: 13px;
        font-size: 13px;
    }

    button {
        padding: 13px;
        font-size: 13px;
    }

    li {
        padding: 12px;
        font-size: 13px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    li button {
        align-self: flex-end;
    }

    ul {
        max-height: 200px;
    }
}
