@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Samarth eGov - Custom Theme */

html,
body {
    background-color: #fafafa !important;
}

.navbar-dark .navbar-toggler:focus {
    background: rgba(245, 249, 252, .08) !important;
}

.lh-looser {
    line-height: 2.5rem;
}

main, .container, .container-fluid, .card {
    width: 100% !important;
    padding-left: 0rem !important;
    padding-right: 0rem !important;
}

.navbar-brand {
    height: 80px;
}
.navbar-brand img {
    max-height: 100%;
    width: auto;
}

.lh-loosest {
    line-height: 3rem;
}

.was-validated .form-control:invalid, .form-control.is-invalid{
    background-size: calc(0.65em + 0.75rem) calc(0.65em + 0.5rem) !important;
    border-width: 2px !important;
}

.was-validated .form-control:valid, .form-control.is-valid{
    background-size: calc(0.65em + 0.75rem) calc(0.65em + 0.3rem) !important;
    border-width: 2px !important;
}

.btn-outline-secondary{
    color: #525f7e !important;
}

.float-initial .form-check input[type="checkbox"]{
    float: initial !important;
    margin-right: 4px;
}

.float-initial .form-check label{
    display: inline;
}

.smaller{
    font-size: 11px;
    font-weight: 600;
}

.form-group{
    padding-bottom: 18px;
}

.breadcrumb{
    justify-content: left;
    padding-bottom: 24px !important;
}

.list-check li{
    padding-bottom: 12px;
}

.list-check .active{
    font-weight: 700;
    color: #0d0f1a;
}

.list-check li:before{
    padding-right: 6px;
}

.list-check .active:before{
    content: '✔️';
}

.list-check li:before{
    content: '○';
}

.summary{
    font-size: 14px;
    margin-bottom: 16px;
}

table th{
    background-color: #f6f6f6 !important;
    font-weight: bold;
    color: #0d0f1a;
}

.stepper-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    overflow-x: auto;
    gap: 0;
    scroll-behavior: smooth;
    border: 1px solid #ccc;
    border-radius: 0.75rem;
    background-color: #f8f9fa;
}

.step {
    flex: 1 0 auto;
    text-align: center;
    position: relative;
    border-right: 1px solid #ccc;
}
.step.completed , .step.active {
    flex: 1 0 auto;
    text-align: center;
    position: relative;
    border-right: 1px solid rgba(0, 204, 136, 0.4);
}

.step:last-child {
    border-right: none;
}

.step-content {
    padding: 10px 0;
    background-color: #f8f9fa;
    font-size: 14px;
    color: #343a40;
}

.step.active .step-content {
    background-color: #28a745;
    color: #fff;
    border-color: #28a745;
}

.step-label {
    display: block;
    font-weight: 600;
    white-space: nowrap;
}

.step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    height: 1px;
    width: 20px;
    background: #ccc;
    z-index: -1;
    transform: translateY(-50%);
}

.step:last-child::after {
    content: none;
}

.stepper-nav::-webkit-scrollbar {
    height: 5px;
}

.stepper-nav::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 5px;
}

.stepper-nav::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

.step.completed .step-content {
    background-color: rgba(0, 204, 136, 0.1);
    color: #14A44D;
    border-color: #28a745;
}

.step.completed::after {
    background: #28a745;
}

@media print {

    @page {
        margin: 0cm;
        size: A4;
        background-color: #f8f8f8;
    }

    main, .container, .container-fluid, .card {
        width: 100% !important;
        padding-left: 0rem !important;
        padding-right: 0rem !important;
    }

    html, body {
        page-break-before: auto;
        page-break-after: auto;
        overflow: inherit;
        background-color: #f8f8f8;
    }

    .header, .footer, .d-print-none, .h-12, .nav-item{
        display: none !important;
    }

    table .td{
        font-size: 8px !important;
    }

    table {
        border-spacing: 0px;
        table-layout: inherit;
        margin-left: auto;
        margin-right: auto;
    }

}

@media (max-width: 768px) {

    .stepper-nav {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        border: 1px solid #ccc;
        border-radius: 4px;
        background-color: #f8f9fa;
        overflow: hidden;
    }

    .stepper-nav .step.expanded .step-content {
        height: auto;
        overflow: visible;
        background-color: #f8f9fa;
        padding: 15px;
    }

    .stepper-nav .step.active .step-content {
        height: 50px;
        overflow: visible;
        transition: height 0.3s ease;
        display: block;
    }
    .stepper-nav .step.completed .step-content {
        display: none;
    }
    .stepper-nav .step .step-content {
        display: none;
    }
    .stepper-nav {
        flex-direction: column;
        max-height: 60px;
        transition: max-height 0.3s ease;
    }

    .step {
        border-bottom: 1px solid #ccc;
    }

    .step:last-child {
        border-bottom: none;
    }

    .step-label {
        white-space: normal;
    }

    .stepper-nav.expanded {
        max-height: 1000px;
    }

    .stepper-nav.expanded .step.completed .step-content {
        display: block;
    }
    .stepper-nav.expanded .step .step-content {
        display: block;
    }
    .step {
        text-align: left;
        text-indent: 15px;
        background-color: #28a745;
        box-sizing: border-box;
    }
    .stepper-nav.expanded .step  {
        background-color: #f8f9fa;
    }
    .stepper-nav.expanded .step.active  {
        background-color: #28a745;
    }
    .stepper-nav.expanded .step.completed  {
        background-color: rgba(0, 204, 136, 0.1);
        text-align: left;
    }

    .card{
        border-radius: 0;
    }
}

.breadcrumb .breadcrumb-item,
.breadcrumb .breadcrumb-item a,
.breadcrumb .breadcrumb-item.active {
    color: #333 !important;
    font-weight: bold;
}

.pulsating-dot {
    width: 5px;
    height: 5px;
    display: block;
    background-color: green;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    animation: pulse 1.2s infinite;
}

.completed.step{
    border: 1px solid rgba(0, 204, 136, 0.3);
}
.step.active{
    border: 1px solid #28a745;
}
.step.active:last-child {
    border-right: 1px solid #28a745;
}
.accordion-button::after {
    background-image: none !important;
}
input.form-control,
select.form-control,
textarea.form-control {
    padding: 0.6rem;
    height: auto;
    font-size: 0.9rem;
    line-height: 1.2;
}
.breadcrumb a {
    opacity: 0.5;
    transition: opacity 0.2s ease-in-out;
    text-decoration: none;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb .active {
    opacity: 1;
    pointer-events: none;
    font-weight: 600;
}