.data-export-btn {
    position: absolute;
    right: 10px;
    bottom: 20px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #25292e, #383e47);
    color: #e0e0e0;
    border: 1px solid #456789;
    border-radius: 25px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.data-export-btn:hover {
    background-color: #3d566e;
    color: #D18F3A;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: #D18F3A;
}

.data-export-btn::after {
    content: "Export Data";
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    font-size: 14px;
    margin-left: 8px;
    color: inherit;
}
/* Full-screen overlay */
.export-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main content container takes only the space needed */
.export-content {
    width: 90vw;
    max-width: 700px; /* Optional: limits how wide the modal can be */
    height: auto;     /* Auto height based on content */
    max-height: 95vh; /* Optional: if content is too long, scroll */
    background: linear-gradient(135deg, #25292e, #383e47);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header styling – same as global comparison */
.export-header {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem;
    background: #383e47;
    border-bottom: 1px solid #456789;
}
  
.export-header h2 {
    color: #D18F3A;
    font-size: 1.5rem;
    margin: 0;
}
  
/* Quit cross – same style as global comparison */
.export-close {
    background: none;
    border: none;
    color: #ecf0f1;
    font-size: 24px;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    border-radius: 4px;
    transition: background-color 0.2s;
}
.export-close:hover {
    background: rgba(231, 76, 60, 0.15);
}
  
/* Body styling with scrollable content */
.export-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: linear-gradient(135deg, #25292e, #383e47);
}

/* Row container: groups two steps side by side */
.export-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

/* Each export-section in a row takes equal width.
   If one section is hidden, the visible one expands fully. */
.export-row .export-section {
    flex: 1;
}

/* Section styling for each step */
.export-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.75rem;
}

/* Step titles: using the same style as data comparison chart titles */
.export-section h3 {
    font-size: 1rem;    /* Matches .gc-chart-header h3 */
    padding-top: 0.5rem;
    color: #ecf0f1;     /* Chart title color */
    /* Remove any step bubble if not needed */
}
.export-section h3::before {
    content: "";
}

/* Specifically constrain the variables section to scroll if needed */
.export-section.variables-section {
    max-height: 250px; /* Adjust as needed */
    overflow-y: auto;
}

.variable-options {
    display: grid;
    grid-auto-flow: column;          /* Fill items vertically (column-first) */
    grid-template-rows: repeat(4, auto); /* Exactly 6 rows per column */
    gap: 10px;
  }
  
  
  .variable-options .variable-checkbox {
    display: flex;
    align-items: center;
    padding-bottom: 2px;
    width: 100%;
  }

  .date-options .date-radio {
    padding-bottom: 2px;
    margin: 0;         /* Remove default margin */
    line-height: 1;    /* Reset line-height */
    display: flex;
    align-items: center;
  }
  
  .date-options .date-radio input {
    margin: 0;         /* Remove default margin from the radio input */
  }
  
  .date-options .date-radio span {
    margin: 0;         /* Remove any extra margin on the label text */
  }
  

  
.export-footer {
    flex: 0 0 auto;
    padding: 0.5rem;
    background: #383e47;
    border-top: 1px solid #456789;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}
  
/* Footer button styles – same size as data comparison module */
.export-cancel,
.export-download {
    padding: 0.3rem 0.75rem;  /* Reduced padding */
    border-radius: 4px;       /* Smaller border radius */
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 1rem;
}
  
.export-download {
    background: #D18F3A;
    color: white;
    border: none;
}
  
.export-cancel:hover {
    background: #3d566e;
}
  
.export-download:hover:not(:disabled) {
    background: #e5a04d;
    transform: translateY(-1px);
}
  
.export-download:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.export-progress {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
    min-width: 200px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #456789;  /* Changed to a lighter blue background */
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    transition: background-color 0.3s ease;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress, 0%);  /* Use CSS variable for smooth animation */
    background: #D18F3A;  /* Changed to our gold accent color */
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.85rem;
    color: #ecf0f1;
    text-align: center;
    min-height: 1.2em;
}

/* Error state */
.progress-bar.error {
    background-color: rgba(231, 76, 60, 0.2);
}

.progress-bar.error::before {
    background-color: #e74c3c;
}