:root {
    --bg-1: #0f1724;
    --bg-2: #071022;
    --card: rgba(255, 255, 255, 0.06);
    --glass: rgba(255, 255, 255, 0.03);
    --accent: #7c5cff;
    --accent-2: #00d4ff;
    --muted: rgba(255, 255, 255, 0.6);
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-1: 0 6px 30px rgba(2, 6, 23, 0.6);
    color-scheme: dark;
}

/* layout reset */
* {
    box-sizing: border-box;
}


body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial;
    background: radial-gradient(1200px 600px at 10% 10%,
            rgba(124, 92, 255, 0.12),
            transparent 6%),
        radial-gradient(1000px 500px at 90% 90%,
            rgba(0, 212, 255, 0.06),
            transparent 5%),
        linear-gradient(180deg, var(--bg-1), var(--bg-2));
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    color: #eaf2ff;
    padding: 40px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
}

/* container */
input {
    padding: 5px;
    border: 0;
    background-color: transparent;
    font-size: 20px;
}

input:focus {
    outline: none;
}

input::placeholder {
    color: #6e6e6e7c;
}

.inputbox {
    margin-bottom: 15px;
}

.main__notes__note {
    min-height: 50px;
    border: none;
    outline: none;
}

.deleteNote {
    background: #ff5555;
    color: white;
    border: none;
    padding: 5px 10px;
    margin-top: 5px;
    cursor: pointer;
    border-radius: 5px;
}


.notes-app {
    width: 1100px;
    max-width: calc(100% - 48px);
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    align-items: start;
}

/* left panel */
.sidebar {
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.03),
            rgba(255, 255, 255, 0.02));
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-1);
    position: relative;
    overflow: hidden;
    min-height: 200px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.brand__logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: grid;
    place-items: center;
    font-weight: 800;
    box-shadow: 0 8px 30px rgba(124, 92, 255, 0.18),
        inset 0 -6px 24px rgba(255, 255, 255, 0.03);
    transform: rotate(-12deg);
}

.brand h1 {
    font-size: 16px;
    margin: 0;
}

.brand p {
    font-size: 12px;
    margin: 0;
    color: var(--muted);
}

.search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 18px;
    background: var(--glass);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.search input {
    background: transparent;
    border: none;
    outline: none;
    color: inherit;
    font-size: 14px;
    width: 100%;
}



/* right area */
.main {
    min-height: 520px;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.02),
            rgba(255, 255, 255, 0.01));
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

/* subtle decorative blobs (unique look) */
.main::before,
.sidebar::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 40% 60% 50% 50%/40% 50% 60% 50%;
    filter: blur(40px) saturate(110%);
    opacity: 0.16;
    z-index: 0;
}

.sidebar::before {
    right: -120px;
    top: -80px;
    background: linear-gradient(120deg, var(--accent), transparent);
}

.main::before {
    left: -140px;
    bottom: -120px;
    background: linear-gradient(120deg, var(--accent-2), transparent);
}

/* header inside main */
.main__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.main__header h2 {
    margin: 0;
    font-size: 18px;
}

.main__controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* fancy add note button */
.main__controls__btn {
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #031025;
    box-shadow: 0 10px 30px rgba(124, 92, 255, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s;
}

.main__controls__btn:active {
    transform: translateY(2px);
}

.main__controls__btn.ghost {
    background: transparent;
    color: var(--muted);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.main__notes {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    position: relative;
    z-index: 1;
}

.main__notes__note {
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.025),
            rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.03);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.22s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;

}

.main__notes__note:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.6);
}

.main__notes__note h3 {
    margin: 0;
    font-size: 15px;
}

.main__notes__note p {
    margin: 0;
}

.main__notes__note .meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
}

.main__notes__note::after {
    content: "";
    position: absolute;
    width: 36px;
    height: 36px;
    right: -12px;
    top: -12px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.06),
            rgba(255, 255, 255, 0.02));
    transform: rotate(18deg);
    border-radius: 8px;
    box-shadow: inset 0 -6px 18px rgba(0, 0, 0, 0.25);
}


.buttondel {
    width: 10%;
    position: relative;
    bottom: 46px;
    left: 380px;
    background-color: transparent;
    border: 0;
    cursor: pointer;
    transition: 0.18s;

}

.buttondel:hover {
    color: red;
}



/* responsive */
@media (max-width: 880px) {
    .notes-app {
        grid-template-columns: 1fr;
        padding: 0;
    }

    body {
        padding: 20px;
    }

    .sidebar {
        order: 1;
    }

    .main {
        order: 2;
    }
}

/* tiny polished touches */
input,
button,
textarea {
    font-family: inherit;
}

.muted {
    color: var(--muted);
    font-size: 13px;
}

.small {
    font-size: 12px;
    color: var(--muted);
}

/* accessibility focus */
.tag:focus,
.btn:focus,
.note:focus {
    outline: 2px solid rgba(124, 92, 255, 0.22);
    outline-offset: 3px;
    border-radius: 12px;
}