body {
    font-family: "Rubik", Sans-Serif;
    background: url("bg.jpg") no-repeat center center fixed;
    background-size: cover; /* biar menutupi seluruh layar */
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* atau center */
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 30px;
    border-radius: 20px;
    border: 5px solid #fff;
    backdrop-filter: blur(5px);
    justify-content: center;
}

h1 {
    text-align: center;
    color: #0ff;
    text-shadow:
        0 0 5px #00f,
        0 0 10px #0ff;
    margin-bottom: 20px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#searchInput {
    width: 5%;
    padding: 8px;
    border: 2px solid #0ff;
    border-radius: 100px;
    background: #1a1a2e;
    color: #fff;
    outline: none;
    transition: 0.5s;
}

#searchInput:focus {
    width: 40%;
    border: 2px solid #00f;
}

input,
textarea {
    font-family: "Rubik", Sans-Serif;
    width: 95%;
    padding: 10px;
    margin-bottom: 10px;
    border: 2px solid #0ff;
    border-radius: 15px;
    background: #1a1a2e;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: 0.5s;
}

input::placeholder,
textarea::placeholder {
    color: #aaa;
}

input:focus,
textarea:focus {
    border: 2px solid #00f;
}

button {
    padding: 10px 20px;
    background: #0ff;
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: 0.3s;
}

button:hover {
    background: #00f;
    color: #fff;
}

.notes {
    margin-top: 10px;
}

.note {
    background: #1a1a2eb;
    border: 2px solid #444;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 4px solid #0ff;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: 0.5s;
}

.note:hover {
    background: #272746;
    border: 2px solid #555;
    border-left: 4px solid #00f;
}

.note-content {
    flex: 1;
    margin-right: 10px;
}

.note-title {
    font-weight: bold;
    color: #0ff;
    margin-bottom: 4px;
}

.note-body {
    color: #ccc;
    white-space: pre-wrap;
}

.note button {
    background: transparent;
    color: #0ff;
    padding: 5px 10px;
    font-size: 15px;
}

.note button:hover {
    color: #fff;
    background: red;
}

#noNotes {
    text-align: center;
    color: #fff;
    margin-top: 20px;
    text-decoration: underline;
}

@media (max-width: 768px) {
    body {
        font-family: "Rubik", Sans-Serif;
        background: url("bg.jpg") no-repeat center center fixed;
        background-size: cover;
        color: #fff;

        display: absolute;
        justify-content: center; /* horizontal center */
        align-items: center; /* vertical center */
        height: 100%; /* full height layar */
        margin: 20px; /* hilangkan default margin */
    }

    .container {
        width: 100%;
        max-width: 600px;
        padding: 30px;
        border-radius: 20px;
        border: 5px solid #fff;
        backdrop-filter: blur(5px);
        justify-content: center;
    }

    #searchInput {
        width: 8%;
    }

    #searchInput:focus {
        width: 50%;
    }
}
