/********** Template CSS **********/

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.fw-medium {
    font-weight: 500;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--bs-light);
}

.btn-secondary,
.btn-outline-secondary:hover {
    color: var(--bs-dark);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-weight: normal;
}

.icon-box-primary,
.icon-box-light {
    position: relative;
    padding: 0 0 10px 10px;
    z-index: 1;
}

.icon-box-primary i,
.icon-box-light i {
    font-size: 60px;
    line-height: 0;
}

.icon-box-primary::before,
.icon-box-light::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 35px;
    left: 0;
    bottom: 0;
    border-radius: 35px;
    transition: .5s;
    z-index: -1;
}

.icon-box-primary::before {
    background: var(--bs-primary);
}

.icon-box-light::before {
    background: var(--bs-light);
}


/*** Navbar ***/
.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 20px 0;
    color: var(--bs-dark);
    font-size: 18px;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .sticky-top {
        margin-top: -34px;
    }

    .navbar {
        height: 68px;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
@media (min-width: 992px) {
    .header-carousel,
    .page-header {
        margin-top: -34px;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: rgba(3, 27, 78, .3);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 3.5rem;
    background-color: var(--bs-primary);
    border: 15px solid var(--bs-primary);
}

@media (max-width: 767.98px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(rgba(3, 27, 78, .3), rgba(3, 27, 78, .3)), url(../img/testimonial.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--bs-white);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--bs-white);
}


/*** About ***/
.about-fact {
    width: 220px;
    height: 220px;
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

@media (min-width: 576px) {
    .about-fact.mt-n130 {
        margin-top: -130px;
    }
}


/*** Service ***/
.container-service {
    position: relative;
}

.container-service::before {
    position: absolute;
    content: '';
    background: var(--bs-light);
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    clip-path: polygon(0 0, 100% 0, 100% 30%, 0 70%);
    z-index: -1;
}

.service-item {
    position: relative;
    height: 100%;
    padding: 45px 30px;
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
}

.service-item::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    left: 0;
    bottom: 0;
    transition: .5s;
    background: var(--bs-primary);
}

.service-item:hover::before {
    height: 100%;
    top: 0;
}

.service-item * {
    position: relative;
    transition: .5s;
    z-index: 1;
}

.service-item:hover h5,
.service-item:hover p {
    color: var(--bs-white);
}

.service-item:hover .icon-box-primary::before {
    background: var(--bs-dark);
}

.service-item:hover .icon-box-primary i {
    color: var(--bs-white) !important;
}


/*** Team ***/
.container-team {
    position: relative;
}

.container-team::before {
    position: absolute;
    content: '';
    background: var(--bs-light);
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    clip-path: polygon(0 70%, 100% 30%, 100% 100%, 0% 100%);
    z-index: -1;
}

.team-item {
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
}

.team-item .team-social {
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    right: 0;
    transition: .5s;
    background: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-item:hover .team-social {
    width: 100%;
    left: 0;
}

.team-item .team-social .btn {
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-social .btn {
    opacity: 1;
}


/*** Contact ***/
@media (min-width: 992px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 0px;
        height: 100%;
        top: 0;
        left: 50%;
        border-left: 1px dashed rgba(255, 255, 255, .2);
    }
}

@media (max-width: 991.98px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 100%;
        height: 0px;
        top: 50%;
        left: 0;
        border-top: 1px dashed rgba(255, 255, 255, .2);
    }
}


/*** Footer ***/
.footer {
    background: linear-gradient(rgba(3, 27, 78, .3), rgba(3, 27, 78, .3)), url(../img/footer.png) center center no-repeat;
    background-size: contain;
}

@media (min-width: 992px) {
    .footer::after {
        position: absolute;
        content: "";
        width: 0px;
        height: 100%;
        top: 0;
        left: 50%;
        border-left: 1px dashed rgba(255, 255, 255, .2);
    }
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, .5);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: rgba(255, 255, 255, .5);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--bs-primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    border-top: 1px dashed rgba(255, 255, 255, .2);
}

.copyright a {
    color: var(--bs-white);
}

.copyright a:hover {
    color: var(--bs-primary);
}


/* ===== ADMIN LOGIN ===== */
.admin-login-section {
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.admin-login-box {
    width: 100%;
    max-width: 420px;
    padding: 35px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.admin-login-box h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 26px;
}

.admin-login-form .form-group {
    margin-bottom: 18px;
}

.admin-login-form input {
    width: 100%;
    padding: 14px 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 15px;
}

.admin-login-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #0d6efd, #084298);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.admin-login-btn:hover {
    background: #1C973D;
}
/* ===== ADMIN LOGIN  END===== */

/* ===== ADMIN DASHBOARD ===== */

/* ===== ADMIN DASHBOARD ===== */

.admin-dashboard {
    padding: 60px 20px;
    background: #f6f6f6;
    min-height: 100vh;
}

.admin-dashboard-header {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-dashboard-header h2 {
    font-size: 28px;
    margin: 0;
}

.admin-dashboard-user {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 15px;
}

.admin-logout-btn {
    background: #031b4e;
    color: #fff;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}

.admin-dashboard-cards {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.admin-card {
    background: #b4b9c9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: center;
}

.admin-dashboard-welcome {
    max-width: 1100px;
    margin: 40px auto 0;
    background: #d1cece;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}


.admin-login-form select {
    width: 100%;
    padding: 14px 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 15px;
    background: #fff;
}

/* =========================
   MOBILE RESPONSIVE REPORT
========================= */

@media (max-width: 768px) {

    .report-wrapper{
        padding:15px;
        font-size:13px;
    }

    .patient-info table td{
        display:block;
        width:100%;
        padding:4px 0;
    }

    .report-table{
        display:block;
        width:100%;
        overflow-x:auto;
        white-space:nowrap;
    }

    .report-table th,
    .report-table td{
        padding:6px;
        font-size:12px;
    }

    .test-name{
        font-size:13px;
    }

    .qr-box{
        text-align:center;
        margin-top:20px;
    }

    .qr-box img{
        width:100px;
        height:100px;
    }
}


/*=============================================================================Customized code==============================================================*/

/* ===============================
   GLOBAL
================================ */
* {
    box-sizing: border-box;
}

body {
    background-color: #f4f7fb;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    color: #2c3e50;
    margin: 0;
}

/* ===============================
   CARD
================================ */
.card {
    border-radius: 16px;
    border: none;
    background: #ffffff;
}

.card.shadow-sm {
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08) !important;
}

.card-body {
    padding: 28px;
}

/* ===============================
   TITLE
================================ */
h4 {
    font-weight: 700;
    color: #0b2c4d;
    margin-bottom: 20px;
}

/* ===============================
   TABLE WRAPPER
================================ */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 14px;
}

/* ===============================
   TABLE DESKTOP
================================ */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
}

.table thead {
    background: linear-gradient(135deg, #0d6efd, #084298);
}

.table thead th {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    padding: 14px 16px;
    border: none;
    white-space: nowrap;
}

.table tbody td {
    padding: 14px 16px;
    font-size: 14.5px;
    border-color: #e6ebf2;
    vertical-align: middle;
}

.table tbody tr {
    transition: background 0.25s ease;
}

.table tbody tr:hover {
    background-color: #f1f6ff;
}

/* ===============================
   REG NO
================================ */
.table tbody td:first-child {
    font-weight: 600;
    color: #0d6efd;
}

/* ===============================
   BUTTON
================================ */
.admin-logout-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #0d6efd, #084298);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.35);
}

.admin-logout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(13, 110, 253, 0.45);
    color: #fff;
}

/* ===============================
   ALERT
================================ */
.alert-info {
    background: #eef5ff;
    border-radius: 12px;
    border: none;
    color: #084298;
    font-weight: 500;
}

/* ===============================
   MOBILE / TABLET VIEW
================================ */
@media (max-width: 991px) {

    .card-body {
        padding: 22px;
    }

    h4 {
        font-size: 18px;
    }

    .table thead {
        display: none;
    }

    .table,
    .table tbody,
    .table tr,
    .table td {
        display: block;
        width: 100%;
    }

    .table tbody tr {
        margin-bottom: 16px;
        border-radius: 14px;
        padding: 12px;
        background: #ffffff;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    }

    .table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 12px;
        border: none;
        font-size: 14px;
    }

    .table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6c757d;
    }

    .table tbody td:last-child {
        justify-content: center;
        margin-top: 8px;
    }

    .admin-logout-btn {
        width: 100%;
        text-align: center;
    }
}

/* ===============================
   SMALL MOBILE
================================ */
@media (max-width: 480px) {

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .card-body {
        padding: 18px;
    }

    h4 {
        font-size: 16px;
    }

    .admin-logout-btn {
        font-size: 13px;
        padding: 10px;
    }
}

/*=============================================================================Customized code ended========================================================*/
