/* ── Base ── */
body {
    background-color: #f5f5f3;
    color: black;
}

body>.container {
    flex: 1;
}

h1,
h2,
h3,
p {
    font-family: 'Roboto', sans-serif;
}

footer {
    line-height: 1;
}

footer .container {
    padding-top: 8px;
    padding-bottom: 8px;
}

/* ── Layout ── */
.center-container {
    position: absolute;
    left: 45%;
    transform: translateX(-45%);
}

.container-center-flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container {
    margin-top: 50px;
}


/* ── Dividers ── */
.content {
    border-top: 2px solid black;
}

.content-black {
    border-top: 1px solid #e0e0e0;
    margin: 8px 0;
}

/* ── Cards ── */
.content-block {
    border: 1px solid white;
}

.container-border {
    border: 1px solid white;
}

/* Dashboard action cards */
.container .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    background-color: #ffffff;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.container .card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.container .card .card-body {
    padding: 1.25rem 1.5rem;
}

.container .card .card-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0;
    color: #1a1a1a;
}

.container .card .card-body p {
    font-size: 0.875rem;
    color: #555;
    margin-top: 6px;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Action buttons — full width below card */
.container .btn {
    border-radius: 0 0 12px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.55rem 1rem;
    margin-top: 0 !important;
    border: none;
    transition: opacity 0.15s ease, filter 0.15s ease;
}

.container .btn:hover {
    opacity: 0.88;
    filter: brightness(1.05);
}

/* Round the card bottom to match the button */
.container .card {
    border-radius: 12px 12px 0 0;
}

/* ── Page header ── */
h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1a1a1a;
}

/* ── Dashboard grid (optional — add class="dashboard-grid" to the wrapper) ── */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.dashboard-grid .container {
    margin-top: 0;
}

/* ── Subcontent ── */
.subcontent {
    margin-left: 3%;
    margin-top: 15px;
}

/* ── Borders ── */
.border-bottom {
    border-bottom: 1px solid #e0e0e0;
}

/* ── Images ── */
.homePageImage {
    border-top: 2px solid black;
    border-bottom: 2px solid black;
    border-radius: 10px;
    overflow: hidden;
}

.qr-img {
    border: 2px solid black;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Misc ── */
.image-with-text {
    display: flex;
    align-items: center;
}

/* ── Masonry ── */
.masonry-grid {
    column-gap: 16px;
}

.masonry-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.masonry-item img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.item-header {
    margin-top: 10px;
    margin-left: 10px;
    border-bottom: 2px solid black;
    color: black;
    font-weight: bold;
}

.masonry-item p {
    padding: 8px;
    color: black;
    margin: 0;
}

@media (max-width: 991px) {
    .container {
        margin-top: 20px;
    }

    /* Subtle divider between nav links when menu is open */
    .navbar-collapse .nav-item+.nav-item {
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }

    .navbar-collapse .nav-link {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}