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

:root {
    --primary-color: rgb(4, 119, 190);
    --secondary-color: rgb(3, 97, 154);
    --thirdary-color: rgb(239, 181, 22);
    --text-color: rgb(0, 0, 0);
    --dark-color: rgb(39, 92, 125);
    --light-color: #f0f0f0;
    --white-color: #ffffff;
    --blak-color: #000000;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-theme {
    color: var(--dark-color) !important;
}

main {
    position: relative;
    min-height: 100vh;
}

.border-top15 {
    border-top: 15px solid var(--dark-color);
}

.bg-image {
    background-image: url(../images/login-img.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}


/* Login Panel */
/* ================================== */
.logo {
    padding: 3px;
    background-color: #eaf2f6;
    border-radius: 100%;
    box-shadow: 0 0 0 4px #ffffff;
    margin: 5px;
}

.loginBox {
    position: absolute;
    width: 100%;
    bottom: 20px;

}

.loginBox .input-group-text {
    background: #fff;
    color: var(--primary-color);
    border-radius: 0;
    border: 0;
    justify-content: center;
    box-shadow: none;
    padding: 5px 10px;
    height: 47px;
    width: 47px;
}

.loginBox .form-control {
    border-radius: 0;
    border: 0;
    box-shadow: none;
}

.loginBox button {
    background: var(--white-color);
    color: var(--secondary-color);
    border-radius: 0;
    border: 0;
    box-shadow: none;
    padding: 5px 20px;
    font-weight: 500;
}

.logoutBtn {
    background-color: var(--thirdary-color);
    color: var(--white-color);
    padding: 5px 15px;
    display: inline-flex;
    align-items: center;
    outline: none;
    border: none;
    border-radius: 5px;
    box-shadow: none;
    font-weight: 500;
    min-width: 270px;
}

.updateBtn {
    background-color: #12ff00;
    color: var(--white-color);
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    outline: none;
    border: none;
    border-radius: 5px;
    box-shadow: none;
    font-weight: 500;
}

.cancelBtn {
    background-color: #ff0000;
    color: var(--white-color);
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    outline: none;
    border: none;
    border-radius: 5px;
    box-shadow: none;
    font-weight: 500;
}

.dashboardBtn {
    background-color: #026398;
    color: var(--white-color);
    padding: 5px 15px;
    display: inline-flex;
    align-items: center;
    outline: none;
    border: none;
    border-radius: 5px;
    box-shadow: none;
    font-weight: 500;
    white-space: nowrap;
}
.logoutBtn2 {
    background-color: #de171a;
    color: var(--white-color);
    padding: 5px 15px;
    display: inline-flex;
    align-items: center;
    outline: none;
    border: none;
    border-radius: 5px;
    box-shadow: none;
    font-weight: 500;
    white-space: nowrap;
}
.changePassBtn {
    background-color: #f2a204;
    color: var(--white-color);
    padding: 5px 15px;
    display: inline-flex;
    align-items: center;
    outline: none;
    border: none;
    border-radius: 5px;
    box-shadow: none;
    font-weight: 500;
    white-space: nowrap;
}
.blurred {
    filter: blur(5px);
    transition: filter 0.3s ease-in-out;
}
.savealert, .updatealert, .deletealert, .yesalert, .noalert, .cancelalert{
    min-width: 120px;
    box-shadow: none;
    font-weight: 500;
    color: var(--white-color);
}
.savealert{
    background-color: #15870d;
    color: var(--white-color);
}
.savealert:hover, .savealert:focus{
    background-color: #0d5f0a;
    color: var(--white-color);
}
.updatealert{
    background-color: #12ff01;
    color: var(--white-color);
}
.updatealert:hover, .updatealert:focus{
    background-color: #0ea909;
    color: var(--white-color);
}
.deletealert{
    background-color: #c60100;
    color: var(--white-color);
}
.deletealert:hover, .deletealert:focus{
    background-color: #a60000;
    color: var(--white-color);
}
.yesalert{
    background-color: #089de0;
    color: var(--white-color);
}
.yesalert:hover, .yesalert:focus{
    background-color: #0679b3;
    color: var(--white-color);
}
.noalert{
    background-color: #1f1f1f;
    color: var(--white-color);
}
.noalert:hover, .noalert:focus{
    background-color: #141414;
    color: var(--white-color);
}
.cancelalert{
    background-color: #fd0100;
    color: var(--white-color);
}
.cancelalert:hover, .cancelalert:focus{
    background-color: #b30000;
    color: var(--white-color);
}
/* Dashboard */
/* ======================================== */
.dashboardHeight{
    /* min-height: 1400px; */
    padding: 3rem 1rem;
}
.dashCard {
    position: relative;
    width: 100%;
    padding: 1.5rem;
    border-radius: 16px;

    /* Glass Effect */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border: 1px solid rgba(255, 255, 255, 0.2);

    /* Shadow */
    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);

    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}
.dashCard::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );

    transform: skewX(-25deg);
    transition: 0.8s;
}

.dashCard:hover::before {
    left: 150%;
}
.dashCard img{
    width: 75px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
}
.dashCard:hover{
    box-shadow: var(--shadow-lg);
}


/* Footer */
/* ======================================== */
footer{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: end;
    padding-right: 1.5rem;
    line-height: 40px;
    background-color: #00436c;
    color: var(--white-color);
}


/* Responsive */
/* ======================================== */
@media(max-width:1024px){
    .dashboardHeight{
        padding: 1.75rem 1rem;
    }
 }

@media(max-width:800px){    
    .dashboardHeight{
        padding: 1.75rem 1rem;
    }
    footer{
        text-align: center;
    }
}

@media(max-width:600px){
    .loginBox{
        bottom: 50px;
    }
}




/* Form Element design */
/* =========================================================== */

/* Select Dropdown */
.modern-select {
    position: relative;
}

.modern-select select {
    width: 100%;
    padding: 18px 12px 12px;
    font-size: 14px;
    border: 1px solid #a8b3bc;
    border-radius: 8px;
    background: #fff;
    outline: none;
    appearance: none;
    transition: 0.3s;
}

.modern-select select:focus {
    border-color: #02609e;
    box-shadow: 0 0 0 2px #02609e1a;
}

.modern-select label {
    position: absolute;
    top: -8px;
    left: 10px;
    background: #fff;
    padding: 0 5px;
    font-size: 12px;
    color: #02609e;
    font-weight: 600;
}

.modern-select::after {
    content: "▾";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 14px;
    color: #888;
}

/* Check Box */
.modern-checkbox-group {
    background: #f9f8f6;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.group-title {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 15px;
}

.checkbox-grid {
    /* display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); */
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    max-width: 100%;
    padding: 5px 15px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
    background: #fff;

    /* Important changes */
    white-space: normal;      /* allow text wrap */
    width: auto;              /* remove fit-content */
}

.checkbox-card span {
    word-break: break-word;   /* break long words */
    white-space: normal;
}

.checkbox-card input {
    margin-right: 6px;
    accent-color: #02609e;
}

.checkbox-card:hover {
    border-color: #02609e;
    background: #efeee7;
}

.checkbox-card input:checked+span {
    font-weight: 600;
    color: #02609e;
}

.checkbox-card input {
    position: absolute;
    opacity: 0;
}

.checkbox-card input:checked+span {
    color: #fff;
}

.checkbox-card:has(input:checked) {
    border-color: #02609e;
    background: #02609e;
    color: #fff;
}

/* Radio Button */
.radio-card-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.radio-card {
    position: relative;
    padding: 4px 12px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    font-weight: 500;
    transition: all 0.25s ease;
    user-select: none;
    font-size: 13px;
}

.radio-card input {
    position: absolute;
    opacity: 0;
}

.radio-card:hover {
    border-color: #02609e;
    background: #efeee7;
}

.radio-card input:checked+span {
    color: #fff;
}

.radio-card:has(input:checked) {
    border-color: #02609e;
    background: #02609e;
    color: #fff;
}

/* Text Field */
.floating-input {
    position: relative;
}

.floating-input input {
    width: 100%;
    padding: 18px 12px 12px;
    font-size: 14px;
    border: 1px solid #a8b3bc;
    border-radius: 8px;
    outline: none;
    background: #fff;
    transition: all 0.25s ease;
}

.floating-input label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    background: #fff;
    padding: 0 4px;
    color: #777;
    font-size: 14px;
    pointer-events: none;
    transition: all 0.25s ease;
}

.floating-input input:focus {
    border-color: #02609e;
    box-shadow: 0 0 0 2px #02609e14;
}

.floating-input input:focus+label,
.floating-input input:not(:placeholder-shown)+label {
    top: 0;
    font-size: 12px;
    color: #02609e;
    font-weight: 600;
}

/* Textarea field */
.floating-input textarea+label {
    position: absolute;
    top: 18px;
    left: 12px;
    transform: translateY(-50%);
    background: #fff;
    padding: 0 4px;
    color: #777;
    font-size: 14px;
    pointer-events: none;
    transition: all 0.25s ease;
}

.floating-input textarea {
    width: 100%;
    padding: 18px 12px 12px;
    font-size: 14px;
    border: 1px solid #a8b0bc;
    border-radius: 8px;
    outline: none;
    background: #fff;
    resize: vertical;
    min-height: 100px;
    transition: all 0.25s ease;
}

.floating-input textarea:focus {
    border-color: #02609e;
    box-shadow: 0 0 0 2px #02609e14;
}

.floating-input textarea:focus+label,
.floating-input textarea:not(:placeholder-shown)+label {
    top: 0;
    font-size: 12px;
    color: #02609e;
    font-weight: 600;
}

/* Flie uploading */
.floating-file {
    position: relative;
    border: 1px dashed #bcb9a8;
    border-radius: 8px;
    padding: 16px;
    background: #f9f8f6;
    transition: all 0.25s ease;
    cursor: pointer;
}

.floating-file:hover {
    border-color: #02609e;
    background: #bcb9a8;
}

.floating-file input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-icon {
    font-size: 28px;
    color: #02609e;
}

.floating-file label {
    font-weight: 600;
    margin-bottom: 2px;
    display: block;
    color: #333;
}

.file-name {
    font-size: 13px;
    color: #777;
}

.form-error {
    color: #c60100;
    font-size: 12px;
    margin-top: 2px;
    display: block;
    text-align: center;
}