/* ============================================
   Base
   ============================================ */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
}

.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;
}

/* ============================================
   Utility
   ============================================ */
.text-accent {
    color: #29ca8e !important;
}

.bg-accent {
    background-color: #29ca8e !important;
}

/* ============================================
   Brand Icon (navbar logo mark)
   ============================================ */
.brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #29ca8e 0%, #1da875 100%);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: transform 0.22s ease;
}

.soft-landing-brand:hover .brand-icon {
    transform: rotate(-12deg) scale(1.08);
}

/* ============================================
   Navbar — Service Dropdown Icon Badges
   ============================================ */
.drop-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.drop-icon-primary {
    background: rgba(41, 202, 142, 0.12);
    color: #29ca8e;
}

.drop-icon-success {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.drop-icon-warning {
    background: rgba(232, 163, 23, 0.12);
    color: #b87d0c;
}

.drop-icon-dark {
    background: rgba(32, 32, 32, 0.07);
    color: #454545;
}

/* ============================================
   Navbar — Dropdown Item Hover
   ============================================ */
.navbar .dropdown-menu .dropdown-item {
    transition: background-color 0.18s ease, color 0.18s ease;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
    background-color: rgba(41, 202, 142, 0.08) !important;
    color: #1da875;
}

/* ============================================
   Service Category Cards
   ============================================ */
.service-card {
    border-radius: 14px;
    border: 1px solid #f0f0f0;
    background: #ffffff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
    overflow: hidden;
    display: block;
    color: inherit;
    text-decoration: none;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1);
    color: inherit;
    text-decoration: none;
}

.service-card .service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
}

.service-icon-advertising {
    background: rgba(41, 202, 142, 0.12);
    color: #29ca8e;
}

.service-icon-appointments {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.service-icon-reminders {
    background: rgba(232, 163, 23, 0.12);
    color: #b87d0c;
}

/* ============================================
   Card hover variant
   ============================================ */
.card.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   Login Page — Split Panel
   ============================================ */




/*-------------------------------*/




html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.bg-image {
    background-image: url('/image/bgImages/9.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items:center;
    padding: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.main-content {
    flex: 1 1 320px; /* was: flex: 1 1 0 */
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    box-sizing: border-box;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.sidesection {
    flex: 0 0 280px;
    width: 280px;
    flex-shrink: 0;
    max-height: calc(100vh - 80px);
    background-color: white;
    padding: 20px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-left: 20px;
    position: sticky;
    top: 76px;
    overflow-y: auto;
}

.side-image {
    width: 100%;
    height: 160px; /* fixed instead of auto */
    object-fit: cover; /* crops instead of squishing */
    margin-bottom: 16px;
    border-radius: 8px;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #757575;
    transition: color 0.2s;
}

    .close-btn:hover {
        color: #202020;
    }

.card {
    width: 100%;
}

.footer {
    z-index: 1000;
}

.notificationSection,
.appointmentNotificationSection {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    max-width: 90%;
    min-width: 320px;
    background: rgba(30, 30, 30, 0.95);
    color: #fff;
    padding: 18px 22px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    animation: slideDown 0.35s ease;
}

/* Notification text */
#notificationContainer,
#appointmentNotificationSectionContainer {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
    flex: 1;
}

.close-appointmentNotificationSection-btn,
.close-notification-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    transition: 0.2s ease;
    flex-shrink: 0;
}

    .close-appointmentNotificationSection-btn:hover,
    .close-notification-btn:hover {
        background: rgba(255, 255, 255, 0.12);
        transform: rotate(90deg);
    }

/* Smooth top animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* ── Navbar: tighten items in the 992–1400 zone before collapse ─── */
@media (min-width: 992px) and (max-width: 1400px) {
    .soft-landing-nav .nav-link {
        padding-left: 0.6rem;
        padding-right: 0.6rem;
        font-size: 0.92rem;
    }

    .soft-landing-nav .navbar-brand {
        font-size: 1rem;
    }
}

/* ── Tablet / small laptop ──────────────────────────────────── */
@media (max-width: 992px) {
    .app-container {
        padding: 14px;
        min-height: inherit;
    }

    .sidesection {
        flex-basis: 220px;
        margin-left: 14px;
    }
}

/* ── Tablet portrait: drop sidebar below content ───────────── */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
        padding: 12px;
    }

    .sidesection {
        width: 100%;
        margin-left: 0;
        margin-top: 14px;
        position: static;
        max-height: none;
    }

    .side-image {
        max-width: 260px;
        margin: 0 auto 16px;
        display: block;
    }
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 576px) {
    .app-container {
        padding: 14px;
    }

    .main-content,
    .sidesection {
        border-radius: 6px;
    }

    .appointmentNotificationSection {
        top: 10px;
        min-width: 0;
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
        padding: 12px 14px;
        border-radius: 12px;
        gap: 10px;
    }

    .notificationSection {
        top: 10px;
        min-width: 0;
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
        padding: 12px 14px;
        border-radius: 12px;
        gap: 10px;
    }

    #notificationContainer {
        font-size: 13.5px;
    }

    .close-notification-btn {
        font-size: 20px;
        width: 28px;
        height: 28px;
    }

    footer .container-fluid {
        flex-direction: column;
        gap: 4px;
        padding-top: 8px;
        padding-bottom: 8px;
        text-align: center;
    }

    footer {
        height: auto !important;
    }
}

