﻿
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    background-color: #fbfbfc;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='800' height='600' viewBox='0 0 800 600'> <polygon points='100,50 300,50 200,200' fill='%23f1f2f3'/> <polygon points='300,50 500,100 400,200' fill='%23e6e7e8'/> <polygon points='200,200 400,200 300,350' fill='%23f7f8f9'/> <polygon points='100,350 200,200 300,350' fill='%23eaecee'/> <polygon points='300,350 400,200 500,350' fill='%23f3f4f5'/> <polygon points='500,100 700,50 600,200' fill='%23f0f1f2'/> <polygon points='400,200 600,200 500,350' fill='%23e7e8e9'/> <polygon points='500,350 600,200 700,350' fill='%23f5f6f7'/> <polygon points='200,500 300,350 400,500' fill='%23edeef0'/> <polygon points='400,500 500,350 600,500' fill='%23f8f9fa'/> </svg>");
    background-repeat: repeat-x;
    background-size: 800px 600px;
    background-position: top;
    position: relative;
    overflow-x: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 120px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'><path d='M0,100 C300,0 900,200 1200,100 L1200,200 L0,200 Z' fill='%2300aaff'/></svg>");
    background-repeat: repeat-x;
    background-size: 1200px 200px;
    animation: waveScroll 20s linear infinite;
    z-index: 0;
}



@keyframes waveScroll {
    0% {
        background-position-x: 0;
    }

    100% {
        background-position-x: -1200px;
    }
}

/* Optional: tweak for very small devices */
@media (max-width: 480px) {
    .wave {
        visibility:hidden;
    }
}



/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #212529;
    padding: 5px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index:99999;
}

.logo img {
    height: 60px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

    .nav-links li a {
        color: #fff;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s ease;
    }

        .nav-links li a:hover {
            color: #fdb813;
        }

.menu-toggle {
    display: none;
    font-size: 26px;
    color: #fff;
    cursor: pointer;
}


/* Tab Styles */
/* Tab Styles */
.tab-holder {
    max-width: 600px;
    margin: 60px auto;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.tab-buttons {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.tab-button {
    flex: 1;
    background-color: #e9ecef;
    color: #495057;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 600;
    border-radius: 10px 10px 0 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .tab-button.active {
        background-color: #0056b3;
        color: #fff;
    }

.tab-contents {
    padding: 20px;
    background-color: #fff;
    border-radius: 0 0 10px 10px;
}

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }
    /*RESPONSIVE CSS START -----------------------------------*/
@media (max-width: 800px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #212529;
        position: absolute;
        top: 50px;
        left: 0;
        padding: 10px 10px;
        
        z-index:999999;
    }

        .nav-links.active {
            display: flex;
        }

    .menu-toggle {
        display: block;
    }

    .tab-button {
        font-size: 15px;
        padding: 20px;
    }
}
/*RESPONSIVE CSS END----------------------------------------*/
/* Search Input and Button */
.search-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
    width: 100%;
}

.input-group {
    flex: 7;
    position: relative;
}

    .input-group input[type="text"] {
        width: 100%;
        padding: 12px 40px 12px 16px;
        font-size: 16px;
        border: 1px solid #ccc;
        border-radius: 8px;
        box-sizing: border-box;
    }

.search-button {
    flex: 3;
    background-color: #fdb813;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .search-button:hover {
        background-color: #e6a50f;
    }

/* Suggestion Box */
.suggestion-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    z-index: 10;
    color: #333;
    font-family: 'Poppins', sans-serif;
    max-height:300px;
    overflow-y:auto;
}

    .suggestion-box select {
        width: 100%;
        background-color: #ffffff;
        color: #333333;
        padding: 10px;
        border-radius: 5px;
        border: 1px solid #ccc;
        font-size: 15px;
        font-weight: 500;
    }

        .suggestion-box select option {
            background-color: #ffffff;
            color: #333333;
            padding: 8px;
            font-weight: 500;
        }

            .suggestion-box select option:hover {
                font-weight: 700;
                background-color: #f5f5f5;
            }

.suggestion-message {
    padding: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #333333;
    background-color: #ffffff;
    border-radius: 4px;
    text-align: center;
}



/* Modal Popup */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #fff;
    margin: 60px auto;
    padding: 20px 20px 10px 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    color: #333;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

    .close-btn:hover {
        color: #000;
    }

/* Container to make only the table scrollable */
.modal-table-container {
    max-height: 60vh;
    overflow-y: auto;
    margin-top: 50px;
}

/* Table styles */
#modalResults {
    max-height: 60vh;
    overflow-y: auto;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

    #modalResults table {
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
        font-size: 15px;
        color: #333;
    }

    #modalResults th,
    #modalResults td {
        padding: 12px;
        text-align: left;
        border-bottom: 1px solid #eee;
        width: 50%; /* Equal width for both columns */
        word-wrap: break-word;
        cursor: crosshair;
    }

    #modalResults th {
        background-color: #f9f9f9;
        font-weight: 600;
        color: #555;
    }

    #modalResults tr:nth-child(even) {
        background-color: #fdfdfd;
    }

    #modalResults tr:hover {
        background-color: #f1f1f1;
    }


/* Table styles */
#modalResultsDim {
    max-height: 60vh;
    overflow-y: auto;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

    #modalResultsDim table {
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
        font-size: 15px;
        color: #333;
    }

    #modalResultsDim th,
    #modalResultsDim td {
        padding: 12px;
        text-align: left;
        border-bottom: 1px solid #eee;
        width: 50%; /* Equal width for both columns */
        word-wrap: break-word;
        cursor:crosshair;
    }

    #modalResultsDim th {
        background-color: #f9f9f9;
        font-weight: 600;
        color: #555;
    }

    #modalResultsDim tr:nth-child(even) {
        background-color: #fdfdfd;
    }

    #modalResultsDim tr:hover {
        background-color: #f1f1f1;
    }


/* Loading Icon */
.loading-icon {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    display: none;
}

/* Clear Button */
.clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    color: #888;
}

#searchModal #searchModalDim .modal-content {
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
} .modal-content {
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
    padding-bottom: 10px;
}

.modal-table-wrapper {
    overflow-y: auto;
    max-height: 60vh;
}

/* Equal width columns */
#modalResults th, #modalResults td {
    width: 50%;
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid #ddd;
}

/* Hover effect */
#modalResults tbody tr {
    cursor: pointer;
    transition: background-color 0.2s ease, font-weight 0.2s ease;
}

    #modalResults tbody tr:hover {
        background-color: #f1f1f1;
        font-weight: 600;
    }

/* Modal Styling */
#searchModal {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed position to stay in place even on scroll */
    top: 50%; /* Center it vertically */
    left: 50%; /* Center it horizontally */
    transform: translate(-50%, -50%); /* Offsetting the modal size to truly center it */
    background-color: rgba(0, 0, 0, 0.5); /* Transparent background with dark overlay */
    width: 100%; /* You can adjust this to your preference */
    height: 100%;
    /*max-width: 600px;*/ /* Optional: Set a max-width for better control */
    z-index: 1000; /* Ensure it appears above other content */
    /*padding: 20px;*/
    box-sizing: border-box; /* Include padding in the element's total width/height */
}
#searchModalDim {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed position to stay in place even on scroll */
    top: 50%; /* Center it vertically */
    left: 50%; /* Center it horizontally */
    transform: translate(-50%, -50%); /* Offsetting the modal size to truly center it */
    background-color: rgba(0, 0, 0, 0.5); /* Transparent background with dark overlay */
    width: 100%; /* You can adjust this to your preference */
    height: 100%;
    /*max-width: 600px;*/ /* Optional: Set a max-width for better control */
    z-index: 1000; /* Ensure it appears above other content */
    /*padding: 20px;*/
    box-sizing: border-box; /* Include padding in the element's total width/height */
}
/* Modal content */
#searchModal .modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Shadow effect */
}
#searchModalDim .modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Shadow effect */
}

    /* Close button */
    #searchModal .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 30px;
        font-weight: bold;
        cursor: pointer;
    }

        #searchModal .close-btn:hover {
            color: red;
        }
#searchModalDim .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

    #searchModalDim .close-btn:hover {
        color: red;
    }
        /*error wrapper ---------------------*/
.global-error-wrapper {
    min-height: 1.2em;
    height: 1.2em;
    margin-bottom: 0.3em;
    padding-top:20px;
}

.error-message {
    color: red;
    font-size: 0.9em;
    line-height: 1.2em;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

    .error-message.visible {
        opacity: 1;
    }

/*error wrapper ---------------------*/
#suggestionTable {
    width: 100%;
    border-collapse: collapse;
}

    #suggestionTable td {
        padding: 8px 12px;
        cursor: pointer;
        border-bottom: 1px solid #ddd;
        font-family: 'Roboto';
        font-size: 16px;
        border:none;
    }

    #suggestionTable tr:hover {
        background-color: #f0f0f0;
        font-size:14px;
    }

.highlight {
    background-color: yellow;
    font-weight: bold;
}

  


