﻿html {
  font-size: 10px;
}

@media (min-width: 768px) {
  html {
    font-size: 12px;
  }
}

.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%;
}

.nav-link.hover-effect {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa; /* Light background */
    color: #343a40; /* Dark text */
    font-weight: 500;
    margin-right: 0.5rem;
    border: 1px solid #dee2e6;
}

    .nav-link.hover-effect:hover {
        background-color: #0d6efd;
        color: white !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        border-color: #0d6efd;
    }


.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}



/* ✅ Main Footer Flex Container */
.form-footer-wrap {
    background: white;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 12px;
    font-family: Arial, sans-serif;
    color: black;
    font-weight: normal;
    gap: 5px;
    flex-wrap: wrap; /* Allow wrapping */
    width: 100%;
}

/* ✅ Individual Left/Right Sections */
.footer-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    flex: 1;
    min-width: 260px;
}

    .footer-section label {
        font-size: 12px;
        font-weight: bold;
        color: black;
    }

    .footer-section input {
        border: none;
        border-bottom: 1px solid #000;
        outline: none;
        font-size: 12px;
        font-family: Arial, sans-serif;
        color: black;
        padding: 2px;
        width: 170px;
    }

        .footer-section input#initialsLeft,
        .footer-section input#initialsRight {
            width: 100px;
        }

.margin-left {
    margin-left: 30px;
}




/*Code for Areas/Views/UserManagement/Index.cshtml*/
/* Overlay background */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: none; /* hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* The “modal” box */
.custom-modal {
    background: white;
    border-radius: 0.375rem;
    padding: 1.5rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}

    .custom-modal h5 {
        margin-bottom: 1rem;
    }

    .custom-modal button {
        margin: 0 0.5rem;
    }

.cmu-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
}

@media (min-width: 992px) {
    .cmu-logo {
        height: 72px;
    }
}

.cmu-tabs .nav-link {
    font-weight: 500;
}



/* ✅ Responsive Styles */
@media (max-width: 600px) {
    .form-footer-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-section {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

        .footer-section input {
            width: 100% !important;
            margin-bottom: 8px;
        }

    .margin-left {
        margin-left: 0;
    }
}







/* Full-page login background */
.login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    overflow: hidden;
    /* Blue medical-style gradient background */
    background: radial-gradient(circle at 0% 0%, rgba(255,255,255,0.15), transparent 50%), radial-gradient(circle at 100% 100%, rgba(255,255,255,0.15), transparent 50%), linear-gradient(135deg, #003b73, #0077b6, #00b4d8);
}

/* Soft blurry “glow” shapes over the background */
.login-bg-overlay {
    position: absolute;
    inset: -80px;
    pointer-events: none;
    background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.25), transparent 60%), radial-gradient(circle at 80% 70%, rgba(255,255,255,0.18), transparent 60%);
    filter: blur(30px);
    opacity: 0.7;
}

/* Centered card */
.login-card-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
}

/* Card style with white top and soft gradient downwards */
.login-card {
    border-radius: 24px;
    border: none;
    background: linear-gradient( to bottom, #ffffff 0%, /* pure white at the top */
    #ffffff 40%, /* keep upper ~40% white */
    rgba(255, 255, 255, 0.9) 100% /* softly blends into current translucent tone */
    );
    backdrop-filter: blur(8px);
}



/* Logo */
.login-logo {
    max-width: 120px;
    height: auto;
    object-fit: contain;
}

/* Better spacing on small screens */
@media (max-width: 576px) {
    .login-card-wrapper {
        max-width: 100%;
    }

    .login-card {
        padding: 24px 16px;
    }

    .login-logo {
        max-width: 100px;
    }
}

/* For LOGIN PAGE ONLY (body.login-body) */


/* Hide header & footer ONLY on login page */
.login-body header,
.login-body footer {
    display: none !important;
}

/* Remove container width/margins on login page */
.login-body .container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Remove main padding and make it fill viewport */
.login-body main {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    min-height: 100vh;
}

/* Ensure the gradient section itself fills the screen */
.login-body .login-page {
    min-height: 100vh;
}

/* Just to be safe: no stray margins causing scroll */
html, body {
    height: 100%;
    margin: 0;
    overflow-y: auto;
}


/* White box behind the logo so edges disappear completely */
.login-logo-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
