body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevents horizontal scrolling only */
}
.mainDashboardPage{    
    min-height: 100vh;
    background: linear-gradient(135deg, #1d3557, #457b9d, #a8dadc);
    display: flex;
    flex-direction: column;
}
.loginPage{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;    
    background: linear-gradient(135deg, #1d3557, #457b9d, #a8dadc);
    position: relative;
}
.login-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    padding: 30px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}
.login-card img.logo {
    width: 140px;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #1d3557, #457b9d);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(29, 53, 87, 0.3);
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.login-card h4 {
    font-weight: 600;
    margin-bottom: 20px;
    color: #1d3557;
}
.form-control {
    border-radius: 12px;
    padding: 12px;
    font-size: 15px;
}
.btn-custom {
    background: linear-gradient(135deg, #1d3557, #457b9d);
    border: none;
    border-radius: 12px;
    padding: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    transition: 0.3s ease;
}
.btn-custom:hover {
    background: linear-gradient(135deg, #457b9d, #1d3557);
}
.footer {
    font-size: 14px;
    margin-top: 20px;
    color: #555;
}
/* Icon Links in Navbar */
.navbar-nav .nav-link i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover i {
    color: #ffffff;
    transform: scale(1.1);
}

.navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
}

.navbar {
    background-color: #0f3057 !important;
}
.nav-item{
    padding-left: 4%;
}
#mainNavbar{
    margin-right: 13%;
    font-size: 18px;
}

/* Fix dropdown positioning to prevent overflow */
.dropdown-menu {
    max-width: 250px;
    right: 0;
    left: auto;
    z-index: 1050;
}

/* Ensure dropdowns don't extend beyond viewport */
.navbar-nav .dropdown-menu {
    position: absolute;
    right: 0;
    left: auto;
    transform: none;
    z-index: 1050;
}

/* Specific fix for System dropdown */
.nav-item:last-child .dropdown-menu {
    right: 0;
    left: auto;
    z-index: 1050;
}
.mainDashboardPage .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
}
.mainDashboardPage .card-title {
    font-weight: bold;
    text-transform: uppercase;
}
.mainDashboardPage .dashboard-stat {
    font-size: 1.2rem;
    font-weight: bold;
}
.mainDashboardPage .expiringContracts th {
    background: #005792;
    color: #fff;
}
.dashboard-links{
    color: white;
    text-decoration: none;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Card hover effects */
.mainDashboardPage .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mainDashboardPage .card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 8px 20px rgba(0,0,0,0.3) !important;
}

.dashboard-cards .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #0f3057;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    flex-shrink: 0;
}

.login-footer-text {
    font-size: 0.9rem;
    color: #ffffff;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 1;
}

/* Main Dashboard Footer - Complete Block Style */
.main-dashboard-footer {
    position: relative;
    width: 100%;
    background-color: #0f3057;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    margin-top: auto;
    flex-shrink: 0;
}

.dashboard-footer-text {
    font-size: 0.9rem;
    color: #ffffff;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 1;
}

/* Primary Page Footer - Complete Block Style (for pages using footer.cfm) */
.primary-page-footer {
    position: relative;
    width: 100%;
    background-color: #0f3057;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    margin-top: auto;
}

.primary-footer-text {
    font-size: 0.9rem;
    color: #ffffff;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 1;
}