﻿﻿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: 'Poppins', sans-serif;
    background: #f1f4f9;
    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;
}

.card {
    border-radius: 12px;
}

/* 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;
    flex-wrap: wrap; /* 👉 This is key */
    gap: 1rem;
}

    .nic-header-main img {
        height: 80px;
    }

    .nic-header-main h4 {
        font-weight: bold;
        font-size: 1.2rem;
        margin: 0;
    }

    .nic-header-main a {
        text-decoration: none;
        color: black;
    }

    .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;
    }

.line {
    position: relative;
    height: 1px;
    width: 100%;
    margin: 30px 0;
    background-color: #d4d4d4;
}

    .line::before {
        content: 'Or';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: #fff;
        color: #8b8b8b;
        padding: 0 15px;
    }

.media-options a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    border-radius: 6px;
    font-weight: 500;
    gap: 10px;
    margin-bottom: 15px;
    text-decoration: none;
    font-size: 14px;
}

    .media-options a i, .media-options a img {
        width: 20px;
        height: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        object-fit: contain;
    }

a.google {
    border: 1px solid #CACACA;
    color: #232836;
    background: #fff;
}

    a.google:hover {
        background: #f8f9fa;
    }

.signup-link {
    text-align: center;
    font-size: 14px;
    margin-top: 15px;
}

    .signup-link a {
        color: #0171d3;
        text-decoration: none;
        font-weight: 500;
    }

        .signup-link a:hover {
            text-decoration: underline;
        }


/************************************/
/*********** Contact Us styles *********/
/***********************************/
/* HERO */
.contact-hero {
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.65)), url('/images/lucknow-secretariat.jpg');
    background-size: cover;
    background-position: center;
    height: 300px;
}

/* ICON */
.contact-icon {
    font-size: 45px;
}

/* CARD */
.contact-card {
    border: none;
    border-radius: 14px;
    transition: all 0.35s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

    .contact-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 14px 40px rgba(0,0,0,0.15);
    }

/* Mobile spacing */
@media (max-width: 768px) {
    .contact-hero {
        height: 240px;
    }
}
 

/************************************/
/*********** 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;
    }
        .nic-header-main h4 {
            font-size: 1rem !important;
        }
        .nic-header-main img {
            height: 60px !important;
        }
    .amb-links-outside {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}



/* Citizen Side Bar */
.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: linear-gradient(180deg,#0d47a1,#1976d2);
    color: #fff;
    overflow-y: auto;
    z-index: 1040;
}

.sidebar .logo {
    font-size: 20px;
    font-weight: 600;
    padding: 18px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.sidebar a {
    display: block;
    padding: 12px 18px;
    color: #fff;
    text-decoration: none;
    transition: 0.25s;
}

    .sidebar a:hover {
        background: rgba(255,255,255,0.15);
        padding-left: 26px;
    }

    .sidebar a i {
        width: 22px;
    }

.topbar {
    background: #fff;
    border-radius: 12px;
    padding: 12px 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.stat-card {
    border-radius: 14px;
    color: #fff;
    padding: 18px;
    position: relative;
    overflow: hidden;
    transition: 0.25s;
}

    .stat-card:hover {
        transform: translateY(-5px);
    }

.stat-icon {
    position: absolute;
    right: 15px;
    bottom: 10px;
    font-size: 45px;
    opacity: .25;
}

.action-card {
    border-radius: 14px;
    background: #fff;
    text-align: center;
    padding: 22px 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: 0.25s;
    height: 100%;
}

    .action-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    }

    .action-card i {
        font-size: 38px;
        margin-bottom: 10px;
        color: #1976d2;
    }

.timeline {
    border-left: 3px solid #1976d2;
    padding-left: 15px;
}

.timeline-item {
    margin-bottom: 18px;
}

    .timeline-item h6 {
        margin-bottom: 3px;
    }

/* Collapsible */
.sidebar-collapsed .sidebar {
    width: 60px;
}

    .sidebar-collapsed .sidebar .logo div, .sidebar-collapsed .sidebar .logo .link-text {
        display: none;
    }

    .sidebar-collapsed .sidebar a {
        text-align: center;
        padding: 12px 8px;
    }

        .sidebar-collapsed .sidebar a .link-text {
            display: none;
        }

.sidebar-collapsed .main {
    margin-left: 80px;
}

.hamburger {
    display: flex;
    justify-self: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: white;
    width: 100%;
    height: 42px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

    .hamburger:hover {
        background: #f2f5fb;
        color: darkblue;
    }

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        width: 260px;
        transition: .25s;
    }

        .sidebar.show {
            transform: translateX(0);
        }

    .sidebar-collapsed .sidebar {
        width: 260px;
    }
}

/* TIMELINE PROCESS */
.process-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

    .process-timeline::before {
        content: '';
        position: absolute;
        top: 25px;
        left: 5%;
        right: 5%;
        height: 4px;
        background: #ddd;
        z-index: 0;
    }

    .process-timeline::before {
        background: linear-gradient(to right, #0d6efd var(--progress), #ddd var(--progress));
    }

.step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ccc;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    font-size: 18px;
}

.step.completed .circle {
    background: #28a745;
}

.step.active .circle {
    background: #0d6efd;
    animation: pulse 1.5s infinite;
}

.step .label {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13,110,253, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(13,110,253, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(13,110,253, 0);
    }
}

/* BACK BUTTON */
.nav-back-link {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #0d6efd;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

    .nav-back-link:hover {
        background: #eef4ff;
        color: #0a58ca;
    }


    /* HIERARCHY LIST*/
.location-ui {
    line-height: 1.4;
}

.location-path {
    font-size: 13px;
    opacity: 0.85;
}

.toast {
    backdrop-filter: blur(6px);
}