html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.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 {
  margin-bottom: 60px;
}

/* Navbar polish */
.nav-link-pro {
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

    .nav-link-pro:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .nav-link-pro.active {
        background-color: rgba(13, 202, 240, 0.2);
        color: #0dcaf0 !important;
    }
.dropdown-menu .dropdown-divider {
    border-top: 1px solid #00acc1;
    opacity: 1;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    text-shadow: 0 0 25px 8px rgba(0, 165, 204, 0.3);
    border-radius: 6px;
    transition: box-shadow 0.25s ease;
    text-shadow: 0px 1px 1px #b0b0b0;
}

.dropdown-menu .dropdown-item:hover {
    font-weight: 400;
}
.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-left: 0.1rem;
        display: none;
    }

    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }

    .dropdown-submenu > .dropdown-item {
        cursor: pointer;
    }

/* Dashboard Container */
.dashboard-container {
    width: 100%;
    padding: 2rem 2rem 5rem 2rem; /* more horizontal padding to use space */
    text-align: center;
    margin: 0 auto;
}

/* Dashboard Title */
.dashboard-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #222;
}

/* Dashboard Subtitle */
.dashboard-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Cards Row */
.cards-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: nowrap;
    width: 100%;
    margin: 0 auto;
}

/* Individual Card */
.card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem 1rem; /* slightly taller padding for bigger icons */
    box-shadow: 0 4px 16px rgb(0 0 0 / 0.05);
    flex: 1 1 13%; /* roughly 7 cards per line */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

    .card:hover {
        /* Use highlighted effect on hover */
        box-shadow: 0 0 25px 8px rgba(0, 165, 204, 0.3);
        transform: translateY(-4px);
    }

/* Highlighted Card (default for special card if needed) */
.card-highlighted {
    box-shadow: 0 0 25px 8px rgba(0, 165, 204, 0.3);
}

/* Muted Card */
.card-muted {
    opacity: 0.7;
}

/* Card Icon */
.card-icon {
    font-size: 3.5rem; /* bigger icon */
    margin-bottom: 1rem; /* spacing below icon */
    color: #00acc1;
}

/* Card Title */
.card-title {
    font-size: 1.15rem; /* slightly bigger title */
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111;
}

/* Card Description */
.card-desc {
    font-size: 0.9rem; /* slightly bigger description */
    color: #555;
    line-height: 1.3;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .cards-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.2rem;
    }

    .card {
        flex: 1 1 40%;
        max-width: 40%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .card {
        flex: 1 1 90%;
        max-width: 90%;
    }

    .dashboard-title {
        font-size: 2rem;
    }

    .dashboard-subtitle {
        font-size: 1rem;
    }
}

/* Form Title Name */

.form-title-head {
    padding-bottom: 10px;
    margin-bottom: 16px; /* controls gap below title */
    border-bottom: 3px solid #808588; /* thicker line */
    font-weight: 500;
}
.form-title-name {
    font-family: Inter, system-ui, sans-serif;
    font-size: 26px;
    text-shadow: 0px 1px 1px #b0b0b0;
}

/*---------Buttons-----------*/

.btn-custom {
    background-color: #000000;
    border: none;
    border-radius: 6px; /* slight curve */
    color: #ffffff;
    transition: background-color 0.3s ease;
}
.btn-custom:hover,
.btn-custom:focus {
    background-color: #0dcaf0;
    color: #000000; /* optional: change text to black on hover for contrast */
    outline: none;
    box-shadow: none;
}
/*medium height */
.btn-custom-md {
    background-color: #000000;
    border: none;
    border-radius: 6px; /* slight curve */
    color: #ffffff;
    padding: 6px 12px; /* slightly taller & wider */
    font-size: 1rem; /* readable text */
    line-height: 1.4; /* balanced height */
    transition: background-color 0.3s ease;
}
.btn-custom-md:hover,
.btn-custom-md:focus {
    background-color: #0dcaf0;
    color: #000000; /* text color on hover */
    outline: none;
    box-shadow: none;
}
/*small height */
.btn-custom-sm {
    background-color: #000000;
    border: none;
    border-radius: 6px; /* slight curve */
    color: #ffffff;
    padding: 4px 12px; /* smaller vertical padding */
    font-size: 0.9rem; /* slightly smaller text */
    line-height: 1.2; /* reduces height further */
    transition: background-color 0.3s ease;
}
.btn-custom-sm:hover,
.btn-custom-sm:focus {
    background-color: #0dcaf0;
    color: #000000; /* text color on hover */
    outline: none;
    box-shadow: none;
}

/*----------++-------------*/
.customlogo-btn {
    background: #fff;
    border-radius: 0.5rem;
    padding: 6px 14px 6px 8px; /* top right bottom left */
    font-size: 16px;
    color: #333;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px; /* space between icon and text */

    border: 2px solid rgba(0, 165, 204, 0.4);
    box-shadow: 0 4px 16px rgb(0 0 0 / 0.05);
    transition: all 0.3s ease;
}
    .customlogo-btn i {
        font-size: 18px;
        color: #00acc1; /* official Bootstrap purple */
    }
    .customlogo-btn:hover {
        border-color: rgba(0, 165, 204, 0.9);
        box-shadow: 0 0 15px rgba(0, 165, 204, 0.4);
        transform: translateY(-1px);
    }
.customlogo-btn-highlighted {
    box-shadow: 0 0 25px 8px rgba(0, 165, 204, 0.3);
}
/*--------------------------*/
.custom-btn {
    min-height: 30px;
    padding: 8px 12px;
    font-size: 16px;
    color: #fff;
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /*white-space: nowrap;*/
    box-shadow: inset 2px 2px 2px 0px rgba(255,255,255,.5), 7px 7px 20px 0px rgba(0,0,0,.1), 4px 4px 5px 0px rgba(0,0,0,.1);
    outline: none;
    margin-left :7px;
}

.btnblue {
    background: rgb(96,9,240);
    background: linear-gradient(0deg, rgba(96,9,240,1) 0%, rgba(129,5,240,1) 100%);
    border: none;
}

    .btnblue:hover {
        box-shadow: 4px 4px 6px 0 rgba(255,255,255,.5), -4px -4px 6px 0 rgba(116, 125, 136, .5), inset -4px -4px 6px 0 rgba(255,255,255,.2), inset 4px 4px 6px 0 rgba(0, 0, 0, .4);
    }

.btnblack {
    background: #363636;
    border: none;
}

    .btnblack:hover {
        box-shadow: 4px 4px 6px 0 rgba(128,133,136,0.6), -4px -4px 6px 0 rgba(128,133,136,0.6), inset -4px -4px 6px 0 rgba(128,133,136,0.3), inset 4px 4px 6px 0 rgba(128,133,136,0.6);
    }

/*------------ FCR progress Bar -----------*/

.progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0; /* no gap to remove space between steps */
    margin: 10px 0;
}

/* Wrapper around line + step */
.step-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

/* Line connecting steps */
.line {
    width: 60px; /* distance between icon centers minus circle diameter */
    height: 4px;
    position: relative;
    top: 20px; /* vertically center line with icon (half circle height) */
    z-index: 1;
}

/* Completed steps line (green) */
.line-green {
    background: #28a745;
}

/* Active step left line (blue) */
.line-blue {
    background: #0d6efd;
}

/* Pending steps line (gray) */
.line-gray {
    background: #dcdcdc;
}

/* Step container */
.step {
    width: 80px; /* wider for icon + label */
    text-align: center;
    position: relative;
    z-index: 2;
    flex-shrink: 0; /* prevent shrinking */
}

/* Circle with icon */
.circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ced4da;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    margin: 0 auto;
    transition: background-color 0.3s, border-color 0.3s;
    z-index: 2;
}

/* Step label */
.step p {
    margin-top: 8px;
    font-size: 14px;
    color: #6c757d;
    white-space: nowrap; /* Prevent wrapping */
    width: 80px; /* Enough width */
    margin-left: auto; /* Center text */
    margin-right: auto;
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Ellipsis for overflow */
    display: block;
}

/* Completed step circle */
.step.completed .circle {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.step.completed p {
    color: #28a745;
}

/* Active step circle background blue and blinking */
@keyframes slowBlink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.step.active .circle {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
    animation: slowBlink 3s infinite;
}

.step.active p {
    color: #0d6efd;
}

.step.active .circle i {
    color: white;
}

.circle i {
    font-size: 20px;
}

/* Responsive small screen tweaks */
@media (max-width: 600px) {
    .progress-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .line {
        width: 40px;
    }

    .step {
        width: 70px;
    }

    .circle {
        width: 35px;
        height: 35px;
    }

        .circle i {
            font-size: 16px;
        }

    .step p {
        font-size: 12px;
        width: 70px;
    }
}