* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size:12px;
    font-family: 'Montserrat', sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    
}

body {
    flex: 1;
}
.welcome {
    flex: 1; /* take up remaining space */
}
.page-wrapper {
    flex: 1; /* take up remaining space */
}
.main-content

.heading {
    display: flex;
    align-items: center;
}

.logo1 {
    max-height: 70px;
    height: auto;     /* Maintain aspect ratio */
    width: auto;
    padding: 10px 10px 10px 10px;
}

.nav-logout li{
    list-style: none;
}

.nav-logout a{
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.nav-logout a:hover:not(.active){
    color: rgba(255, 128, 0, 0.904);
}

.nav-logout a.active{
    color: rgba(255, 128, 0, 0.904);
}
nav {
    background: linear-gradient(to right, #277aaa, #08466a);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column; /* Ensures "Leave Management" is below .navs */
}
/* Ensure .navs stays in ONE row */
.navs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    
}
.nav-links {
    display: flex;
    justify-content: space-between;
    flex-grow: 2;
    margin-right: 20px;
}

.nav-links li {
    list-style: none;
}

.nav-links a, .dropbtn {
    color: white;
    text-decoration: none;
    letter-spacing: 1px;
    font-weight: bold;
    padding: 14px 16px;
    transition: background-color 0.3s ease;
    display: block;
    font-size: 12px;
}

.nav-links a:hover:not(.active), .dropbtn:hover:not(.active) {
    color: rgba(255, 128, 0, 0.904);
    border-radius: 5px;
}

.nav-links a.active, .dropbtn.active {
    color: rgba(255, 128, 0, 0.904);
    border-radius: 5px;
}
/* Align the title above the links */
.nav-title {
    text-align: center; /* Center-align the title */
    margin: 10px 0; /* Add spacing around the title */
}

.nav-title h1 {
    font-size: 20px; /* Adjust title font size */
    font-weight: bold;
    color: white; /* Match the nav text color */
    margin: 0; /* Remove default margin */
}
/* Make sure footer stays at bottom */
.footer {
    background: linear-gradient(to right, #277aaa, #08466a);
    color: white;
    padding: 8px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #ffffff5d;
    flex-shrink: 0; /* prevent shrinking */
    width: 100%;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.footer-logo {
    height: 30px;
    max-width: 80px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    padding: 4px;
    background-color: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    
}
.footer-logo1{
    height: 40px;
    max-width: 150px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.014);
    border-radius: 2px;
    padding: 1px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    
}

.footer-center {
    margin-left: 23%;
    flex-grow: 1;
    
    font-size: 14px;
}
.back-button {
    background-image: url("{{ url_for('static', filename='img/BackButton.png') }}"); /* Path to the image */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Space between text and arrow */
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.404); /* Gradient background */
    padding: 10px 10px;
    border: none;
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100px;
}

/* Additional hover effect */
.back-button:hover {
    transform: translateY(-2px); /* Slight lift on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Enhance shadow on hover */
}
.content{
    margin-top: 20px;
}
h3{
    color: white;
    font-size: 20px;
    font-weight: bold;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size:12px;
}

body {
    font-family: "Montserrat", sans-serif;
    
}

.heading {
    display: flex;
    align-items: center;
}

.logo1 {
    max-height: 70px;
    height: auto;     /* Maintain aspect ratio */
    width: auto;
    padding: 10px 10px 10px 10px;
}

.nav-logout li{
    list-style: none;
}

.nav-logout a{
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.nav-logout a:hover:not(.active){
    color: rgba(255, 128, 0, 0.904);
}

.nav-logout a.active{
    color: rgba(255, 128, 0, 0.904);
}
.welcome-message {
    color: white;
    margin-right: 60px;
    font-weight: bold;
    margin-left: 30px;
    font-size: 13px;
}
.welcome-messages {
    width: 100%;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: white;
    padding: 4px 0;
    background: linear-gradient(to right,#277aaa,#08466a, #277aaa,#08466a);
}

nav {
    background: linear-gradient(to right, #277aaa, #08466a);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column; /* Ensures "Leave Management" is below .navs */
}
/* Ensure .navs stays in ONE row */
.navs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    
}
.nav-links {
    display: flex;
    justify-content: space-between;
    flex-grow: 2;
    margin-right: 20px;
}

.nav-links li {
    list-style: none;
}

.nav-links a, .dropbtn {
    color: white;
    text-decoration: none;
    letter-spacing: 1px;
    font-weight: bold;
    padding: 14px 16px;
    transition: background-color 0.3s ease;
    display: block;
    font-size: 12px;
}

.nav-links a:hover:not(.active), .dropbtn:hover:not(.active) {
    color: rgba(255, 128, 0, 0.904);
    border-radius: 5px;
}

.nav-links a.active, .dropbtn.active {
    color: rgba(255, 128, 0, 0.904);
    border-radius: 5px;
}
/* Align the title above the links */
.nav-title {
    text-align: center; /* Center-align the title */
    margin: 10px 0; /* Add spacing around the title */
}

.nav-title h1 {
    font-size: 20px; /* Adjust title font size */
    font-weight: bold;
    color: white; /* Match the nav text color */
    margin: 0; /* Remove default margin */
}


.container {
    max-width: 95%;
    max-height: 95%;
    margin: 1rem auto;
    padding: 1rem;
    background-image: url("{{ url_for('static', filename='img/bac.jpg') }}");
    
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.container1 {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 1rem;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}
h2 {
    color: #1a505b;
    margin-bottom: 5px;
    font-size: 18px;
    text-align: center;
}



.iframe-container {
    width: 100%;
    height: 100%;
  }

  .iframe-container iframe {
    width: 100%;
    height: 100%;
    min-height: 600px;
    border: none;
  }
  iframe {
    min-height: 550px;
    
  }
  @media screen and (min-height: 850px) {
    iframe {
      min-height: 800px;
    }
  }
  /* Loader covering only the content inside .page-wrapper */
#loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.874);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease;
}

/* Loader center icon with spin */
.loader-icon {
    text-align: center;
    color: #0e547a;
    font-family: 'Montserrat', sans-serif;
}

.loader-icon i {
    animation: spin 1.1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@media (max-width: 768px) {
    nav .navs {
        
        align-items: center;
        text-align: center;
        
    }

    .heading img.logo1 {
        width: 90px;
        margin-bottom: 4px;
    }
    nav{
        min-height: 60px !important;
    }

    nav h3 {
        font-size: 10px;
    }

    .back-button {
        margin-top: 2px !important;
        font-size: 10px;
        border-radius: 7px;
        width: 80px;
        padding: 4px 4px;
    }

    .footer-container {
        flex-direction: column !important;
        text-align: center !important;
    }


    .footer-logo {
        margin-top: 10px !important;
        width: 100px !important;
    }
    .content{
      margin-top: 5px;
    }
    iframe {
      min-height: 430px !important;
      
    }
    
}

/* Overlay to cover Power BI branding */
.powerbi-overlay {
    position: absolute;
    bottom: 3px;
    left: 0;
    width: 160px;
    height: 30px;
    background: #EAEAEA;
    z-index: 8;
}

/* Mobile-friendly nav + content */
@media (max-width: 768px) {
    .footer{
        flex:1 !important;
    }
        .back-button {
            margin-top: 10px;
        }
    
        .footer-container {

            text-align: center;
        }
    
        .footer-logo {
            margin-top: 5px;
            width: 100px;
        }
        .footer-center{
            margin-left: 0%;
        }
    }
/* General form styling */
form {
    display: block;
    max-width: 850px; /* Set a fixed max-width for nice centering */
    margin: 10px auto; /* 👈 auto left and right margins centers it */
    background-color: #ffffff3b;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(252, 251, 251, 0.247);
    transition: all 0.3s ease;
}


/* Form Title */
form h2 {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
    
}

/* Form Field Styling */
form label {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    display: block;
}


form input[type="text"],
form input[type="number"],
form input[type="email"],
form textarea
 {
    width: 100%;
    padding: 7px;
    margin: 6px 0 10px;
    font-size: 10px;
    
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #f8f8f8;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
form input[type="file"],
form input[type="date"],
form textarea,
form select{
    width: 100%;
    padding: 7px;
    margin: 6px 0 10px;
    font-size: 10px;
    
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #f8f8f8;
    transition: border-color 0.3s ease, box-shadow 0.3s ease; 
}

/* Focus effect for input fields */
form input[type="text"]:focus,
form input[type="number"]:focus,
form input[type="date"]:focus,
form input[type="email"]:focus,
form input[type="file"]:focus,
form textarea:focus,
form select:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
    background-color: #fff;
    outline: none;
}

/* Button styling */
form button[type="submit"] {
    display: inline-block;
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Button hover effect */
form button[type="submit"]:hover {
    background-color: #218838;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* Button active effect */
form button[type="submit"]:active {
    background-color: #1e7e34;
    transform: translateY(1px);
}

/* Placeholder color */
form input::placeholder {
    color: #999;
    font-weight: 400;
}

/* Form fieldset with a subtle divider */
form fieldset {
    border: none;
    padding: 0;
    margin-bottom: 25px;
}

/* Optional: Add divider between form sections */
form .form-divider {
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;
    margin: 20px 0;
}

/* Error message styling */
form .error {
    color: red;
    font-size: 10px;
    margin-top: -15px;
    margin-bottom: 20px;
}

/* Form responsiveness */
@media (max-width: 768px) {
    form {
        padding: 20px;
    }
}
.form-row-custom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row-custom .form-group {
    flex: 1;
}
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    width: 100%;
}
    .tabs {
        display: flex;
        justify-content: space-around;
        background-color: #a7d3eb;
        padding: 10px 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        border-radius: 10px;
        margin-bottom: 10px;
        
    }

    .tabs a {
        position: relative;
        text-decoration: none;
        color: #080808;
        font-weight: 600;
        padding: 12px 24px;
        border-radius: 30px;
        transition: all 0.3s ease;
        font-size: 1rem;
    }

    .tabs a:hover {
        background-color: #d0e9f7;
        color: #1A5A7A;
    }
    
    .tabs a.active {
        background-color: #b8b6b6;
        color: white;
        box-shadow: 0 3px 6px #007bff;
        transition: all 0.3s ease;
    }
    /* Add bottom border active indicator (Optional Fancy) */
.tabs::after {
    content: "";
    position: absolute;
    bottom: 0;
    height: 3px;
    width: 0;
    background-color: #007bff;
    transition: all 0.3s ease;
}

.tab-link.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
}
    .mapping{
        max-width: 100%;
        padding:2px;
    }
    table {
        font-family: 'Montserrat', sans-serif;
        border-collapse: collapse;
        width: 95%;
        margin: 20px auto; /* Center the table */
        border-radius: 2px;
        overflow: hidden;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        
    }
    table tr:hover,
table td:hover{
    background-color: inherit !important;
    color: inherit !important;
}
    
     td {
        padding: 2px 2px;
        text-align: left;
        border-bottom: 1px solid #dddddd;
        border: 1px solid #ddd;
    }
    
    th {
        background-color: #5aa5f5;
        color: white;
        font-weight: bold;
        padding: 10px 10px;
        text-align: left;
        border-bottom: 1px solid #dddddd;
        border: 1px solid #ddd;
    }
    
    tr {
        transition: background-color 0.3s;
        border: 1px solid #ddd;
    }
    
    tr:nth-child(even) {
        background-color: #f4f4f9;
    }
    
    tr:hover {
        background-color: #d3d3d3;
    }
    
    tr:last-child td {
        border-bottom: none;
    }
    
    .form-groups select
    {
        width: 50%;
        padding: 4px;
        margin: 10px 0 10px;
        font-size: 12px;
        
        border-radius: 4px;
        border: 1px solid #ccc;
        background-color: #f8f8f8;
        transition: border-color 0.3s ease, box-shadow 0.3s ease; 
    }
    .table-container::-webkit-scrollbar {
        width: 8px;
    }
    
    .table-container::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }
    
    .table-container::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
    .table-container {
        max-height: 500px; /* 📏 Set max height */
        overflow-y: auto;  /* 📜 Enable vertical scroll if needed */
        margin: 20px auto;
        width: 95%;
        border-radius: 2px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
    
    /* Your existing table styling */
    table {
        font-family: 'Montserrat', sans-serif;
        border-collapse: collapse;
        width: 100%; /* Important: use 100% inside container */
    }
    /* Make the header sticky */
table.table-bordered thead  {
    position: sticky;
    top: 0;
   
    z-index: 5; /* ensure header stays on top */
   
 
}
    


.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #3e80dd;
    margin: 10px 0 10px;
    border-bottom: 1px solid #333333ab;
    padding-bottom: 8px;
}

.form-row, .form-row-custom {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row > .form-group, .form-row-custom > .form-group {
    flex: 1;
}
.form-cards{
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.upload-wizard {
    max-width: 800px;
    margin: 0 auto;
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    overflow-x: auto;
}

.step {
    flex: 1;
    padding: 10px 12px;
    background: #b8b6b6;
    color: #03090c;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border-right: 2px solid white;
    transition: all 0.3s ease;
    clip-path: polygon(
        0% 0%,
        88% 0%,
        100% 50%,
        90% 100%,
        0% 100%,
        10% 50%
    );

}

.step.active {
    background: #a7d3eb;
    color: white;
    border-radius: 5px;
    box-shadow: 0 3px 6px #007bff;
    transition: all 0.3s ease;
}

.step-content {
    display: none;
    margin-bottom: 20px;
}

.step-content.active {
    display: block;
}

.wizard-nav {
    display: flex;
    justify-content: space-between;
}

/* General Button Base */
.btn {
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

/* Previous Button */
.btn-secondary {
    background: linear-gradient(120deg, rgb(74, 144, 226) 0%,rgb(9, 39, 177) 30%, rgb(74, 144, 226) 100%);
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Next Button */
.btn-info {
    background: linear-gradient(120deg, rgb(74, 144, 226) 0%,rgb(9, 39, 177) 30%, rgb(74, 144, 226) 100%);
    color: white;
}

.btn-info:hover {
    background-color: #1a5a7a;
}

/* Optional: Add spacing if side-by-side */
.wizard-nav button {
    margin: 10px 5px 0;
}

.section-box {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.151);
    flex: 1;
}

/* Different background colors */
.bg-ceo {
    background-color: #d8dee233; /* Light blue */
}

.bg-pm {
    background-color: #d8dee234; /* Light yellow */
}

.bg-acc {
    background-color: #d8dee234; /* Light green */
}