html {
    font-size: 14px;
}

body.login-body {
    background: linear-gradient(-45deg, #e0f7f1, #d0ebff, #c8e6ff, #d4f5dc, #e0f7f1);
    background-size: 400% 400%;
    animation: gradientMove 10s ease infinite;
    font-family: 'Poppins', sans-serif;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


body {
    background: linear-gradient(-45deg, #e0f7f1, #d0ebff, #c8e6ff, #e0f7f1);
    background-size: 400% 400%;
    animation: gradientMove 10s ease infinite;
    font-family: 'Merriweather', sans-serif;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.logo-container img {
    max-width: 300px;
    height: auto;
    opacity: 0;
    transform: scale(0.8);
    animation: logoFadeIn 1.5s ease-out forwards;
}

@keyframes logoFadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.system-title {
    opacity: 0;
    transform: translateY(-10px);
    animation: titleFadeIn 1.2s ease-out forwards;
    animation-delay: 1.3s;
}

@keyframes titleFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-section {
    text-align: center;
    margin-top: 60px;
    animation: fadeSlideIn 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-text a {
    color: #6c757d; /* muted text */
    text-decoration: none;
}

    .footer-text a:hover {
        text-decoration: underline;
        color: #198754; /* optional hover color */
    }

html, body {
    padding-top: 60px;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

   /* body > .container {
        flex: 1;
    }*/

footer {
    margin-top: auto;
}


@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.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;
}

.btn {
    background-color: cornflowerblue;
    color: whitesmoke;
}

    .btn:hover {
        background-color: lawngreen;
        color: black;
        transform: scale(1.05);
    }

.menu-btn {
    min-width: 200px;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.form-btn {
    display: flex; /* Make the container a flexbox */
    justify-content: flex-end; /* Align the items to the right */
    gap: 10px;
}

    .form-btn .btn {
        width: 100px; /* Set a fixed width for the buttons */
    }



html {
    position: relative;
    min-height: 100%;
}

h1 {
    font-size: 2rem;
    font-weight: bold;
    color: darkgreen;
    margin-bottom: 20px;
    text-transform: uppercase;
    align-content: center !important;
}

body {
    margin-bottom: 60px;
}

/* ========== NAVBAR STYLING ========== */
.navbar {
    background-color: darkblue !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

    .navbar .container,
    .navbar .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
        background-color: darkblue !important;
    }

    .navbar .navbar-nav {
        list-style-type: none;
        padding: 0;
        margin: 0;
        background-color: darkblue !important;
    }

        .navbar .navbar-nav > li {
            flex: 0 0 auto;
        }

            .navbar .navbar-nav > li > a {
                display: block;
                color: white !important;
                text-align: center;
                padding: 14px 16px;
                text-decoration: none;
                transition: background-color 0.3s ease;
                width: 100%;
            }

    .navbar .nav-link.active {
        background-color: lightblue !important;
        color: black !important;
    }

    .navbar .navbar-nav > li > a:hover {
        background-color: greenyellow;
        color: black !important;
        width: 100%;
    }

/* Navbar background and layout */
/*.navbar {
    background-color: darkblue !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}*/

    /* Remove padding and background from containers */
    /*.navbar .container,
    .navbar .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
        background-color: darkblue !important;
    }*/

    /* Navbar list reset */
    /*.navbar ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
        background-color: darkblue !important;
    }*/

    /* Nav items float left (not needed with flexbox, but okay if intentional) */
    /*.navbar li {
        flex: 0 0 auto;
    }*/

        /* Nav links default style */
        /*.navbar li a {
            display: block;
            color: white !important;
            text-align: center;
            padding: 14px 16px;
            text-decoration: none;
            transition: background-color 0.3s ease;
            width: 100%;
        }*/

    /* Active nav link */
    /*.navbar .nav-link.active {
        background-color: lightblue !important;
        color: black !important;
    }*/

    /* Hover state */
    /*.navbar li a:hover {
        background-color: greenyellow;
        color: black !important;
        width:100%;
    }*/

.export-btn {
    font-weight: 500;
    padding: 0.45rem 1rem !important;
    color: #fff !important;
    border: none !important;
    background-image: linear-gradient(135deg, #ff9800, #f44336) !important;
    transition: all 0.3s ease;
}

    .export-btn:hover {
        opacity: 1;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        color:black !important;
    }

.lookup-btn {
    font-weight: 500;
    padding: 0.45rem 1rem !important;
    color: #fff !important;
    border: none !important;
    background-image: linear-gradient(135deg, #2196f3, #4caf50) !important; /* Light blue to blue */
    transition: all 0.3s ease;
    border-radius: 6px;
}

    .lookup-btn:hover {
        opacity: 1;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        color: black !important;
    }


.important-note {
    background: linear-gradient(90deg, #ffe082, #ffccbc); /* light yellow to orange */
    color: #4e342e; /* dark brown for contrast */
    padding: 0.75rem 1.25rem;
    border-left: 5px solid #ff9800;
    border-radius: 4px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.info-note {
    background: linear-gradient(90deg, #e0f7fa, #b2ebf2); /* light teal gradient */
    color: #004d40; /* deep teal for contrast */
    padding: 0.75rem 1.25rem;
    border-left: 5px solid #00acc1;
    border-radius: 4px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.alert-note {
    background: linear-gradient(90deg, #fdecea, #f8d7da); /* soft red gradient */
    color: #721c24; /* strong red text */
    padding: 0.75rem 1.25rem;
    border-left: 5px solid #f44336; /* bold red */
    border-radius: 4px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

    .alert-note i {
        margin-right: 0.5rem;
    }

.warning-note {
    background: linear-gradient(90deg, #ffe0b2, #ffab91); /* soft orange to light red */
    color: #bf360c; /* deep red-orange for warning tone */
    padding: 0.75rem 1.25rem;
    border-left: 5px solid #ff5722; /* strong orange */
    border-radius: 4px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

    .warning-note i {
        margin-right: 0.6rem;
        font-size: 1.2rem;
    }








.login-box {
    width: 350px;
    margin: 100px auto;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

    .login-box h1 {
        text-align: center;
        margin-bottom: 20px;
    }

    .login-box .login-group {
        margin-bottom: 15px;
    }

    .login-box .login-control {
        width: 100%;
        padding: 8px 12px;
        border-radius: 4px;
        border: 1px solid #ccc;
    }

    .login-box .login-buttons {
        display: flex;
        justify-content: space-between;
        margin-top: 20px;
    }

        .login-box .login-buttons .btn {
            width: 48%;
        }

.iti {
    width: 100%;
}

    .iti input {
        width: 100%;
    }

/* -------- Modern Table Styles for ALL tables -------- */

table {
    border-collapse: separate;
    border-spacing: 0 8px;
    width: 100%;
    font-family: 'Merriweather', serif;
    font-size: 0.95rem;
    color: #333;
    table-layout: fixed;
}

    table:not(.estimation-table) thead tr {
        background-color: #198754;
        color: white;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.85rem;
        border-radius: 8px 8px 0 0;
    }

    table:not(.estimation-table) thead th {
        padding: 10px 12px;
        white-space: nowrap;
        border: none;
    }

    table:not(.estimation-table) tbody tr {
        background-color: white !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        border-radius: 8px;
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }

        table:not(.estimation-table) tbody tr:hover {
            background-color: #e6f7ff;
            box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
        }

    table:not(.estimation-table) tbody td {
        padding: 12px 15px;
        vertical-align: middle;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        border: none;
    }

        table:not(.estimation-table) tbody td.wrap-text {
            white-space: normal;
        }


/* Optional: match the search row appearance */
table.dataTable thead tr.filters input,
table.dataTable thead tr.filters select {
    width: 100%;
    padding: 4px 6px;
    font-size: 0.85rem;
    border: 1px solid #198754;
    border-radius: 4px;
}

/* ========== USER DROPDOWN MENU ========== */
.user-dropdown {
    background-color: #e6f2ff; /* Light blue background */
    border-radius: 0.5rem;
    min-width: 220px;
}

    .user-dropdown .dropdown-item-text {
        color: #004080;
        font-size: 0.95rem;
    }

        .user-dropdown .dropdown-item-text strong {
            font-weight: 600;
            font-size: 1rem;
        }

    .user-dropdown .dropdown-divider {
        margin: 0.5rem 0;
    }

    .user-dropdown .dropdown-item.disabled {
        background-color: transparent;
        cursor: default;
        opacity: 0.75;
        font-style: italic;
        text-align: center;
    }





#companyTable tbody tr {
    cursor: pointer;
}

h2 {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #1d3557;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid #a8dadc;
    padding-bottom: 10px;
    margin-bottom: 25px;
    position: relative;
}

    h2::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 60px;
        height: 4px;
        background-color: #457b9d;
        border-radius: 2px;
    }

h3 {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #264653;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 20px;
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

    h3::before {
        position: absolute;
        left: 0;
        top: 2px;
        font-size: 1rem;
        color: #2a9d8f;
    }

.btn-company-rep:hover {
    background-color: #ff9800 !important;
    color: black !important;
    border-color: #ff9800 !important;
}

body:not(.login-body) form {
    background-color: rgba(255, 255, 255, 0.95); /* Light background with slight transparency */
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

    body:not(.login-body) form label {
        font-weight: 600;
        color: #333;
    }

    body:not(.login-body) form .form-control,
    body:not(.login-body) form .form-select {
        background-color: #f9f9f9;
        border: 1px solid #ccc;
        border-radius: 6px;
        padding: 0.75rem;
        font-size: 0.95rem;
        color: #333;
        transition: border-color 0.3s, box-shadow 0.3s;
    }

        body:not(.login-body) form .form-control:focus,
        body:not(.login-body) form .form-select:focus {
            border-color: #007bff;
            box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
            background-color: #fff;
        }


#phone {
    padding-left: 50px !important; 
    box-sizing: border-box; 
}

#RepPhone {
    padding-left: 50px !important; 
    box-sizing: border-box; 
}

td.truncate-cell {
    max-width: 150px; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: help;
}

/* Style the entire DataTable */
/*table.dataTable {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
    width: 100%;
}*/

/* Paginate buttons styling */
/*.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.3em 1em;
    margin-left: 2px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057 !important;
}

    .dataTables_wrapper .dataTables_paginate .paginate_button.current {
        background-color: #0d6efd;
        color: white !important;
        border: none;
    }*/

/* Search box */
/*.dataTables_wrapper .dataTables_filter input {
    border-radius: 5px;
    padding: 5px;
    border: 1px solid #ced4da;
}*/

/* Length menu dropdown */
/*.dataTables_wrapper .dataTables_length select {
    border-radius: 5px;
    padding: 5px;
    border: 1px solid #ced4da;
}*/

/* Info text */
/*.dataTables_info {
    font-size: 0.875rem;
    color: #6c757d;
}

#companyTable td, #companyTable th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    #companyTable td.wrap-text {
        white-space: normal;
    }*/
/*.dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
    position: absolute !important;  
    z-index: 1050 !important; 
    top: 100%;
    left: 0;
}*/

 /*Ensure the dropdown toggle button is positioned correctly*/ 
/*.dropdown {
    position: relative;
    margin-bottom: 10px;
}*/

 /*Ensure parent elements don't clip the dropdown*/ 
/*.dropdown-menu {
    max-height: 300px;  
    overflow-y: auto;  
    padding: 0;  
}*/

/* Ensure the column visibility options container is scrollable */
/*#columnVisibilityOptions {
    max-height: 300px;
    overflow-y: auto;
    padding: 0;*/ /* Remove any unwanted padding */
    /*list-style: none;*/ /* Remove default list styling */
    /*margin: 0;*/ /* Remove any extra margins */
/*}

#companyTable tbody tr {
    cursor: pointer;
}

    #companyTable tbody tr:hover {
        background-color: #f0f0f0;
    }*/
