

        .container {
            display: flex;
            flex: 1;
            gap: 20px;
        }

  .right-panel {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }


        .left-panel {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .card {
            background-color: white;
            padding: 10px;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        #uploadSection {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        #adiFileInput {
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 8px;
            width: 95%;
            font-size: 16px;
            transition: border-color 0.3s ease;
        }
        #adiFileInput:focus {
            border-color: #4caf50;
            outline: none;
        }
        #uploadButton {
            padding: 12px 24px;
            background-color: #4caf50;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s ease;
        }
        #uploadButton:hover {
            background-color: #45a049;
        }
        .loadingBar {
            width: 100%;
            background-color: #f3f3f3;
            border: 1px solid #ddd;
            border-radius: 8px;
            overflow: hidden;
            margin: 10px 0;
            position: relative;
        }
        .loadingBar div {
            height: 20px;
            background-color: #4caf50;
            width: 0%;
            transition: width 0.3s ease;
        }
        .loadingBar span {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #333;
            font-size: 14px;
        }
#map {
    flex: 2; /* Allow the map to take up more space */
    height: auto; /* Let the map height adjust dynamically */
    min-height: 800px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/*
#map {
    height: 700px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

*/








#bottomControls {
            margin-top: 0px;
            display: flex;
            justify-content: center;
        
            flex-wrap: wrap;
        }
        #bottomControls  {
           
            background-color: #007bff;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s ease;
            width: 100%;
        }
       


  #stats {
    background-color: #f9f9f9;
    padding: 17px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: -2px;


            text-align: center;
        /*    margin-top: 20px; */
            font-size: 20px;
            color: #555;
  }


        @media (max-width: 768px) {
            .container {
                flex-direction: column;
            }
            #map {
                height: 400px;
            }
        }
        /* Custom Popup Styles */
        .leaflet-popup-content {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            font-size: 14px;
            color: #333;
        }
        .leaflet-popup-content a {
            color: #007bff;
            text-decoration: none;
        }
        .leaflet-popup-content a:hover {
            
        }
        .leaflet-popup-content .close-btn {
            position: absolute;
            top: 5px;
            right: 5px;
            cursor: pointer;
            font-size: 16px;
            color: #333;
        }
        .leaflet-popup-content .close-btn:hover {
            color: #000;
        }
        /* Watermark Styles */
        .watermark-container {
            background-color: rgba(255, 255, 255, 0.8);
            padding: 10px;
            border-radius: 25px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        .watermark img {
            width: 100px;
            opacity: 0.8;
            transition: opacity 0.3s ease;
        }
        .watermark img:hover {
            opacity: 1;
        }
        /* LOAD MORE BUTTON */
        #loadMoreButton {
            padding: 0px 14px;
            background: linear-gradient(to right, #4caf50 0%, #4caf50 0%, #007bff 0%, #007bff 100%);
            color: white;
            border: none;
            width: 100%;
           
            border-radius: 5px;
            cursor: pointer;
            font-size: 10px;
            transition: background 0.3s ease;
            position: relative;
            overflow: hidden;
            background-size: 200% 100%;
            background-position: left bottom;
        }
        #loadMoreButton:hover {
            background-color: #0056b3;
        }
        #loadMoreButton span {
            position: relative;
            z-index: 2;
        }
        #operatorInfo {
            background-color: rgba(255, 255, 255, 0.9);
            padding: 15px;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            
            text-align: center;
        }
        #operatorInfo h2 {
            margin-top: 10px;
            font-size: 20px;
            color: #2c3e50;
        }
        #operatorInfo p {
            margin: 10px 0;
            font-size: 14px;
            color: #333;
        }
        #operatorInfo strong {
            color: #000;
        }
        #operatorImageContainer {
            margin-bottom: 10px;
        }
        #operatorImage {
            border: 2px solid #ddd;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        #qslCardContainer{
             margin-bottom: 10px;
             margin-top: 20px;
        }

        #qslCardContainer p{
             margin-bottom: 20px;
             
        }

        #qslCardStyle {
            border: 2px solid #fff;
           
        }


         #qslCardId {
            margin-top: 20px;
            padding: 10px 20px;
            background: linear-gradient(to right, #4caf50 0%, #4caf50 0%, #007bff 0%, #007bff 100%);
            color: white;
            border: none;
            width: 50%;
            border-radius: 5px;
            cursor: pointer;
            font-size: 12px;
            transition: background 0.3s ease;
            position: relative;
            overflow: hidden;
            background-size: 50% 50%;
            background-position: left bottom;
        }

          #qslCardId:hover {
            background-color: #45a049;
        }

        #qslCardStyleContainer {
    cursor: pointer; /* Makes it look clickable */
}




#stats h3 {
    margin-top: 0;
    font-size: 20px;
    color: #2c3e50;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.stat-icon {
    font-size: 24px;
}

.stat-label {
    font-size: 14px;
    color: #555;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
}
#uploadSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 20px;
    border: 0px solid #ccc; /* Optional border for the card */
    border-radius: 8px; /* Optional rounded corners */
    background-color: #f9f9f9; /* Optional background color */
}

.upload-message {
    font-size: 1.5em;
    font-weight: bold;
    color: #007BFF; /* Blue color, you can change it */
    margin-bottom: 0px;
    animation: pulse 1.5s infinite; /* Optional animation to make it more eye-catching */
}

#adiFileInput, #uploadButton {
    margin: 0px;
}

/* Optional: Add a simple pulse animation to make the message stand out */

/*
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(0.99);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

*/


.send-qso-btn {
    display: block;
    margin-top: 15px;
    padding: 0px 0px;
    background-color: #4caf50;
    color: white;
    border: 0px solid #4caf50;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    margin-left: auto;
    margin-right: auto;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    width: 150px; /* Fixed width */
    height: 40px; /* Fixed height */
    text-align: center;
    white-space: nowrap; 
    transform: translateZ(0); /* Isolate the button in its own layer */
}

.send-qso-btn:hover {
    background-color: #45a049;
}


    .custom-file-upload {
    display: inline-block;
    padding: 16px 30px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border-radius: 8px;
}

input[type="file"] {
    display: none;
}





/* Modal Styles */
.modal {
    display: none !important; /* Hidden by default */
    position: fixed !important;
    z-index: 9999 !important; /* Ensure it's on top */
    padding-top: 60px !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: auto !important;
    background-color: rgba(0, 0, 0, 0.9) !important; /* Black background with opacity */
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}




.send-qso-btn {
    background-color: #4CAF50; /* Green for active button */
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
}

.send-qso-btn.sent {
    background-color: #f57542; /* Orange for sent */
    cursor: not-allowed;
}

.send-qso-btn.invalid {
    background-color: #f44336; /* Red for invalid */
    cursor: not-allowed;
}




/* Scoped styling for alert modal to avoid conflicts */
.alert-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000; /* Ensure it appears on top */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Dim the background */
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.alert-modal .alert-modal-content {
    background-color: #333;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 400px;
}

.alert-reload-text {
    font-weight: bold;
    font-size: 18px;
    margin-top: 10px;
}

/* Style for the close button */
.alert-close-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #f44336; /* Red color */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.alert-close-btn:hover {
    background-color: #d32f2f; /* Darker red on hover */
}







/* The Modal for DOWNLOAD QSL CARD */
.qsl-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
  padding-top: 60px;
}

/* Modal Content (Image) */
.qsl-modal img {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
}

/* The Close Button */
.qsl-modal .qsl-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.qsl-modal .qsl-close:hover,
.qsl-modal .qsl-close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Download Button */
#qslDownloadButton {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  background-color: #0073e6;
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
}

#qslDownloadButton:hover {
  background-color: #005bb5;
}









/* MODAL CARDS HOME */


/* Modal Background */
#imageModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9); /* 90% black */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Modal Content */
#imageModal > div {
  position: relative;
  width: 90%;
  max-width: 860px;
  background: #fff; /* White background */
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

/* Close Button */
#closeModal {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 35px;
  color: #333; /* Dark gray */
  cursor: pointer;
  transition: color 0.3s ease;
}

#closeModal:hover {
  color: red;
}

/* Swiper Container */
.swiper-container {
  width: 100%;
  overflow: hidden;
}

/* Image Styles */
.swiper-slide img {
  width: 100%;
  border-radius: 5px;
}

/* Select Buttons */
.select-btn {
  display: block;
  width: 100px;
  margin: 10px auto;
  padding: 10px;
  font-size: 16px;
  color: white;
  background-color: #007bff; /* Blue */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.select-btn:hover {
  background-color: #0056b3; /* Darker blue */
}

/* Swiper Pagination */
.swiper-pagination {
  bottom: 10px;
}

.swiper-button-next,
.swiper-button-prev {
  color: white; /* White arrows */
}

/* Positioning the next/previous buttons */
.swiper-button-next,
.swiper-button-prev {
  position: absolute;
  top: 50%; /* Adjust this value */
  transform: translateY(-50%);
  z-index: 10; /* Make sure buttons are above other elements */
}

.swiper-button-next {
  right: 10px; /* Adjust based on your preference */
}

.swiper-button-prev {
  left: 10px; /* Adjust based on your preference */
}



/* Container for the progress bar */
#progressContainerWrapper {
    width: 100%;        /* Ensure it takes up the full width of its container */
    max-width: 500px;   /* Optional: Limit the maximum width */
    margin: 0 auto;     /* Center it if it's not already centered */
    padding: 10px 0;    /* Optional: Add padding for aesthetics */
}

/* The progress container itself */
#progressContainer {
    width: 100%;
    background-color: #f3f3f3;
    border-radius: 5px;
    height: 30px;       /* Fixed height for the bar */
    overflow: hidden;   /* Prevent the bar from spilling out */
}

/* The actual progress bar */
#progressBar {
    width: 0%;          /* Start at 0% width */
    height: 100%;       /* Ensure it fills the height of its container */
    background-color: #4caf50;
    border-radius: 5px;
    text-align: center;
    line-height: 30px;
    color: white;
    transition: width 0.5s ease-in-out; /* Smooth width transition */
}


    #statusMessage {
        margin-top: 10px;
        font-weight: bold;
    }




        #sendEmailButton {
            margin-top: 20px;
            padding: 10px 20px;
            background: linear-gradient(to right, #4caf50 0%, #4caf50 0%, #007bff 0%, #007bff 100%);
            color: white;
            border: none;
            width: 50%;
            border-radius: 5px;
            cursor: pointer;
            font-size: 12px;
            transition: background 0.3s ease;
            position: relative;
            overflow: hidden;
            background-size: 50% 50%;
            background-position: left bottom;
              display: grid; /* Grid layout for the button */
  justify-self: center; /* Horizontally center */
  align-self: center;  /* Vertically center */
        }

          #sendEmailButton:hover {
            background-color: #45a049;
        }


