html, body {
    margin: 0;
    min-height: 100%;
}

body {
    position: relative;
    background-color: #f5f1ea; /* fallback color while image loads */
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;

   background-image: url("../images/bg_1.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* helps smoother rendering */
    transform: translateZ(0);
    will-change: transform;
}

.page-wrapper {
    position: relative;
    min-height: 100vh;
}

.page-shell {
    max-width: 980px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.soft-card {
    border: 0;
    border-radius: 1.25rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.section-kicker {
    display: inline-block;
    padding: .45rem .9rem;
    border-radius: 999px;
    background: #e7f1ff;
    color: #0d6efd;
    font-size: .9rem;
}

.tag-check input {
    display: none;
}

.tag-check label,
.tag-link {
    display: inline-block;
    padding: .55rem .95rem;
    border-radius: 999px;
    background: #eef4ff;
    color: #234;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .2s ease;
    font-size: .95rem;
    cursor: pointer;
}

.tag-check input:checked + label,
.tag-link.active {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.tag-check label:hover,
.tag-link:hover {
    border-color: #0d6efd;
}

.thought-card {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .06);
}

.meta-text {
    color: #6c757d;
    font-size: .92rem;
}

.empty-state {
    border: 2px dashed #cfe2ff;
    border-radius: 1rem;
    background: #fff;
}

textarea.form-control {
    resize: vertical;
    min-height: 180px;
}