/**
 * FRED Data Display - Stylesheet 
 * 
 * This CSS file provides comprehensive styling for the FRED Data Display plugin.
 * It includes:
 * - Dark theme styling with gradient backgrounds
 * - Dashboard grid layout and responsive design
 * - Sidebar navigation styling
 * - Filter and search component styling
 * - Chart and detail page styling
 * - Animation and hover effects
 * - Reset button with cyan gradient (#FFF to #C1FDFF)
 * - Mobile responsive breakpoints
 * 
 * Color Palette:
 * - Background: #0c1024
 * - Sidebar: linear-gradient(180deg, #101b40 0%, #070c28 100%)
 * - Accent Blue: #3B57FF
 * - Cyan Reset: linear-gradient(90deg, #FFF 0%, #C1FDFF 100%)
 */

/* Spinner Animation css */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

* {
  box-sizing: border-box;
}

body {
  background-color: #0c1024 !important;
  color: #fff !important;
  font-family: "Inter", sans-serif;
}

/* DASHBOARD WRAPPER WITH SIDEBAR */
.fred-dashboard-wrapper {
  display: flex;
  gap: 20px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
}

/* SIDEBAR */
.fred-sidebar {
  width: 280px;
  background: linear-gradient(180deg, #101b40 0%, #070c28 100%);
  border-radius: 12px;
  padding: 25px;
  border: 1px solid rgba(59, 87, 255, 0.2);
  height: fit-content;
  position: sticky;
  top: 20px;
}

.sidebar-header {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(59, 87, 255, 0.3);
}

.sidebar-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #fff;
}

.filter-section {
  margin-bottom: 25px;
}

.filter-section label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #bfc5f7;
}

.search-input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(15, 26, 77, 0.6);
  border: 1px solid rgba(59, 87, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #3b57ff;
  background: rgba(15, 26, 77, 0.9);
  box-shadow: 0 0 10px rgba(59, 87, 255, 0.2);
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #bfc5f7;
  transition: color 0.3s ease;
}

.checkbox-item:hover {
  color: #fff;
}

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #3b57ff;
}

.reset-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #3b57ff, #2d42cc);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.reset-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(59, 87, 255, 0.3);
}

/* MAIN DASHBOARD */
.fred-dashboard {
  flex: 1;
  min-width: 0;
}

.dashboard-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #fff;
}

/* ===== SEARCH AND FILTER SECTION ===== */
.fred-search-section {
  background: linear-gradient(145deg, #101b40, #070c28);
  border: 1px solid rgba(59, 87, 255, 0.2);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  display: flex;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.search-container {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.fred-search-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 26, 77, 0.6);
  border: 1px solid rgba(59, 87, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.fred-search-input:focus {
  outline: none;
  border-color: #3b57ff;
  background: rgba(15, 26, 77, 0.9);
  box-shadow: 0 0 10px rgba(59, 87, 255, 0.3);
}

.fred-search-input::placeholder {
  color: #667eea;
}

/* Dashboard Title Styling */
main.fred-dashboard h1.dashboard-title {
  font-size: 34px;
  color: #fff !important;
}

/* Search Input Styling */
main.fred-dashboard .fred-search-section input#fred-search-input {
  color: #000 !important;
  font-size: 16px;
}

/* Search Dropdown */
.fred-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0f1a4d;
  border: 1px solid rgba(59, 87, 255, 0.3);
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  margin-top: -1px;
}

.fred-search-dropdown.hidden {
  display: none;
}

.search-item {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(59, 87, 255, 0.1);
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: rgba(59, 87, 255, 0.15);
}

.search-item strong {
  color: #fff;
  font-weight: 600;
  display: block;
}

.search-item small {
  color: #8894c5;
  font-size: 0.8rem;
  font-family: 'Courier New', monospace;
  display: block;
}

.source-badge {
  background: rgba(59, 87, 255, 0.2);
  color: #667eea;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 10px;
}

/* Filter Container */
.filter-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-container label {
  white-space: nowrap;
  color: #bfc5f7;
  font-weight: 500;
}

.fred-category-filter {
  padding: 10px 16px;
  background: rgba(15, 26, 77, 0.6);
  border: 1px solid rgba(59, 87, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
}

.fred-category-filter:focus {
  outline: none;
  border-color: #3b57ff;
  background: rgba(15, 26, 77, 0.9);
  box-shadow: 0 0 10px rgba(59, 87, 255, 0.3);
}

.fred-category-filter option {
  background: #0f1a4d;
  color: #fff;
}

/* Data Source Filter */
.fred-data-source-filter {
  padding: 10px 16px;
  background: rgba(15, 26, 77, 0.6);
  border: 1px solid rgba(193, 253, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
}

.fred-data-source-filter:focus {
  outline: none;
  border-color: #c1fdff;
  background: rgba(15, 26, 77, 0.9);
  box-shadow: 0 0 10px rgba(193, 253, 255, 0.3);
}

.fred-data-source-filter option {
  background: #0f1a4d;
  color: #fff;
}

/* Reset Button */
.fred-reset-btn {
  padding: 10px 24px;
  background: linear-gradient(90deg, #FFF 0%, #C1FDFF 100%);
  border: none;
  border-radius: 8px;
  color: #000344;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-size: 0.95rem;
}

.fred-reset-btn:hover {
  background: linear-gradient(90deg, #C1FDFF 0%, #FFF 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(193, 253, 255, 0.4);
}

.fred-reset-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(193, 253, 255, 0.2);
}

/* Series Source Badge */
.series-source {
  display: inline-block;
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Responsive Search Section */
@media (max-width: 1024px) {
  .fred-search-section {
    flex-direction: column;
    align-items: stretch;
  }

  .search-container {
    width: 100%;
  }

  .filter-container {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .fred-category-filter {
    width: 100%;
  }

  .fred-reset-btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .fred-search-section {
    padding: 15px;
    gap: 12px;
  }

  .fred-search-input {
    font-size: 16px;
  }

  .search-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .source-badge {
    margin-left: 0;
  }
}

.fred-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.fred-card {
  background: linear-gradient(145deg, #101b40, #070c28);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(59, 87, 255, 0.2);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  cursor: pointer;
}

.fred-card:hover {
  border-color: rgba(59, 87, 255, 0.5);
  box-shadow: 0 5px 25px rgba(59, 87, 255, 0.15);
  transform: translateY(-2px);
}

/* Restricted card state for Truflation (no data) */
.fred-card-restricted {
  opacity: 0.6;
  cursor: not-allowed;
  background: linear-gradient(145deg, #0a1229, #050714);
  border-color: rgba(200, 100, 100, 0.2);
}

.fred-card-restricted:hover {
  border-color: rgba(200, 100, 100, 0.2);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
  transform: none;
}

.restricted-message {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #999;
  font-style: italic;
  text-align: center;
}

.fred-header {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 15px;
}

.fred-header h2 {
  font-size: 1.2rem;
  color: #fff;
  margin: 0;
}

.series-id {
  font-size: 0.8rem;
  color: #8894c5;
  margin: 0;
  font-family: 'Courier New', monospace;
}

.fred-chart-wrapper {
  height: 300px;
  background: #0f1a4d;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 15px;
  flex: 1;
}

.fred-meta {
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #bfc5f7;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 20px;
}

.meta-grid div {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.meta-grid strong {
  color: #ffffff;
}

.view-detail-btn {
  display: inline-block;
  padding: 10px 16px;
  background: linear-gradient(135deg, #3b57ff, #2d42cc);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
  text-decoration: none;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.view-detail-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(59, 87, 255, 0.3);
  text-decoration: none;
  color: #fff;
}

.view-detail-btn:disabled {
  background: linear-gradient(135deg, #666, #444);
  cursor: not-allowed;
  opacity: 0.6;
}

.view-detail-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

.view-detail-btn:disabled::after {
  content: " (Coming Soon)";
  font-size: 0.8em;
}

/* LOADER */
.fred-loader {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 40px 20px;
  text-align: center;
  min-height: 300px;
}

.fred-loader.hidden {
  display: none !important;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(102, 126, 234, 0.2);
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.fred-loader p {
  font-size: 1rem;
  color: #8894c5;
  margin: 0;
  font-weight: 500;
}

/* PAGINATION */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  padding: 20px;
  background: linear-gradient(145deg, #101b40, #070c28);
  border-radius: 12px;
  border: 1px solid rgba(59, 87, 255, 0.2);
}

.pagination-btn {
  padding: 10px 20px;
  background: linear-gradient(90deg, #FFF 0%, #C1FDFF 100%);
  border: none;
  border-radius: 8px;
  color: #000344;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: linear-gradient(90deg, #C1FDFF 0%, #FFF 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(193, 253, 255, 0.3);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-info {
  font-weight: 600;
  color: #bfc5f7;
  min-width: 120px;
  text-align: center;
}

/* DETAIL PAGE */
.detail-page {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0c1024;
  z-index: 1000;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.detail-page.hidden {
  display: none !important;
}

.detail-back-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #3b57ff, #2d42cc);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.detail-back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(59, 87, 255, 0.3);
}

/* Detail Wrapper - Sidebar + Content */
.detail-wrapper {
  display: flex;
  gap: 30px;
  flex: 1;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* Detail Sidebar */
.detail-sidebar {
  width: 280px;
  background: linear-gradient(180deg, #101b40 0%, #070c28 100%);
  border-radius: 12px;
  padding: 25px;
  border: 1px solid rgba(59, 87, 255, 0.2);
  height: fit-content;
  position: sticky;
  top: 80px;
}

.detail-sidebar .sidebar-header {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(59, 87, 255, 0.3);
}

.detail-sidebar .sidebar-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 600;
}

.detail-sidebar .filter-group {
  margin-bottom: 20px;
}

.detail-sidebar .filter-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #bfc5f7;
  margin-bottom: 8px;
}

.detail-sidebar .filter-group input,
.detail-sidebar .filter-group select {
  width: 100%;
  padding: 10px 12px;
  background: rgba(15, 26, 77, 0.6);
  border: 1px solid rgba(59, 87, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.detail-sidebar .filter-group input:focus,
.detail-sidebar .filter-group select:focus {
  outline: none;
  border-color: #3b57ff;
  box-shadow: 0 0 0 3px rgba(59, 87, 255, 0.1);
}

.detail-sidebar .filter-group input:hover,
.detail-sidebar .filter-group select:hover {
  border-color: rgba(59, 87, 255, 0.5);
}

.apply-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #3b57ff, #2d42cc);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.apply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(59, 87, 255, 0.3);
}

.apply-btn:active {
  transform: translateY(0);
}

/* Detail Content */
.detail-content {
  flex: 1;
  min-width: 0;
}

.detail-header {
  margin-bottom: 30px;
}

.detail-header h1 {
  font-size: 2rem;
  margin: 0 0 10px 0;
  color: #fff;
  font-weight: 700;
}

.detail-series-id {
  font-size: 1rem;
  color: #8894c5;
  font-family: 'Courier New', monospace;
  margin: 0;
}

.detail-chart-wrapper {
  background: linear-gradient(180deg, #101b40 0%, #070c28 100%);
  border: 1px solid rgba(59, 87, 255, 0.2);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-chart-wrapper canvas {
  width: 100% !important;
  height: auto !important;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  background: linear-gradient(180deg, #101b40 0%, #070c28 100%);
  border: 1px solid rgba(59, 87, 255, 0.2);
  border-radius: 12px;
  padding: 25px;
}

.meta-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(59, 87, 255, 0.05);
  border-radius: 8px;
  border-left: 3px solid #3b57ff;
}

.meta-label {
  font-weight: 600;
  color: #8894c5;
  font-size: 0.9rem;
}

.meta-value {
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
}

/* Spinner Mini for loading */
.spinner-mini {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(59, 87, 255, 0.2);
  border-top: 4px solid #3b57ff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .detail-wrapper {
    flex-direction: column;
  }

  .detail-sidebar {
    width: 100%;
    position: static;
  }
}

@media (max-width: 768px) {
  .detail-sidebar {
    width: 100%;
    margin-bottom: 20px;
  }

  .detail-header h1 {
    font-size: 1.5rem;
  }

  .detail-chart-wrapper {
    min-height: 300px;
  }

  .apply-btn {
    padding: 10px;
    font-size: 0.9rem;
  }
}

/* Responsive dashboard */
@media (max-width: 1024px) {
  .fred-dashboard-wrapper {
    flex-direction: column;
  }

  .fred-sidebar {
    width: 100%;
    position: static;
  }

  .detail-chart-wrapper {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .fred-dashboard-wrapper {
    padding: 10px;
    gap: 15px;
  }

  .dashboard-title {
    font-size: 1.5rem;
  }

  .fred-cards-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .fred-chart-wrapper {
    height: 250px;
  }

  .fred-sidebar {
    padding: 15px;
  }

  .pagination-container {
    flex-wrap: wrap;
    gap: 10px;
  }

  .detail-chart-wrapper {
    height: 300px;
  }

  .detail-header h1 {
    font-size: 1.5rem;
  }
}

/* LOADER SPINNER */
.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 20px;
  grid-column: 1 / -1;
}

.spinner {
  border: 4px solid rgba(59, 87, 255, 0.2);
  border-top: 4px solid #3b57ff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loader-container p {
  color: #888;
  font-size: 1rem;
  margin: 0;
}

/* META INFO STYLING */
.meta-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(59, 87, 255, 0.1);
}

.meta-info:last-child {
  border-bottom: none;
}

.meta-label {
  color: #888;
  font-weight: 600;
  min-width: 60px;
}

.meta-date,
.meta-value {
  color: #3b57ff;
  font-weight: 700;
  text-align: right;
}

.meta-value {
  font-size: 1.1rem;
}

/* ============================================
   DETAIL PAGE STYLES
   ============================================ */

.fred-detail-page-wrapper {
  min-height: 100vh;
  padding: 20px;
  background-color: #0c1024 !important;
  color: #fff !important;
  font-family: "Inter", sans-serif;
}

.detail-container {
  max-width: 1600px;
  margin: 0 auto;
}

/* Breadcrumb */
.detail-breadcrumb {
  margin-bottom: 30px;
  padding: 10px 0;
}

.back-to-dashboard {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.back-to-dashboard:hover {
  color: #60a5fa;
  text-decoration: underline;
}

/* Main Content with Sidebar */
.detail-main-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: start;
}

/* Sidebar */
.detail-sidebar {
  background: linear-gradient(180deg, #101b40 0%, #070c28 100%);
  border-radius: 12px;
  padding: 25px;
  border: 1px solid rgba(59, 87, 255, 0.2);
  height: fit-content;
  position: sticky;
  top: 20px;
}

.sidebar-section {
  padding: 0;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 20px 0;
  color: #fff;
  border-bottom: 1px solid rgba(59, 87, 255, 0.3);
  padding-bottom: 15px;
}

/* Filter Groups */
.filter-group {
  margin-bottom: 18px;
}

.filter-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: #e0e7ff;
}

.filter-select,
.filter-input {
  width: 100%;
  padding: 10px 12px;
  background-color: rgba(59, 87, 255, 0.1);
  border: 1px solid rgba(59, 87, 255, 0.3);
  border-radius: 6px;
  color: #fff;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.filter-select:hover,
.filter-input:hover {
  border-color: rgba(59, 87, 255, 0.5);
}

.filter-select:focus,
.filter-input:focus {
  outline: none;
  border-color: #3b82f6;
  background-color: rgba(59, 87, 255, 0.2);
  box-shadow: 0 0 0 3px rgba(59, 87, 255, 0.1);
}

.filter-select option {
  background-color: #1e293b;
  color: #fff;
}

/* Buttons */
.btn {
  width: 100%;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-primary {
  background-color: #3b82f6;
  color: #fff;
}

.btn-primary:hover {
  background-color: #2563eb;
}

.btn-secondary {
  background-color: transparent;
  color: #3b82f6;
  border: 1px solid #3b82f6;
}

.btn-secondary:hover {
  background-color: rgba(59, 87, 255, 0.1);
}

.btn-apply-filters {
  margin-top: 15px;
}

.btn-reset-filters {
  margin-top: 5px;
}

/* Detail Content */
.detail-content {
  flex: 1;
}

/* Series Header */
.series-header {
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(59, 87, 255, 0.2);
}

.series-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #fff;
}

.series-id {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0 0 5px 0;
  font-weight: 500;
  font-family: "Monaco", "Courier New", monospace;
}

.series-description {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin: 0;
}

/* Chart Container */
.chart-container {
  background: linear-gradient(180deg, #101b40 0%, #070c28 100%);
  border: 1px solid rgba(59, 87, 255, 0.2);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  position: relative;
  min-height: 350px;
}

.chart-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 16, 36, 0.8);
  border-radius: 12px;
  z-index: 10;
}

.chart-loader p {
  color: #94a3b8;
  font-size: 1rem;
}

/* Data Statistics */
.data-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.stat-item {
  background: linear-gradient(180deg, #101b40 0%, #070c28 100%);
  border: 1px solid rgba(59, 87, 255, 0.2);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
}

.stat-value.positive {
  color: #10b981;
}

.stat-value.negative {
  color: #ef4444;
}

/* Data Table */
.data-table-wrapper {
  background: linear-gradient(180deg, #101b40 0%, #070c28 100%);
  border: 1px solid rgba(59, 87, 255, 0.2);
  border-radius: 12px;
  padding: 25px;
  overflow-x: auto;
}

.table-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 15px 0;
  color: #fff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background-color: rgba(59, 87, 255, 0.1);
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #e0e7ff;
  border-bottom: 1px solid rgba(59, 87, 255, 0.3);
  font-size: 0.9rem;
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(59, 87, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.9rem;
}

.data-table tbody tr:hover {
  background-color: rgba(59, 87, 255, 0.05);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .detail-main-content {
    grid-template-columns: 250px 1fr;
    gap: 20px;
  }

  .data-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .series-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .detail-main-content {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
    width: 100%;
  }

  .data-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .chart-container {
    min-height: 300px;
  }

  .series-title {
    font-size: 1.3rem;
  }

  .stat-item {
    padding: 12px;
  }

  .stat-value {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .detail-container {
    padding: 0;
  }

  .fred-detail-page-wrapper {
    padding: 10px;
  }

  .detail-sidebar {
    padding: 15px;
  }

  .data-stats {
    grid-template-columns: 1fr;
  }

  .stat-item {
    padding: 10px;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .stat-value {
    font-size: 1rem;
  }

  .series-title {
    font-size: 1.1rem;
  }

  .table-title {
    font-size: 0.95rem;
  }

  .data-table {
    font-size: 0.8rem;
  }

  .data-table th,
  .data-table td {
    padding: 8px;
  }
}


body.fred-detail-body {
    background: #f3f4f6;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

.fred-back-btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    margin-bottom: 25px;
    font-weight: 500;
}
.fred-back-btn:hover {
    background: #1d4ed8;
}

.fred-detail-header h1 {
    margin-top: 0;
    font-size: 32px;
    font-weight: 700;
    color: #111827;
}

.fred-detail-header p {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 35px;
}

.fred-detail-chart-box {
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    height: 420px;
    margin-bottom: 35px;
}

.fred-detail-meta {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
}

.fred-detail-meta p {
    margin: 8px 0;
}

/* FRED API SERIES */

.fred-search-section {
    background-image: radial-gradient(at top center, var(--e-global-color-secondary) 20%, var(--e-global-color-accent) 64%) !important;
}

.fred-dashboard-wrapper .fred-card {
    background-color: transparent;
    background-image: linear-gradient(180deg, #1A3274 0%, #160C66A3 100%);
}

.fred-dashboard-wrapper .pagination-container {
    background: none;
    border: none;
}

.fred-dashboard-wrapper .pagination-container button {
    background: linear-gradient(90deg, #FFF 0%, #C1FDFF 100%) !important;
    border-radius: 10px;

}

.fred-dashboard-wrapper button#fred-reset-filters {
    background: linear-gradient(90deg, #FFF 0%, #C1FDFF 100%) !important;
    border-radius: 10px;
    color:#000 !important
}

.fred-dashboard-wrapper a.view-detail-btn {
    background: linear-gradient(90deg, #FFF 0%, #C1FDFF 100%) !important;
    border-radius: 10px;
    color:#000 !important
}

.fred-dashboard-wrapper p.series-source {
    color: #BFFDFF;
}

.fred-detail-wrapper {
    background: none !important;
    box-shadow: none;
}

.fred-detail-wrapper .fred-series-header {
    background-color: transparent;
    background-image: linear-gradient(180deg, #1A3274 0%, #160C66A3 100%);
    border-color: #c1fdff;
}

.fred-detail-wrapper .fred-filters-section {
    background-color: transparent;
    background-image: linear-gradient(180deg, #1A3274 0%, #160C66A3 100%);
}

.fred-detail-wrapper .fred-chart-section {
    background-color: transparent;
    background-image: linear-gradient(180deg, #1A3274 0%, #160C66A3 100%);
}

.fred-detail-wrapper .meta-item-label {
    color: #c1fdff;
}

.fred-detail-wrapper span.series-id-badge {
    background: #c1fdff;
    color: #000;
}

.fred-detail-wrapper .series-description {
    border-color: #c1fdff;
}

.fred-detail-wrapper .filter-group label {
    color: #c1fdff;
}

.fred-detail-wrapper .filters-grid {
    align-items: end;
}

.fred-detail-wrapper .filters-grid .filter-group {
    margin: 0;
}

.fred-detail-wrapper .fred-filters-section button#fred-reset {
    background: linear-gradient(90deg, #FFF 0%, #c1fdff 100%) !important;
    border-radius: 10px;
    color: #000344 !important;
    padding: 12px 28px !important;
    border: none !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.fred-detail-wrapper .fred-filters-section button#fred-reset:hover {
    background: linear-gradient(90deg, #c1fdff 0%, #FFF 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 16px rgba(193, 253, 255, 0.3) !important;
}

.fred-detail-wrapper .filter-group select, .filter-group input[type="number"] {
    background: #fff !important;
    color: #11243f;
}

.fred-detail-wrapper .filters-grid .filter-group input {
    background: #fff !important;
    color: #11243f !important;
}

.fred-detail-wrapper .fred-meta h3 {
    color: #c1fdff;
}

.fred-detail-wrapper .meta-grid div {
    border-color: #c1fdff;
}

/* ====== ACCORDION DASHBOARD STYLING ====== */

:root {
    --primary-dark: #160C66;
    --secondary-dark: #000344;
    --gradient-dark: #1A3274;
    --accent-blue: #407bff;
    --text-primary: #FFF;
    --text-secondary: #BFFDFF;
    --card-bg: rgba(255, 255, 255, 0.06);
    --card-border: 1px solid rgba(255, 255, 255, 0.1);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section.mainBg {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    min-height: 100vh;
    padding: 0;
}

section.mainBg section.banner {
    border-radius: 0 0 68px 68px;
    background: radial-gradient(62.5% 73.17% at 50% 26.83%, var(--secondary-dark) 0%, var(--gradient-dark) 100%);
    padding: 50px 0;
    margin-bottom: 40px;
}

section.mainBg section.banner .dashboard-header h1 {
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 400;
    margin: 0 0 30px 0;
}

section.mainBg section.banner .dashboard-header .filters-row {
    margin-top: 30px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

section.mainBg section.banner .dashboard-header .filters-row button#btn-reset-filters {
    max-width: fit-content;
    width: 100%;
    background: linear-gradient(90deg, #FFF 0%, #C1FDFF 100%) !important;
    font-size: 16px;
    padding: 10px 15px;
    color: #000;
    font-weight: 500;
    border-radius: 6px;
    transition: all .6s;
    border: 1px solid #fff;
}

.economic_dashboard .action-btns {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.economic_dashboard .action-btns button.btn {
    width: fit-content;
    border-radius: 6px;
    border: 1px solid #fff;
    font-size: 18px;
    transition: all .6s;
    background: #fff !IMPORTANT;
    color: #000 !IMPORTANT;
    font-weight: 500 !IMPORTANT;
}

.economic_dashboard .action-btns button.btn.btn-secondary {
    background: none !IMPORTANT;
    color: #fff !IMPORTANT;
}

section.mainBg section.banner .dashboard-header .filters-row button#btn-reset-filters:hover {
    border-color: #fff;
    background: none ! IMPORTANT;
    color: #fff;
}

section.mainBg section.banner .dashboard-header .filters-row .search-box {
    background: none;
    padding: 12px 15px 5px 5px;
    max-width: 40%;
    width: 100%;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex: 1;
    min-width: 250px;
    border-bottom: 1px solid #fff;
    border-radius: 0px !IMPORTANT;
}

section.mainBg section.banner .dashboard-header .filters-row .search-box input {
    border: none !important;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    width: 100%;
    outline: none;
    background: transparent;
    color: #fff !important;
    padding-bottom: 2px;
}

.economic_dashboard section.banner .filters-row .search-box input::placeholder {
    color: #fff !IMPORTANT;
}

section.mainBg section.banner .dashboard-header .filters-row .search-box input::placeholder {
    color: #999;
}

section.mainBg section.banner .dashboard-header .filters-row .search-box svg {
    flex-shrink: 0;
}

section.mainBg section.banner .dashboard-header .category-filter {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 250px;
    justify-content: flex-end;
}

section.mainBg section.banner .dashboard-header .category-filter label {
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 400;
    white-space: nowrap;
}

section.mainBg section.banner .dashboard-header .category-filter select {
    border: none;
    padding: 10px 15px;
    color: #000;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 400;
    border-radius: var(--border-radius);
    outline: none;
    background: #fff;
    min-width: 150px;
}

.economic_dashboard section.banner .category-filter::after {
    content: "";
    width: 16px;
    height: 16px;
    position: absolute;
    right: 0px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='13' viewBox='0 0 22 13' fill='none'><path d='M20.1912 11.7246L10.6912 1.77223L1.19116 11.7246L0.691162 11.2008L10.6912 0.724609L20.6912 11.2008L20.1912 11.7246Z' fill='white' stroke='white'/></svg>");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    transform: rotate(180deg);
    filter: unset;
    top: 25px;
}

section.content-section {
    padding: 40px 0;
}

section.content-section .content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

section.content-section .button-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

section.content-section .button-row .btn {
    padding: 12px 25px;
    border: 1px solid #fff;
    background: #fff;
    color: #0f095b;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
}

section.content-section .button-row .btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

section.content-section .button-row .btn-secondary {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

section.content-section .button-row .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

section.content-section .button-row .btn-reset {
    background: linear-gradient(90deg, #FFF 0%, #C1FDFF 100%);
    border-radius: 10px;
    color: #000 !important;
    padding: 12px 25px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

section.content-section .button-row .btn-reset:hover {
    background: linear-gradient(90deg, #C1FDFF 0%, #FFF 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(193, 253, 255, 0.3);
}

section.content-section .button-row .btn-reset:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(193, 253, 255, 0.2);
}

/* ACCORDION CONTAINER */
.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    background: var(--card-bg);
    border: var(--card-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 8px 20px rgba(64, 123, 255, 0.15);
}

.accordion-header {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    user-select: none;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.08);
}

.accordion-header.active {
    background: rgba(64, 123, 255, 0.1);
}

.accordion-title {
    flex: 1;
}

.accordion-title .indicator-name {
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.accordion-title .indicator-id {
    color: #999;
    font-size: 12px;
    font-family: 'Outfit', sans-serif;
    margin: 0;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: var(--transition);
    color: var(--accent-blue);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 25px 25px 25px;
    display: none;
    animation: slideDown 0.3s ease forwards;
}

.accordion-item.active .accordion-content {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.accordion-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meta-label {
    color: #999;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
}

.accordion-description {
    color: #ccc;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.accordion-actions {
    display: flex;
    gap: 10px;
}

.view-btn {
    flex: 1;
    padding: 10px 15px;
    background: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.chart-wrapper {
    position: relative;
    width: 100%;
    background: rgba(15, 20, 40, 0.5);
    border-radius: 8px;
    padding: 15px;
    box-sizing: border-box;
}

.chart-wrapper canvas {
    width: 100% !important;
    height: auto !important;
    display: block;
}

/* Fullscreen Chart Mode */
.chart-wrapper.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 10000;
    border-radius: 0;
    padding: 0;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
}

.chart-wrapper.fullscreen canvas {
    width: 100% !important;
    height: 100% !important;
}

.fullscreen-toggle {
    background: none;
    border: none;
    color: var(--accent-blue);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fullscreen-toggle:hover {
    color: #BFFDFF;
    transform: scale(1.1);
}

.fullscreen-toggle svg {
    width: 20px;
    height: 20px;
}

.fullscreen-back {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(12, 16, 36, 0.8);
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.fullscreen-back:hover {
    background: var(--accent-blue);
    color: #fff;
    transform: scale(1.1);
}

.fullscreen-back svg {
    width: 24px;
    height: 24px;
}

/* PAGINATION */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding: 30px 0;
}

.pagination-btn {
    padding: 12px 25px;
    background: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.pagination-btn:hover:not(:disabled) {
    background: #3b6be8;
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

.page-info {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    min-width: 120px;
    text-align: center;
}

/* LOADER */
.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.loader-container.hidden {
    display: none;
}

.loader-spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--accent-blue);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    section.mainBg section.banner .dashboard-header h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    section.mainBg section.banner {
        padding: 30px 0;
    }

    section.mainBg section.banner .dashboard-header h1 {
        font-size: 28px;
    }

    section.mainBg section.banner .dashboard-header .filters-row {
        flex-direction: column;
    }

    section.mainBg section.banner .dashboard-header .filters-row .search-box {
        max-width: 100%;
        width: 100%;
    }

    section.mainBg section.banner .dashboard-header .category-filter {
        max-width: 100%;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    section.mainBg section.banner .dashboard-header .category-filter select {
        width: 100%;
        min-width: auto;
    }

    .accordion-header {
        padding: 18px;
    }

    .accordion-content {
        padding: 0 18px 18px 18px;
    }

    .pagination-container {
        flex-direction: column;
    }

    .pagination-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    section.mainBg section.banner .dashboard-header h1 {
        font-size: 20px;
    }

    section.content-section .button-row {
        flex-direction: column;
    }

    section.content-section .button-row .btn {
        width: 100%;
    }

    .accordion-header {
        padding: 15px;
    }

    .accordion-content {
        padding: 0 15px 15px 15px;
    }

    .accordion-title .indicator-name {
        font-size: 16px;
    }
}

/* ====== NEW FRED DATA DISPLAY CSS FIXES ====== */

.economic_dashboard section.banner .filters-row .search-box input {
    border: none ! IMPORTANT;
    font-family: Outfit;
    font-size: 20px !IMPORTANT;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: #000;
    width: 100%;
    outline: none;
}

.economic_dashboard section.banner .filters-row .search-box input::placeholder {
    color: #000 !IMPORTANT;
}

body section.mainBg section.banner .dashboard-header .filters-row .search-box svg {
    filter: brightness(2.1);
    flex-shrink: unset ! IMPORTANT;
    width: fit-content ! IMPORTANT;
    fill: transparent ! IMPORTANT;
    position: relative;
    top: -4px;
}

.economic_dashboard section.banner .filters-row .search-box input {
    padding-left: 0px;
}

.economic_dashboard section.banner .category-filter {
    max-width: 40%;
    width: 100%;
    position: relative;
}

.economic_dashboard section.banner .category-filter select#fred-category-filter {
    border: none;
    color: #fff;
    font-family: Outfit;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    outline: none;
    -webkit-appearance: none ! IMPORTANT;
    appearance: none ! IMPORTANT;
    -moz-appearance: none !important;
    background: none !IMPORTANT;
    border-bottom: 1px solid #fff;
    border-radius: 0px;
    padding: 12px 15px 8px 5px !IMPORTANT;
}

.economic_dashboard section.banner .category-filter select#fred-category-filter option {
    color: #000 !IMPORTANT;
}

.economic_dashboard section.banner .category-filter label {
    color: #FFF;
    font-family: Outfit;
    font-size: 20px !IMPORTANT;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.economic_dashboard section.content-section .button-row {
    justify-content: space-between !IMPORTANT;
    margin-bottom: 10px !IMPORTANT;
}

.economic_dashboard section.content-section .button-row button.btn {
    font-size: 18px !IMPORTANT;
    width: fit-content !IMPORTANT;
    border-radius: 10px;
}

.economic_dashboard section.mainBg .banner {
    margin-bottom: 0px !IMPORTANT;
}

.economic_dashboard section.content-section .accordion-container .accordion-item {
    margin-bottom: 20px !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    padding: 20px !important;
    box-shadow: none !important;
}

.economic_dashboard section.content-section .accordion-container .accordion-item .accordion-header {
    padding: 0px !important;
    background: none !IMPORTANT;
}

.economic_dashboard section.content-section .accordion-container .accordion-item .accordion-header .accordion-title .indicator-name {
    margin-bottom: 0px !important;
    background: none !IMPORTANT;
}

.economic_dashboard section.content-section .accordion-container .accordion-item .accordion-content {
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 20px;
}

.economic_dashboard section.content-section .accordion-container .accordion-item .accordion-header .accordion-icon {
    color: #fff !IMPORTANT;
    transform: rotate(180deg) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

body .economic_dashboard section.content-section .accordion-container .accordion-item.active .accordion-header .accordion-icon {
    transform: rotate(0deg) !important;
}

.economic_dashboard section.content-section .accordion-container .accordion-item .accordion-content .chart-section .chart-wrapper {
    height: fit-content !IMPORTANT;
}

.economic_dashboard section.content-section .accordion-container .accordion-item .accordion-header .accordion-icon svg {
    width: 18px ! IMPORTANT;
}

section.mainBg section.banner .dashboard-header .filters-row .search-box input::placeholder {
    color: #fff !IMPORTANT;
}