span.dateBtns button.active {
    background-color: lightgrey;
    border-radius: 5px;
    border-style: solid;
    border-width: 1px;
}

span.dateBtns button {
    width: 36px;
    height: 25px;
    margin-left: 3px;
    padding-left: 0px;
    padding-right: 0px;
    border-width: 1px;
    border-radius: 5px;
    background-color: darkgrey;
}

select.dataSource {
    vertical-align: bottom;
    margin-left: 5px;
}

div.selectButtons{
    display:inline-block;
}
div.selectButtons button{
    font-size: 0.9em;
}

#DownloadStatusDialog{
    width:100vw;
    height:100vh;
    display:flex;
    position:fixed;
    top:0px;
    left:0px;
    justify-content: center;
    align-items: flex-start;
    padding-top: 38vh; /* Roughly 38% from top */
    z-index:501;
}

#DownloadStatusDialog > div.content{
    position:relative;
    overflow:hidden;
    background-color:white;
    background: 
        linear-gradient(135deg, 
            rgba(240, 244, 248, 0.7), 
            rgba(224, 231, 255, 0.7)
        );
    backdrop-filter: blur(10px) saturate(180%);
    box-shadow:5px 5px 5px rgba(0,0,0,.3);
    border:1px solid rgba(209,217,230,0.3);
    text-align:center;
    border-radius: 24px;
    animation: scaleIn 0.3s ease-out;
    font-family: 'Inter', sans-serif;
    width:430px;
    transform: perspective(1000px) rotateX(2deg);
    transform-style: preserve-3d;
}

#DownloadStatusDialog.working > div.content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
        background: linear-gradient(
            90deg,
            transparent 30%,
            rgba(255, 255, 255, 0.1) 45%,
            rgba(255, 255, 255, 0.4) 60%,
            rgba(255, 255, 255, 0.1) 75%,
            transparent 90%
        );
    animation: glowMove 3s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes glowMove {
    0% {
        left: -200%;
    }
    100% {
        left: 200%;
    }
}


#DownloadStatusDialog > div.content > div.title-bar {
      background: linear-gradient(135deg, rgba(220, 234, 255, 0.8), rgba(200, 215, 255, 0.8));
      border-top-left-radius: 24px;
      border-top-right-radius: 24px;
      padding: 10px 15px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.4);
      position:relative;
      z-index:2;
    }

#DownloadStatusDialog > div.content > div.title-text {
      font-size: 18px;
      font-weight: 600;
      color: #2d3748;
      margin: 0;
    }

#DownloadStatusDialog > div.content > div.dialog-body {
    padding-left:50px;
    padding-right:50px;
    margin-top:15px;
    margin-bottom:15px;
    z-index:2;
    position:relative;
}

@keyframes scaleIn {
  from {
    transform: scale(0.95); /* Only scale, no translate */
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

#DownloadClose{
    position:absolute;
    top:0px;
    right:12px;
    height:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:2;
}

#DownloadClose > button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 16px;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.6);
    padding: 6px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    font-weight: 400;
    line-height: 1px;
}

#DownloadClose > button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#DownloadClose > button:active {
    transform: scale(0.95);
}

div.insar .graphArea{
    min-height:0px;
}

#overlaySelectors{
    position:relative;
    display:inline-block;
    margin-left:2px;
    margin-right:5px;
    border:1px solid #BBB;
    padding-top:1px;
    padding-right: 22px;
    padding-left:5px;
    padding-bottom:1px;
    background-color: white;
    border-radius: 5px;
    font-size: .75em;
    margin-top:2px;
}

#overlaySelectors::after{
    content:'';
    position:absolute;
    right:2px;
    top: 0px;
    height:100%;
    width:12px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%3E%3Ctitle%3Edown-arrow%3C%2Ftitle%3E%3Cg%20fill%3D%22%23000000%22%3E%3Cpath%20d%3D%22M10.293%2C3.293%2C6%2C7.586%2C1.707%2C3.293A1%2C1%2C0%2C0%2C0%2C.293%2C4.707l5%2C5a1%2C1%2C0%2C0%2C0%2C1.414%2C0l5-5a1%2C1%2C0%2C1%2C0-1.414-1.414Z%22%20fill%3D%22%23000000%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fsvg%3E");
    background-size: 8px;
    background-position:center;
    background-repeat: no-repeat;
}

#overlayWrapper{
    position:absolute;
    top:0px;
    left:0px;
    border:1px solid #CCC;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, .3);
    padding:10px;
    z-index:502;
    background-color: whitesmoke;
    border-radius: 5px;
}

#overlayWrapper::after{
    content:"";
    z-index: -3;
    width: 50px;
    height: calc(100% + 25px );
    position:absolute;
    top: 0px;
    left: 100%;
}

.overlayOption{
    display: grid;
    grid-template-columns: 17ch 1fr;
    row-gap: 5px;
    column-gap: 10px;
    align-items:center;
    border:1px solid #ccc;
    border-radius:8px;
    padding-top:2px;
    padding-bottom:2px;
}

.overlayOption .overlayTitle{
    justify-self: end;
}

.overlayOption .overlaySelector{
    justify-self:stretch;
    padding-right:5px;
}

.overlayOption .overlaySelector ul{
    width:100%;
}

.share-icon {
    width: 24px; /* Or your preferred size */
    height: 24px;
    vertical-align: middle;
    cursor: pointer;
}

#shareButton:hover .share-icon {
    opacity: 0.8; /* Subtle hover effect */
}

#options{
    display:grid;
    grid-template-columns: 1fr auto auto;
    column-gap: 5px;
    padding-right:3px;
}

/* Backdrop for the modal */
#shareLinkDialog {
    display: none; /* Hidden by default, as in your HTML */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent gray backdrop */
    z-index: 1000; /* Ensure it’s above other content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

/* Modal content container */
#shareLinkDialog #shareContent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center horizontally and vertically */
    background-color: #fff;
    padding: 20px;
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Shadow */
    width: 90%; /* Responsive */
    max-width: 500px; /* Max width */
}

/* Title styling */
.shareTitle {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

/* Input styling */
#shareLink {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: monospace;
    box-sizing: border-box;
    overflow-x: auto; /* Scroll for long URLs */
    white-space: nowrap; /* Keep it single-line */
}

/* Footer container */
.shareFooter {
    display: flex;
    justify-content: space-between; /* Buttons on edges */
    align-items: center; /* vertically centers all items */
    gap: 10px; /* Space between buttons */
}

/* Feedback message */
#copyFeedback {
    flex-grow: 1; /* Takes available space to center itself */
    text-align: center; /* Centers the text */
    color: #28a745; /* Green, like "copied" state */
    font-size: 0.9em;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease; /* Smooth fade */
}

/* Show feedback when active */
#copyFeedback.active {
    opacity: 1;
}

/* Button styling */
.shareFooter button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s; /* Smooth hover effect */
}

#copyLink {
    background-color: #007bff; /* Blue, like Google’s "Copy link" */
    color: white;
}

#copyLink:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

#shareDone {
    background-color: #6c757d; /* Gray for "Done" */
    color: white;
}

#shareDone:hover {
    background-color: #5a6268; /* Darker gray on hover */
}

.marker-asterisk {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: #888;
    line-height:30px;
}

.marker-asterisk.active {
    color: #333; /* Darker when active */
}

#reportDiv{
    position: absolute;
    background-color: #fefefe;
    z-index:505;
    right:50px;
    padding-top: 20px;
    padding-bottom: 5px;
    border:1px solid #888;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
#reportDiv > div.modal-content > div{
    padding-left: 20px;
    padding-right: 20px;
}

#reportDiv .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

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

.keyword-tag {
    background-color: #e0e0e0;
    padding: 5px;
    margin: 3px;
    border-radius: 5px;
    display: inline-block;
}

.keyword-tag .remove-keyword {
    cursor: pointer;
    margin-left: 5px;
}

.ui-autocomplete {
    z-index: 510;
}

#newReportDialog{
    border-radius: 5px;
    border:1px solid #888;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#newReportContent{
    display:grid;
    row-gap: 3px;
    grid-template-columns: auto auto;
    column-gap: 5px;
}

#newReportFooter{
    display:flex;
    justify-content: space-between;
    border-top:3px groove #888;
    padding-top: 5px;
    margin-top: 5px;
    grid-column: 1 / -1;
}

#newReportContent label {
    text-align: right; /* Right-justify all labels in the first column */
}

#volcanoNameDisplay{
    font-weight: bold;
    margin-bottom: 10px;
}

#keywordList{
    border:1px solid #ccc;
    border-radius: 3px;
    padding: 5px;
    min-height: 1.5em;
}

#reportHeader{
    border-bottom: 3px groove #888;
    padding-bottom: 5px;
    margin-bottom: 5px;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 5px;
}

#newReportBody{
    display:grid;
    grid-template-columns: auto auto;
    row-gap: 5px;
    column-gap: 5px;
}

#newReportBody label{
    text-align: right;
}

#imagePreview {
    grid-column: 1/3;
}

#keywordInputDiv{
    display:grid;
    row-gap: 2px;
}

#imagePreview{
    display:flex;
    align-items: center;
}

#closeReportDialog{
    position:relative;
    top:-20px;
    left:20px;
}

#closeReportButton{
    background-color: transparent;
    color: #888;
    border:none;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
}

#closeReportButton:hover {
    color: #333;
}

#emailDialog {
    padding: 20px;
    padding-top:0px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    background: white;
  }

  #emailDialog[open] {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  #emailInput {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
  }

  .dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
  }

  .dialog-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }

  #sendEmailBtn {
    background-color: #4CAF50;
    color: white;
  }

  #downloadBtn {
    background-color: #2196F3;
    color: white;
  }

  #cancelBtn {
    background-color: #f44336;
    color: white;
  }

  #sendEmailBtn:hover, #downloadBtn:hover, #cancelBtn:hover {
    opacity: 0.9;
  }
