/* RESET */
body {
    margin: 0;
    padding-top: 60px; /* space for fixed navbar */
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f4f4;
}

/* NAVBAR WRAPPER */
.sms-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    z-index: 1000;
}

/* INNER */
.sms-navbar-inner {
    margin: 0 auto;
    padding: 0 16px;
    height: 56px;
    line-height: 56px;
    overflow: hidden;
}

/* BRAND */
.sms-brand {
    float: left;
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.sms-brand img {
    height: 30px;
    vertical-align: middle;
    margin-right: 8px;
}

/* MENUS */
.sms-menu {
    float: left;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sms-menu-right {
    float: right;
}

.sms-menu li {
    float: left;
}

.sms-menu li a {
    display: block;
    padding: 0 14px;
    color: #222;
    text-decoration: none;
    font-size: 15px;

    /* transitions */
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;

    position: relative;
}

/* HOVER EFFECTS */
.sms-menu li a:hover {
    background: #f0f0f0;
    font-size: 16px;
}

/* UNDERLINE ANIMATION */
.sms-menu li a:after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 12px;
    height: 2px;
    background: #333;
    opacity: 0;

    -webkit-transition: opacity 0.2s ease;
    transition: opacity 0.2s ease;
}

.sms-menu li a:hover:after {
    opacity: 1;
}

/* MOBILE TOGGLE */
.sms-toggle {
    display: none;
    float: right;
    font-size: 22px;
    cursor: pointer;
    color: #222;
    padding: 15px;
    margin: -15px -15px -15px 0;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    user-select: none;
    transition: all 0.2s ease;
}

.sms-toggle:active,
.sms-toggle.active,
.sms-toggle.touching {
    background-color: #f0f0f0;
    transform: scale(0.95);
}

/* MOBILE VIEW */
@media (max-width: 768px) {

    body {
        padding-top: 56px;
    }

    .sms-navbar-inner {
        height: auto;
        overflow: visible;
    }

    .sms-brand {
        float: none;
        display: inline-block;
    }

    .sms-toggle {
        display: flex;
    }

    .sms-menu,
    .sms-menu-right {
        float: none;
        clear: both;
        display: block;
        background: #ffffff;
        border-top: 1px solid #ddd;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    }
    
    /* Slide-in animation when menu opens */
    .sms-menu.menu-open,
    .sms-menu-right.menu-open {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Slide-out animation when menu closes */
    .sms-menu.menu-closing,
    .sms-menu-right.menu-closing {
        max-height: 0;
        opacity: 0;
        transform: translateY(-10px);
    }

    .sms-menu li {
        float: none;
    }

    .sms-menu li a {
        padding: 12px 16px;
        border-bottom: 1px solid #eee;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .sms-menu li a:active {
        background: #e0e0e0;
    }
}
