﻿/* ساختار اصلی برای چسبیدن فوتر به پایین */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    padding-top: 30px;
}

.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding: 10px 0;
    text-align: center;
    font-size: 12px;
    color: #555;
    z-index: 1050; /* بالاتر از navbar فیکس (که z-index آن معمولاً 1030 است) */
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
}
/* محتوای اصلی باید کل فضای موجود را پر کند تا فوتر به پایین چسبیده شود */
.hc-body {
    flex: 1 0 auto; /* رشد کند تا فضای خالی را پر کند */
    width: 100%;
    min-height: calc(100vh - 120px);
    padding: 15px;
    padding-bottom: 60px;
    margin-bottom: 0;
}

/* فوتر */
.site-footer {
    flex-shrink: 0; /* جلوگیری از کوچک شدن فوتر */
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding: 15px 0;
    font-size: 12px;
    color: #555;
    width: 100%;
    text-align: center;
    margin-top: 20px; /* فاصله اختیاری از محتوا */
}

/* اطمینان از اینکه navbar در بالای محتوا قرار گیرد (فقط در صورت نیاز) */
.navbar-fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}
/* NAVBAR */
.container {
    padding:2px;
}
.navbar-inverse .navbar-nav > li > {
    color: #d9d9d9;
    font-size:12px;
}
.hc-navbar {
    background: #1f2a44;
    border: none;
    margin-bottom: 0;
}
.hc-brand {
    display: flex;
    align-items: center;
    padding: 10px 15px;
}
.hc-logo {
    height: 28px;
    margin-left: 8px;
}
.hc-lab-name {
    color: #fff;
    font-size: 18px;
}
.hc-patient {
    color: #fff !important;
    margin-right: 15px;
}

/* FOOTER */
.hc-footer {
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 10px;
    font-size: 12px;
    color: #777;
}

/* LOADING */
.hc-loading {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(255,255,255,0.6);
    z-index: 9999;
    text-align: center;
    padding-top: 200px;
}
.login-box {
    max-width: 420px;
    margin: 80px auto;
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.login-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
    color: #1f2a44;
}

.form-control {
    border-radius: 6px;
    height: 42px;
    font-size: 14px;
}

.btn-login {
    background: #1f2a44;
    color: #fff;
    border: none;
    height: 42px;
    border-radius: 6px;
}

    .btn-login:hover {
        background: #162034;
        color: #fff;
    }

.hint {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}
label{
    font-size:14px;
}
.lbmtest {
    padding: 1px;
    margin-bottom: 2px;
    font-size: 12px;
    text-align: left;
    font-weight: bold;
}
.list-group-item{
    padding:2px;
}
.Grouptitle {
    text-decoration: none;
    padding: 6px;
    text-align: left;
    width: 100%;
    display: inline-block;
}
    .Grouptitle:hover, .Grouptitle:focus {
        text-decoration: none;
        border:none;
        outline:none;
    }

.labBox {
    background: #fff;
    border-radius: 6px;
    padding: 18px;
    border: 1px solid #edf0f5;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
    transition: all .25s ease;
    height: 100%;
    position: relative;
    overflow: hidden;

}

    .labBox:before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 6px;
        height: 100%;
        background: linear-gradient(180deg, #1f2a44, #3981bb);
    }

    .labBox:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 24px rgba(0,0,0,.12);
    }

    .labBox h2 {
        font-size: 15px !important;
        font-weight: 700;
        color: #2d3748 !important;
        line-height: 1.8;
        margin-bottom: 12px !important;
        margin-top: 5px !important;
    }

        .labBox h2 span {
            display: inline-block;
            margin-top: 4px;
            color: #6c757d !important;
            font-size: 12px !important;
            font-weight: 500;
        }

    .labBox p {
        margin-bottom: 0;
    }

    .labBox .label-danger {
        display: inline-block;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 700;
        background: #ffe5e5;
        color: #dc3545;
        border: 1px solid #ffc9c9;
    }

    .labBox .label-success {
        display: inline-block;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 700;
        background: #e8fff1;
        color: #198754;
        border: 1px solid #b7ebc6;
    }

    /* MOBILE IMPROVEMENTS */
    @media (max-width: 768px) {
        .hc-patient {
        display: block;
        width: 100%;
        text-align: right;
        padding: 10px 15px;
    }

    .hc-logo {
        height: 24px;
    }

    .navbar-nav {
        margin: 0;
    }

        .navbar-nav li a {
            padding: 10px;
        }
}
