::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 4px;
}

body.is-scrolling::-webkit-scrollbar-thumb {
    background: rgba(16, 114, 58, 0.5);
}

body.is-scrolling::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 114, 58, 0.7);
}

html, body {
    height: 100%;
    overflow: hidden; /* prevent body from scrolling */
}

/*Global Styles*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow-x: hidden;
}

ul {
    display: flex;
    margin: 50px;
    gap: 20px;
}

li {
    border-radius: 50px;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin-top: 0;
    background-color: #f7f7fa;
    height: 100%;
    overflow-y: scroll; /* scroll happens here, below nav */
    padding-top: 60px; /* match nav height */
}

.container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.container::-webkit-scrollbar-track {
    background: transparent;
}

.container::-webkit-scrollbar-thumb {
    background: rgba(16, 114, 58, 0.35);
    border-radius: 0; /* was 4px */
}

.container::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 114, 58, 0.6);
}

.top-nav {
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px clamp(24px, 6vw, 96px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 180ms ease;
    /* REMOVE: will-change: transform; */
}

.top-nav.top-nav--hidden {
    transform: translateY(-110%);
}

.top-nav-left,
.top-nav-right {
    display: flex;
    align-items: center;
    font-size: larger;
}

.top-nav-right {
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.logo {
    height: 40px;
    vertical-align: middle;
    margin: 0;
}

.login-form {
    width: 442px;
    margin: 0 auto;
    padding: 40px 40px 50px;
    border-radius: 20px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    font-family: "Rokkitt", sans-serif;
    text-align: left;
    background-color: #ffffff;
}

.login-form h1 {
    margin: 0 0 30px;
    font-size: 26px;
    font-family: "Ubuntu", sans-serif;
}

.login-form form {
    margin-top: 10px;
}

.login-form label {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
    color: #777;
}

input[type="text"],
input[type="password"] {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 2.5px;
    margin: 0 0 20px;
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    font-size: 14px;
}

input[type="text"],
input[type="court_name"] {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 2.5px;
    margin: 0 0 20px;
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    font-size: 14px;
}

input[type="text"],
input[type="address"] {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 2.5px;
    margin: 0 0 20px;
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    font-size: 14px;
}

input[type="text"],
input[type="mobile_no"] {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 2.5px;
    margin: 0 0 20px;
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    font-size: 14px;
}

button[type="submit"] {
    padding: 10px 14px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, #10723a, #54b11b);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.login-form button {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, #10723a, #54b11b);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.top-nav a {
    color: #111;
    text-decoration: none;
    font-family: "Rokkitt", sans-serif;
    font-weight: 600;
}

.top-nav a:hover {
    text-decoration: underline;
}

h1 {
    font-family: "Ubuntu", sans-serif;
}

/* Add to ALL css files if not already present */
.top-nav {
    /* ...existing properties... */
    transition: transform 180ms ease;
}

.top-nav--hidden {
    transform: translateY(-110%);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #111;
    border-radius: 2px;
    transition: transform 200ms ease, opacity 200ms ease;
    transform-origin: center;
}

.hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 600px) {
    .hamburger {
        display: flex;
    }

    .top-nav-right {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: #ffffff;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 14px 14px;
        flex-direction: column;
        padding: 12px 0;
        min-width: 180px;
        z-index: 999;
    }

    .top-nav-right.nav-open {
        display: flex;
    }

    .top-nav-right a {
        padding: 10px 24px;
        font-size: 16px;
    }

    .top-nav-right a:hover {
        background: #f4f4f4;
        text-decoration: none;
    }
}