html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    padding-top: 68px; /* prevents content hiding under fixed navbar */
}
@media (max-width: 768px) {
    body {
        padding-top: 35px; /* prevents content hiding under fixed navbar */
    }
}
a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #09AEB8;
    border-color: #1861ac;
}

.btn-light {
    color: #fff !important;
    background-color: #09AEB8;
    border-color: #09AEB8;
}

.btn-light:hover {
    color: #fff !important;
    background-color: #FFD763;
    border-color: #FFD763;
}

.btn-mealcare {
    background-color: #09AEB8;
    color: #ffffff;
    border: none;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn-mealcare:hover {
    background-color: #FFD763;
    color: #000000;
}

.btn-mealcare:focus,
.btn-mealcare:active {
    background-color: #09AEB8;
    color: #ffffff;
    box-shadow: none;
    border: none;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}


.navbar {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    z-index: 1050;
}

.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
    font-size: 1rem; /* reduce text size */
}

.navbar-nav .nav-link {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    font-size: 0.9rem;
}

.brand-text {
    font-size: 1.25rem;
}

@media (max-width: 991px) {
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
    }
}

.navbar-nav .nav-link.active {
    color: #09AEB8 !important;
    font-weight: 600;
    border-bottom: 2px solid #09AEB8;
}

.nav-item a {
    font-size: 13pt !important;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

/* Transparent navbar */
.navbar-transparent {
    background-color: transparent !important;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* Logo height */
.navbar-brand img {
    height: 50px;
}

/* Hero section */
.hero {
    position: relative;
    min-height: 90vh; /* safer than height */
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('/images/hero.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 6rem;
}

    /* Soft overlay */
    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background-color: rgba(255, 255, 255, 0.82); /* readable on mobile */
        transition: background-color 0.3s ease;
    }

/* Content */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 1.5rem;
}

/* Typography scaling */
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.6;
}

/* Button spacing */
.hero .btn {
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .hero {
        min-height: 85vh; /* avoids mobile browser cutoff */
        background-position: top;
    }

    .hero-content {
        padding: 2rem 1rem;
    }
}

.signIn {
    border-radius: 20px !important;
}

/* Tiles container */
.tiles {
    position: relative;
    z-index: 10;
    margin-top: -5rem; /* overlap hero */
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0 15px;
}

/* Individual tile */
.tile {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    flex: 1 1 250px;
    max-width: 300px;
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

    /* Top bar on tile */
    .tile::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 6px;
        background-color: #FFD763;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }

    /* Hover effect */
    .tile:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }

/* Step circle */
.tile-step {
    width: 50px;
    height: 50px;
    background-color: #FFD763;
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 15px auto;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.tile-container {
    position: relative;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero {
        padding-bottom: 3rem;
    }

    .tiles {
        margin-top: -5rem;
    }
}

/* About Us section*/
.about-heading {
    font-size: 2.5rem; /* larger and prominent */
    font-weight: 700; /* bold */
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

    .about-heading::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -8px;
        width: 60px; /* length of underline */
        height: 4px; /* thickness of underline */
        background-color: #09AEB8; /* #FFD763 accent color */
        border-radius: 2px;
    }

.about-subtitle {
    font-size: 1rem;
    color: #555;
}

.icon-grid p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}

.icon-item i {
    transition: transform 0.3s, color 0.3s;
    cursor: default;
}

.icon-item:hover i {
    transform: scale(1.2);
    color: #09AEB8; /* accent hover color */
}

.services {
    background-color: #f9f9f9;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

    .section-heading::after {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: -10px;
        width: 60px;
        height: 4px;
        background-color: #09AEB8;
        border-radius: 2px;
    }

.service-card i {
    transition: transform 0.3s, color 0.3s;
}

.service-card:hover i {
    transform: scale(1.2);
    color: #09AEB8; /* hover accent color */
}

.service-card p {
    color: #555;
}

.primaryBg {
    color: #09AEB8;
}

.secondaryBg {
    color: #FFD763;
}

.contact-us {
    background-color: #f9f9f9;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

    .section-heading::after {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: -10px;
        width: 60px;
        height: 4px;
        background-color: #FFD763;
        border-radius: 2px;
    }

.contact-email {
    color: #09AEB8;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
}

    .contact-email:hover {
        color: #FFD763;
        transform: scale(1.05);
    }

.site-footer {
    background-color: #1f1f1f;
}

.footer-text {
    color: #ccc;
    font-size: 0.9rem;
}

.footer-link {
    color: #FFD763;
    text-decoration: none;
    font-size: 0.9rem;
    margin: 0 8px;
    transition: color 0.3s;
}

    .footer-link:hover {
        color: #09AEB8;
    }

.footer-separator {
    color: #666;
}

.brand-meal {
    color: #454545; /* warmth */
    font-size: 23px;
}

.brand-care {
    color: #454545 !important; /* calm */
    font-size: 23px;
}

/* Dark navbar support */
.navbar-dark .brand-meal,
.navbar-dark .brand-care {
    filter: brightness(1.05);
}

.stepper .step {
    font-weight: 600;
    color: #adb5bd;
}

    .stepper .step.active {
        color: #000;
    }

.stepper small {
    display: block;
    font-weight: 400;
}

.progress-bar {
    transition: width 0.3s ease;
    background-color: #FFD763 !important;
}

@media (max-width: 768px) {
    .stepper {
        font-size: 0.85rem;
    }
}


/* FULL SCREEN BLUR OVERLAY */
.spinner-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background-color: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CARD */
.spinner-card {
    background: white;
    padding: .5rem 1rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 45px rgba(0,0,0,.15);
    text-align: center;
}

/* LOGO SPIN */
.logo-spinner {
    width: 51px;
    height: 48px;
    animation: pulse-spin 1.4s ease-in-out infinite;
}

/* SMOOTH ANIMATION */
@keyframes pulse-spin {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: scale(1.08) rotate(180deg);
        opacity: 0.85;
    }

    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

/* Page container */
.edit-page {
    max-width: 920px;
    margin: 2.5rem auto;
    padding: 0 1rem;
}

/* Header */
.edit-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .edit-header h2 {
        font-weight: 700;
        margin-bottom: 0.25rem;
    }

    .edit-header p {
        color: #6c757d;
    }

/* Loading */
.loading-box {
    text-align: center;
    padding: 4rem 0;
}

/* Cards */
.edit-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

    .edit-card h5 {
        font-weight: 600;
        margin-bottom: 1rem;
    }

    /* Inputs */
    .edit-card .form-control {
        border-radius: 10px;
    }

/* Slots */
.slot-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.slot-row button {
    font-size: 1.25rem;
    line-height: 1;
}

/* Actions */
.edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

/* Primary button */
.btn-primary {
    background-color: #09AEB8;
    border-color: #09AEB8;
}

    .btn-primary:hover {
        background-color: #078f98;
        border-color: #078f98;
    }

/* Mobile */
@media (max-width: 768px) {
    .edit-card {
        padding: 1.25rem;
    }

    .edit-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

.meal-notes {
    border-top: 1px dashed #dee2e6;
    padding-top: 1rem;
}

.note-card {
    border-radius: 14px;
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
}

.note-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.note-text {
    color: #495057;
}

.note-danger {
    background: #fff5f5;
    border-left: 4px solid #dc3545;
}

.note-success {
    background: #f1fbf6;
    border-left: 4px solid #198754;
}

.note-neutral {
    background: #f8f9fa;
    border-left: 4px solid #6c757d;
}

.btn-edit-slot {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    font-weight: 500;
    border-radius: 4px;
    padding: 4px 10px;
    transition: all 0.15s ease-in-out;
}

.btn-edit-slot:hover {
    background-color: #09AEB8;
    border-color: #09AEB8;
    color: #fff;
}

.btn-edit-slot:focus {
    box-shadow: 0 0 0 0.15rem rgba(9, 174, 184, 0.35);
}

.btn-delete-slot {
    background-color: #fff;
    border: 1px solid #f1c0c0;
    color: #b02a37;
    font-weight: 500;
    border-radius: 4px;
    padding: 4px 10px;
    transition: all 0.15s ease-in-out;
}

.btn-delete-slot:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.btn-delete-slot:focus {
    box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.35);
}

.btn-signup-slot {
    background-color: #09AEB8;
    border: 1px solid #09AEB8;
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    padding: 6px 14px;
    transition: all 0.15s ease-in-out;
}

.btn-signup-slot:hover {
    background-color: #078d95;
    border-color: #078d95;
    color: #fff;
}

.btn-signup-slot:focus {
    box-shadow: 0 0 0 0.2rem rgba(9, 174, 184, 0.35);
 }

/* ===== Mobile Table Stack ===== */
@media (max-width: 768px) {

    table thead {
        display: none;
    }

    table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 0.75rem;
    }

    table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
    }

    table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6c757d;
    }

    table td:last-child {
        justify-content: flex-end;
    }

    table td.text-end {
        text-align: right !important;
    }

    td.mobile-hide-label::before {
        content: "";
    }
}

/* ===== App Footer ===== */
.app-footer {
    border-top: 1px solid #eee;
    background-color: #fafafa;
}

    .app-footer .container {
        max-width: 1100px;
    }

/* Mobile view only */
@media (max-width: 767px) {
    .create-mealcare-wrapper {
        display: flex;
        justify-content: center; /* center horizontally */
        margin-top: 2rem; /* push down */
    }
}

.brand-name {
    font-family: 'Lobster Two', sans-serif;
    font-weight: 600; /* Semi-Bold */
    font-size: 25px;
    color: #454545; /*#09AEB8;*/
    letter-spacing: 1px; /* stylish touch */
    font-style: normal; /* or italic if you want slant */
}