﻿@media (max-width: 768px) {
    .dropdown-submenu > .dropdown-menu {
        left: auto;
        right: 100%;
    }
}

.card {
    background: #dbeafe; /* light blue background */
    border-radius: 20px;
    animation: fadeIn 0.6s ease-in-out;
    transition: all 0.3s ease;
}

    /* Compact mode after all fields are shown */
    .card.compact .card-body {
        padding: 0.6rem 1rem !important; /* smaller padding */
    }

    .card.compact .mb-3 {
        margin-bottom: 0.35rem !important; /* tighter spacing */
    }

    .card.compact h3 {
        margin-bottom: 0.6rem !important;
        font-size: 1.1rem;
    }

.form-control {
    padding: 0.3rem 0.7rem;
    font-size: 0.85rem;
}

button {
    transition: 0.3s ease;
    padding: 0.3rem 0.8rem !important;
    font-size: 0.85rem;
}

    button:hover {
        transform: scale(1.05);
    }

html:focus,
body:focus,
html:focus-visible,
body:focus-visible {
    outline: none !important;
}

.report-label {
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    margin-top: 20px;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    border: 1px solid #dee2e6;
    table-layout: auto;
}

.table-wrapper {
    flex: 1;
}

.custom-table th, .custom-table td {
    border: 1.5px solid #dee2e6;
    padding: 6px;
}

.custom-table thead th {
    background-color: #64a7ed;
    color: #333;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 1;
}

.report-info {
    text-align: right;
    font-size: 16px;
    margin-bottom: 10px;
    padding-bottom: 0;
}

.info-header {
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #007bff;
}

.Dept-heading {
    text-align: left;
    font-size: 16px;
    margin-bottom: 10px;
    padding-bottom: 0;
}

.scheme-heading {
    text-align: center;
    font-size: 18px;
    margin-bottom: 10px;
    padding-bottom: 0;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.checkbox-column {
    text-align: center;
}

.radio-group {
    display: flex;
    gap: 15px; /* Adds spacing between radio buttons */
}

.toggle-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    margin-left: 10px;
}


.page {
    page-break-after: always;
}

.new {
    max-height: 400px;
    overflow-y: auto;
}

.accordion-header {
    margin-bottom: 0.25rem;
    padding-bottom: 0;
}

.accordion-button {
    padding-bottom: 0.25rem; /* reduce button padding at bottom */
}

.table.mt-5 {
    margin-top: 0.5rem !important; /* reduce top margin of table */
}

.custom-table td {
    min-width: 50px;
}

.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 3rem;
}

.mt-3 {
    margin-top: 1rem;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    width: 350px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.modal-buttons {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1055; /* important */
}

.custom-modal-content {
    background-color: white;
    padding: 20px;
    width: 350px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.comparison-section {
    margin-bottom: 20px; /* Consistent spacing between sections */
}

    .comparison-section h5 {
        margin-bottom: 10px; /* Space between heading and table */
    }

.detail-view-container {
    padding: 20px;
}

.close-button {
    text-align: center;
    margin-top: 20px;
}

.blur-background {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
}

.table-wrapper {
    flex: 1;
}

.custom-width {
    max-width: 95% !important;
    width: 95%;
}

.sftp-dropdown {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    cursor: pointer;
}

.sftp1-dropdown {
    max-height: 200px;
    overflow-y: scroll; /* 👈 force scrollbar */
    overflow-x: hidden;
}

.fixed-action-buttons {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 10px 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.dropdown-scheme {
    max-height: 350px; /* vertical scroll */
    overflow-y: auto;
}

.dropdown-menu.dropdown-scheme {
    max-height: 350px;
    overflow-y: auto;
    padding: 0.5rem 0.25rem; /* reduce padding so checkboxes fit */
}

.dropdown-scheme1 {
    max-height: 400px; /* vertical scroll */
    overflow-y: auto;
}

.dropdown-menu.dropdown-scheme1 {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem 0.25rem; /* reduce padding so checkboxes fit */
}

.dropdown-menu .form-check {
    margin: 0.25rem 0;
}


.form-check {
    display: flex;
    align-items: center; /* Align checkbox and label vertically */
}

.form-check-input {
    margin-right: 10px; /* Space between checkbox and label */
}

/* Hover effect for the button */
#schemesDropdown:hover {
    background-color: white !important;
    color: black !important;
    border-color: #ccc !important;
}

.otp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.otp-card {
    background: #fff;
    padding: 25px;
    width: 350px;
    border-radius: 15px;
    box-shadow: 0px 4px 20px rgba(0,0,0,0.25);
}

.taluk-dropdown {
    max-height: 300px; /* dropdown height */
    overflow-y: auto;
    padding-top: 0;
}

    .taluk-dropdown li:first-child {
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 10;
        padding-top: 6px;
        padding-bottom: 6px;
        border-bottom: 1px solid #ddd; /* visual separation */
    }


.dropdown-schemes {
    max-height: 400px; /* vertical scroll */
    overflow-y: auto;
}

.dropdown-menu.dropdown-schemes {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem 0.25rem; /* reduce padding so checkboxes fit */
}

.dropdown-arrow {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: #6c757d;
    cursor: pointer;
}

.rotate {
    transform: translateY(-50%) rotate(180deg);
}

.full-width-description {
    width: 85%; /* Take up most of the width */
    margin: 40px auto 0 auto; /* 40px top margin, auto horizontal, 0 bottom */
    padding: 20px;
    box-sizing: border-box;
    text-align: justify;
    background-color: #f8f9fa;
    font-weight: bold;
    border-radius: 8px; /* Optional */
}

    .full-width-description p {
        font-size: 0.95rem;
        color: #000;
    }

.page-heading {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #003F74;
}

.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 20px;
    background-color: darkgreen;
    color: white;
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s;
}

    .scroll-to-top:hover {
        background-color: #0056b3;
    }

.policy-box {
    width: 85%;
    margin: 40px auto 40px auto; /* Top & bottom margin */
    padding: 20px;
    box-sizing: border-box;
    text-align: justify;
    background-color: #f8f9fa;
    font-weight: bold;
    border-radius: 8px;
}

    .policy-box p {
        font-size: 0.95rem;
        color: #000;
        margin-bottom: 1rem;
    }

.policy-heading {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #003F74;
}

.sub-heading {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #003F74;
}

.full-width-description1 {
    width: 100%; /* Full width */
    padding: 20px; /* Padding around text */
    box-sizing: border-box;
    text-align: justify; /* Neat alignment */
    background-color: #f8f9fa;
    font-weight: bold; /* Light background */
}

.full-width-image {
    width: 100%; /* responsive */
    max-width: 600px; /* desktop limit */
    height: auto; /* keep aspect ratio */
    display: block;
    margin: 0 auto 20px; /* center image */
}


.dbt-description {
    margin: 0 150px; /* Left and right margin */
    padding: 20px 0; /* Optional top & bottom padding */
    text-align: justify; /* Neat alignment */
}

    .dbt-description p {
        font-size: 1rem;
        color: #000; /* Black text */
    }
/*welcome page css*/
/* Navbar */
.navbar-custom {
    border: 2px solid #0056b3;
    background-color: #0056b3 !important;
    padding-top: 0.25rem; /* reduce top padding */
    padding-bottom: 0.25rem; /* reduce bottom padding */
    min-height: 45px; /* adjust overall height */
}

    .navbar-custom .navbar-nav .nav-link {
        color: #ffffff !important;
        flex: 1;
        text-align: center;
        transition: background-color 0.3s;
        padding-top: 0.25rem; /* reduce vertical padding */
        padding-bottom: 0.25rem;
    }

        .navbar-custom .navbar-nav .nav-link:hover {
            background-color: #777777;
        }

/* Dropdown menus */
.dropdown-menu {
    min-width: 200px;
    width: 300px;
    white-space: normal;
}

.dropdown-item {
    white-space: nowrap;
    color: #000;
}

    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: #007bff;
        color: #fff;
    }

/* Submenu (default opens right) */
.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu > .dropdown-menu {
        display: none;
        position: absolute;
        top: 0;
        left: 100%;
        margin-top: -1px;
        min-width: 360px;
        width: 360px;
        white-space: nowrap;
        z-index: 1000;
    }

    /* Submenu hover / focus */
    .dropdown-submenu:hover > .dropdown-menu,
    .dropdown-submenu:focus-within > .dropdown-menu {
        display: block;
    }

    /* Submenu forced left */
    .dropdown-submenu.submenu-left > .dropdown-menu {
        left: auto;
        right: 100%;
        margin-left: 0;
        margin-right: 0.1rem;
    }

/* Caret rotation when open */
.show > .dropdown-toggle::after {
    transform: rotate(-180deg);
}

/* Scroll only for submenus (like ID Validation) */
.dropdown-submenu > .dropdown-menu {
    max-height: 300px; /* adjust height */
    overflow-y: auto;
    overflow-x: hidden; /* avoid sideways scrollbar */
}

.login-blink {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 30px;
    font-size: 19px;
    font-weight: bold;
    color: black; /* text always black */
    background-color: #ffffff; /* initial background white */
    border: 2px solid #000000;
    border-radius: 4px;
    cursor: pointer;
    animation: bgBlink 1s infinite; /* 1-second blink */
}

.blur-background {
    filter: blur(5px);
    pointer-events: none; /* prevents clicking background */
    user-select: none;
}

.phone-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.phone-number {
    cursor: default;
}

.view-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

    .view-btn:hover {
        background-color: #0056b3;
    }


.carousel {
    background: transparent;
}

.carousel-inner {
    max-height: 600px;
    background: transparent;
    overflow: hidden;
}

.carousel-img {
    width: 100%;
    max-height: 600px;
    height: auto;
}

.carousel-text {
    position: absolute;
    top: 65%;
    left: 5%;
    right: 5%;
    transform: translateY(-50%);
    text-align: center;
    z-index: 1000;
}


    .carousel-text p {
        color: #000; /* Black */
        font-size: 1.2rem;
        line-height: 1.8;
        font-weight: 600;
        text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff, 2px 2px 5px rgba(255,255,255,0.8);
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bgBlink {
    0%, 100% {
        background-color: #ffffff;
    }

    50% {
        background-color: #cccccc;
    }
    /* grey blink */
}


@media (max-width: 992px) {
    .carousel-text {
        top: 70%;
        left: 4%;
        right: 4%;
    }

        .carousel-text p {
            font-size: 1.05rem;
        }
}

/* Tablets & Mobiles */
@media (max-width: 768px) {
    .carousel-text {
        top: 75%;
        left: 3%;
        right: 3%;
    }

        .carousel-text p {
            font-size: 0.9rem;
            line-height: 1.5;
        }
}

/* Small Mobiles */
@media (max-width: 480px) {
    .carousel-text {
        top: 80%;
        left: 2%;
        right: 2%;
    }

        .carousel-text p {
            font-size: 0.75rem;
            line-height: 1.4;
        }
}