body {
    background: #f5f7fb;
    min-height: 100vh;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.navbar-brand strong {
    color: #0d6efd;
    font-size: 1.4rem;
}

.main-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.user-greeting {
    color: #555;
    margin-right: 12px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.homepage-carousel,
.homepage-empty-hero {
    position: relative;
    overflow: hidden;
    min-height: 75vh;
    border-radius: 18px;
    background: #000;
}

.homepage-carousel .carousel-item {
    min-height: 75vh;
    background: #000;
    overflow: hidden;
}

.homepage-carousel .carousel-media-wrapper {
    position: relative;
    width: 100%;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}

.homepage-carousel .carousel-media,
.homepage-empty-hero img,
.homepage-empty-hero video {
    position: relative;
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.homepage-carousel .carousel-caption {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 10px;
}

.homepage-manager-grid .card {
    min-height: 320px;
}

.add-item-card {
    cursor: pointer;
    border: 2px dashed rgba(13, 110, 253, .4);
    background: rgba(13, 110, 253, .05);
}

.add-item-card:hover {
    background: rgba(13, 110, 253, .08);
}

.error {
    color: #dc3545;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .nav-actions {
        margin-top: 15px;
        flex-direction: column;
        align-items: stretch;
    }

    .navbar .container {
        align-items: flex-start;
    }
}

#reset-list {
    cursor: pointer;
    transition: 0.2s;
}

#reset-list:hover {
    opacity: 0.7;
}

/* Navbar fixed on top and overlays content */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: #fff;
}

/* ensure page content isn't hidden under the fixed navbar */
body {
    padding-top: 72px;
}

/* Footer is static at the end of the page (visible when scrolled to it) */
footer {
    background: #fff;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -2px 10px rgba(0,0,0,.04);
    z-index: 100;
    height: 72px;
}

footer .footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 0.85rem;
    color: #555;
}

footer .footer-info p {
    margin: 4px 0;
}

footer .social-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

footer .social-links a {
    color: #0d6efd;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.2s;
}

footer .social-links a:hover {
    color: #0a58ca;
}

@media (max-width: 576px) {
    footer .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    footer .social-links {
        justify-content: center;
    }
}

/* Ensure the stores map stays behind the navbar */
#stores-map {
    z-index: 0;
    position: relative;
}
/* Make main content fill remaining viewport so footer stays at bottom on short pages */
main {
    min-height: calc(100vh - 72px - 72px);
}

/* Compact navbar adjustments for smaller screens */
.navbar {
    padding-top: .4rem;
    padding-bottom: .4rem;
}

.navbar-brand img {
    height: 50px;
    transition: height .15s ease;
}

.nav-actions .btn {
    padding: .28rem .6rem;
}

@media (max-width: 768px) {
    .navbar {
        padding-top: .25rem;
        padding-bottom: .25rem;
    }
    body {
        padding-top: 64px;
    }
    .navbar-brand img {
        height: 44px;
    }
    .nav-actions { gap: 6px; }
    .btn-sm { padding: .2rem .4rem; font-size: .78rem; }
}

@media (max-width: 576px) {
    body { padding-top: 56px; }
    .navbar-brand img { height: 38px; }
    .btn-sm { padding: .18rem .36rem; font-size: .75rem; }
    .nav-actions { gap: 6px; }
}

/* Form and profile aesthetics */
.form-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(15,23,42,0.06);
    margin-bottom: 1rem;
}

.form-card .form-group {
    margin-bottom: 0.9rem;
}

.form-card label {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: .35rem;
}

.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="file"],
.form-card input[type="tel"],
.form-card textarea,
.form-card select {
    width: 100%;
    padding: .56rem .75rem;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.form-card textarea { min-height: 120px; }

.profile {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.profile-picture img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e6e9ef;
}

.profile-info p { margin-bottom: .5rem; }

/* Jobs list grid improvements */
.columns {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
    gap: 20px;
}

.card .card-body {
    padding: 18px;
}

.media-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: .5rem;
}

.card .btn-primary {
    background: linear-gradient(180deg,#0d6efd,#0a58ca);
    border: none;
}

/* Dashboard tweaks */
.dashboard-actions {
    display:flex;
    gap:12px;
    margin-bottom: 1rem;
}

.application-card {
    border-left: 4px solid #0d6efd;
}

@media (max-width: 576px) {
    .profile { flex-direction: column; align-items: center; }
    .profile-picture img { width: 160px; height: 160px; }
}
