﻿html {
  font-size: 14px;
}

.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;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to bottom right, #f4f7fa, #ffffff);
    margin: 0;
}

/* Hide default browser reveal/clear icons in password fields */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-clear-button,
input[type="password"]::-webkit-inner-spin-button {
    display: none !important;
}


/* Header styles */
.nic-header-top {
    background-color: white;
    font-size: 0.9rem;
    padding: 0.3rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
}

.nic-header-top .left a, .nic-header-top .right a {
        text-decoration: none;
        color: black;
}

.nic-header-main {
    background-color: #fff;
    padding: 1rem;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nic-header-main img {
    height: 80px;
}

.nic-header-main h4 {
    font-weight: bold;
    margin: 0;
}

.nic-header-main a {
    text-decoration: none;
    color: black;
}

.nic-header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* 👉 This is key */
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.nic-header-main > img:last-child {max-width: 200px;}


/*------------------------------------*/
/*---------NavBar Decorations---------*/
/*------------------------------------*/
/* Base navbar style */
.navbar{padding-bottom:0;padding-top:0;}
.nic-navbar {
    background-color: #ffffff;
    border-bottom: 2px solid #cbb26a;
}

/* Default nav link style */
.nic-navbar .navbar-nav:first-child .nav-link {
    color: #000; /* Black text */
    font-weight: normal; /* Not bold */
    position: relative;
    padding-right: 18px;
    line-height: 2;
    transition: all 0.3s ease;
}

/* Hover state: gold underline + light grey background */
.nic-navbar .navbar-nav:first-child .nav-link:hover {
    color: #000; /* Keep text black */
    background-color: #f8f9fa; /* Light grey background */
    text-decoration: none;
}

/* Underline effect */
.nic-navbar .navbar-nav:first-child .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 0%;
    height: 2px;
    background-color: #cbb26a; /* Gold underline */
    transition: width 0.3s ease;
}

.nic-navbar .navbar-nav:first-child .nav-link:hover::after {width: 100%;}

/* Active link: bold + light grey bg + underline */
.nic-navbar .navbar-nav:first-child .nav-link.active, .nic-navbar .navbar-nav:first-child .nav-link.show {
    color: #000;
    font-weight: bold;
    background-color: #f8f9fa;
}

    .nic-navbar .navbar-nav:first-child .nav-link.active::after, .nic-navbar .navbar-nav:first-child .nav-link.show::after {
        width: 100%;
    }

    .nic-navbar .navbar-nav:first-child .nav-link:hover, .nic-navbar .navbar-nav:first-child .nav-link.active {
        border-radius: 4px;
    }



/*------------------------------------*/
/*------------BREADCRUMBS-------------*/
/*------------------------------------*/
.breadcrumb {
    background-color: transparent;
    font-size: 0.95rem;
    padding: 0;
    margin-bottom: 1rem;
}
.breadcrumb-item + .breadcrumb-item::before {content: "›"; /* You can use ">" or "/" or a font-awesome icon */color: #6c757d;}
.breadcrumb-item a {color: #0d6efd;text-decoration: none;}
.breadcrumb-item a:hover {text-decoration: underline;}


/* Login card */
.login-card {
    max-width: fit-content;
    margin: auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.login-card h4 {
    text-align: center;
    margin-bottom: 1rem;
    color: #0a4275;
    font-weight: 600;
}

/* Disable Buttons */
.login-card form input, .login-card form span {
    cursor: not-allowed;
}

/* Footer styles */
.nic-footer {
    bottom: 0;
    width: 100%;
    background-color: #111;
    color: #fff;
    font-size: 0.85rem;
    padding: 1rem 1rem 0.5rem;
    text-align: center;
}

.nic-footer a {
    color: #ccc;
    text-decoration: none;
    margin: 0 1rem;
}

.nic-footer a:hover {
        color: #fff;
        text-decoration: underline;
}

.nic-footer .logos img {
    height: 48px;
    margin: 0.5rem;
    padding: 4px;
    border-radius: 4px;
}

.nic-footer .last-updated {
    color: #aaa;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* For adding animation to cards */
.slide-fade-in {
    animation: slideFadeIn 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes slideFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .nic-header-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .amb-links-outside {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
