body {
    margin: 0;
    font-family: Arial, sans-serif;

    background-image: url("./pildid/toit1.jpg");
    background-size: cover;
    background-position: center;

    min-height: 100vh;
}

/* vasakule joondus */
.container {
    max-width: 420px;
    margin-left: 60px;
    margin-top: 60px;
}

/* kaart */
.card {
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(10px);

    padding: 22px;
    border-radius: 16px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.25);

    display: none;
}

.card.active {
    display: block;
}

/* TEKST */
h1, h2, p {
    color: #1f1f1f;
}

/* INPUT RIDA */
.inputs {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

/* nimi */
#itemName {
    flex: 2;
    min-width: 0;
}

/* hind */
#itemPrice {
    flex: 1;
    min-width: 90px;
}

/* input + select */
input, select {
    width: 100%;
    padding: 10px;

    border-radius: 10px;
    border: 1px solid #ccc;

    font-size: 14px;
    box-sizing: border-box;
}

/* nupp */
button {
    padding: 10px;
    border-radius: 10px;
    border: none;

    background: #4CAF50;
    color: white;
    font-weight: bold;

    cursor: pointer;
}

/* secondary */
button.secondary {
    background: transparent;
    border: 1px solid #444;
    color: #222;
    margin-top: 8px;
}

/* list */
ul {
    list-style: none;
    padding: 0;
}

li {
    display: flex;
    align-items: center;
    gap: 10px;

    background: rgba(255,255,255,0.9);
    padding: 10px;

    margin-top: 8px;
    border-radius: 10px;
}

/* animatsioon */
.card {
    animation: fade 0.25s ease;
}

@keyframes fade {
    from {opacity: 0; transform: translateY(10px);}
    to {opacity: 1; transform: translateY(0);}
}