/* Background with modern gradient */
body {
    /* background: linear-gradient(120deg, #1e3c72, #2a5298); */
    /* background-color: #F2F0EF; */
    background-color: #f2f0ef30;
    font-family: 'Roboto', sans-serif;
    color: #fff;
    /* min-height: 100vh; */
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: black;
    transition: color 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
    color: black !important;
    background-color: white;
}

/* Main Search Section */
.main {
    margin: 0 auto;
    text-align: center;
    padding: 0px 20px 16px;
    margin-bottom: 1rem;
}

.search-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0px 8px 10px rgba(0, 0, 0, 0.3);
}

.form-control {
    background: transparent;
    border: none;
    padding: 15px 20px;
    color: black;
    width: 100%;
}

.form-control::placeholder {
    color: #ddd;
}

.form-controls {
    color: black;
    border: 1px solid black;
}

.form-controls::placeholder {
    color: black;
}

.form-control:focus {
    outline: none;
    box-shadow: none;
}

.cards-data {
    background-color: transparent !important;
}

/* Search Button */
.search-btn {
    /* background: linear-gradient(135deg, #1e90ff, #00bfff); */
    background-color: green;
    /* Brighter, cleaner colors */
    color: white;
    font-weight: bold;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    /* border-radius: 25px; */
    /* Softer rounded edges */
    /* transition: all 0.3s ease-in-out; */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.search-btn:hover {
    /* transform: translateY(-3px) scale(1.05); */
    /* Slight lift effect */
    box-shadow: 0 8px 30px rgba(30, 144, 255, 0.5);
    /* Glowing hover shadow */
}

.btn:hover {
    color: white !important;
    background-color: #008000 !important;
    border-color: #008000 !important;
}

/* Product Section */
.product-card {
    background: #fff;
    color: #333;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

.product-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.3);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h5 {
    font-size: 20px;
    font-weight: bold;
    margin: 15px 0 10px;
}

.product-card .details {
    padding: 15px;
    text-align: center;
}

.product-card .back {
    background: linear-gradient(45deg, #ff8a00, #e52e71);
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Heading */
/* Section Heading with Underline */
h2 {
    /* font-size: 3rem; */
    font-weight: bold;
    color: white;
    position: relative;
    text-transform: uppercase;
    text-align: center;
    /* Center-align the heading */
    margin-bottom: 1rem;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: green !important;
    /* White underline */
    margin: 0.5rem auto;
    /* Center the underline */
    border-radius: 2px;
    transition: width 0.3s ease;
}

h2:hover::after {
    width: 100px;
    /* Expands underline on hover */
}

/* Responsive */
@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }
}

.image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 100%;
    /* Adjust this to balance image and text space */
    overflow: hidden;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Ensures proper alignment and scaling */
}

.details {
    margin-top: 10px;
}

.details h5 {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
    white-space: nowrap;
    /* Prevents text wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
    /* Adds ellipsis for overflow text */
}

.toast-container {
    z-index: 1100;
}

.toast {
    border-radius: 10px;
}

.loader-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
}

.spinner {
    border: 4px solid transparent;
    border-top: 4px solid #008000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.loader-text {
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #555;
}

.custom-alert h3 {
    font-size: 18px;
    font-weight: bold;
}

.technician-details p {
    font-size: 16px;
    margin-bottom: 8px;
}

.technician-details strong {
    color: #007bff;
}

.alert i {
    margin-right: 10px;
}

.alert-success {
    background-color: #28a745;
    color: white;
}

.alert-info {
    background-color: #17a2b8;
    color: white;
}

.alert-warning {
    background-color: #008000;
    color: white;
}

.alert-danger {
    background-color: #dc3545;
    color: white;
}

.alert-primary {
    background-color: #007bff;
    color: white;
}

.technician-details {
    background-color: #f9f9f9;
    color: black;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.technician-details p {
    font-size: 16px;
    margin-bottom: 10px;
}

.technician-details p strong {
    color: #007bff;
    font-weight: bold;
}

.technician-details p:last-child {
    margin-bottom: 0;
}

/* Remove the bottom border of nav-tabs */
.nav-tabs {
    border-bottom: none !important;
}

#pdf-preview {
    height: 150px !important;
}

@media (max-width: 991px) {
    #pdf-preview {
        height: 70px !important;
    }
}

.form-control {
    border-radius: 20px !important;
}

.btn {
    border-radius: 0px !important;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    color: white;
    background-color: #008000;
    border-color: #008000;
}

.nav-link {
    color: black;
}

/* width */
::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #008000;
    border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #008000;
}

.footer {
    background-color: #198754;
    color: white;
    padding: 20px 0;
    margin-top: 110px;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer .whatsapp-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

#button {
    display: inline-block;
    background-color: #008000;
    width: 50px;
    height: 50px;
    text-align: center;
    border-radius: 50%;
    position: fixed;
    bottom: 30px;
    right: 30px;
    transition: background-color .3s,
        opacity .5s, visibility .5s;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

#button::after {
    content: "\f077";
    font-family: FontAwesome;
    font-weight: normal;
    font-style: normal;
    font-size: 2em;
    line-height: 50px;
    color: #fff;
}

#button:hover {
    cursor: pointer;
    background-color: #008000;
}

#button:active {
    background-color: #008000;
}

#button.show {
    opacity: 1;
    visibility: visible;
}

/* Styles for the content section */

.content {
    width: 77%;
    margin: 50px auto;
    font-family: 'Merriweather', serif;
    font-size: 17px;
    color: #6c767a;
    line-height: 1.9;
}

@media (min-width: 500px) {
    .content {
        width: 43%;
    }

    #button {
        margin: 30px;
    }
}

.content h1 {
    margin-bottom: -10px;
    color: #03a9f4;
    line-height: 1.5;
}

.content h3 {
    font-style: italic;
    color: #96a2a7;
}

.text-success {
    color: #008000 !important;
}

.text-theme {
    color: #fdfcfc !important;
}

#mobileSuggestions,
#amcSuggestion {
    max-height: 250px;
    overflow-y: auto;
}

.form-select {
    border-radius: 20px !important;
    border: 1px solid #ccc;
    max-height: 150px;
    overflow-y: auto;
    display: none;
    background: white;
    width: 100%;
    z-index: 1000;
}

.suggestion-box {
    height: 100% !important;
}

.suggestions {}

.hover-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    background: #28a745;
    /* Green Background */
    color: white;
    border-radius: 10px;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 5px 20px rgba(0, 255, 0, 0.5);
}

/* Icon Styling */
.fa {
    margin-right: 20px;
}

.error-box {
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0px 5px 10px rgba(255, 0, 0, 0.2);
}

.location-button {
    border-radius: 20px !important;
}