/* =========================================
   FORCORA - COMPLETE STYLESHEET
========================================= */

:root {
  --sidebar: #10233d;
  --sidebar-light: #193858;
  --primary: #635bdf;
  --primary-hover: #5148cd;
  --background: #f5f7fb;
  --white: #ffffff;
  --text: #172033;
  --muted: #667085;
  --border: #e4e8ef;
  --bug: #ef4c55;
  --feature: #7c5cf0;
  --privacy: #20b76a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--background);
  color: var(--text);
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  min-height: 100vh;
}

/* =========================================
   SIDEBAR
========================================= */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 255px;
  height: 100vh;
  padding: 28px 18px 18px;
  background: linear-gradient(
    180deg,
    #10233d 0%,
    #112944 100%
  );
  color: white;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1001;
}

.brand {
  padding: 0 12px;
  margin-bottom: 38px;
}

.logo {
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -1px;
  color: white;
  margin-bottom: 5px;
}

.logo span {
  color: #756bff;
}

.brand-tagline {
  font-size: 10px;
  color: #91a3bc;
  letter-spacing: 0.45px;
  line-height: 1.5;
}

.menu-label {
  margin: 0 0 12px;
  padding: 0 13px;
  color: #8294ac;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

/* Sidebar navigation */

.sidebar-menu {
  list-style: none;
}

.sidebar-menu li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 12px 14px;
  margin-bottom: 7px;
  border-radius: 10px;
  color: #c7d2e1;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease,
              color 0.2s ease,
              transform 0.2s ease;
}

.sidebar-menu li:hover {
  background: rgba(255, 255, 255, 0.075);
  color: white;
}

.sidebar-menu li.active {
  background: #244f82;
  color: white;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.12);
}

.nav-icon {
  width: 22px;
  min-width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* Sidebar bottom */

.sidebar-bottom {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.bottom-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 11px 14px;
  margin-bottom: 5px;
  border-radius: 9px;
  color: #c7d2e1;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease,
              color 0.2s ease;
}

.bottom-item:hover,
.bottom-item.active {
  background: rgba(255, 255, 255, 0.09);
  color: white;
}

/* Sidebar profile */

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 14px 8px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #756bff;
  color: white;
  font-size: 11px;
  font-weight: 700;
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sidebar-user-info strong {
  font-size: 12px;
  color: white;
}

.sidebar-user-info span {
  font-size: 10px;
  color: #91a3bc;
}

.user-menu-icon {
  margin-left: auto;
  color: #91a3bc;
  letter-spacing: 2px;
}

/* =========================================
   MAIN CONTENT
========================================= */

.main-content {
  margin-left: 255px;
  width: calc(100% - 255px);
  min-height: 100vh;
  padding: 30px;
}

/* Page switching */

.page-section {
  display: none;
  animation: pageFade 0.22s ease;
}

.page-section.active {
  display: block;
}

@keyframes pageFade {
  from {
    opacity: 0.65;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   TOPBAR
========================================= */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 30px;
}

.search-box {
  min-width: 0;
}

.search-box input {
  width: 420px;
  max-width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  background: white;
  font-size: 14px;
}

.search-box input:focus,
.explorer-filters input:focus,
.settings-field input:focus {
  border-color: var(--primary);
}

.top-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

.top-right select {
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--text);
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 14px;
}

.profile-circle {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #dce6f4;
  color: #233f66;
  font-weight: 700;
}

/* =========================================
   HEADINGS
========================================= */

.dashboard-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.dashboard-title {
  min-width: 0;
}

.dashboard-title h1,
.page-heading h1 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.dashboard-title p,
.page-heading p {
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.page-heading {
  margin: 8px 0 25px;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */

.analyze-btn {
  padding: 12px 22px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease;
}

.analyze-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* =========================================
   DASHBOARD SUMMARY CARDS
========================================= */

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 110px;
  padding: 18px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(16, 35, 61, 0.06);
}

.card-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 23px;
}

.total-icon {
  background: #eceaff;
  color: #6557e8;
}

.privacy-icon {
  background: #dcf7e7;
  color: #17a85b;
}

.bug-icon {
  background: #ffe5e7;
  color: #ef4c55;
}

.feature-icon {
  background: #fff3d5;
  color: #e6a400;
}

.card-content {
  width: 100%;
  min-width: 0;
}

.card-title {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-bottom h2,
.card-content h2 {
  font-size: 25px;
  font-weight: 700;
}

.trend-box {
  text-align: right;
  flex-shrink: 0;
}

.trend-box span {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.trend-box small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: #7c8798;
}

.increase {
  color: #16a35a;
}

.decrease {
  color: #ef4c55;
}

/* =========================================
   CHARTS
========================================= */

.charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.chart-box {
  min-width: 0;
  min-height: 300px;
  padding: 22px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.chart-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
}

/* Donut chart */

.sentiment-content,
.category-content {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  min-height: 220px;
}

.donut-chart {
  width: 170px;
  height: 170px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e9edf4;
}

.category-donut {
  background: #e9edf4;
}

.donut-center {
  width: 105px;
  height: 105px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: white;
}

.donut-center h2 {
  font-size: 24px;
}

.donut-center p {
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.sentiment-legend {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 170px;
}

.category-content .sentiment-legend {
  min-width: 205px;
}

.legend-item {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 10px;
}

.legend-item p,
.legend-item strong {
  font-size: 13px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.bug-dot {
  background: var(--bug);
}

.feature-dot {
  background: var(--feature);
}

.privacy-dot {
  background: var(--privacy);
}

/* =========================================
   BAR CHART
========================================= */

.bar-chart {
  height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 14px;
  padding: 20px 10px 0;
  border-bottom: 1px solid var(--border);
}

.bar-item {
  width: 30%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.bar-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.bar {
  width: 50px;
  max-width: 100%;
  min-height: 0;
  border-radius: 6px 6px 0 0;
  transition: height 0.4s ease;
}

.bug-bar {
  background: var(--bug);
}

.feature-bar {
  background: var(--feature);
}

.privacy-bar {
  background: var(--privacy);
}

.bar-item p {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  min-height: 28px;
}

/* =========================================
   RECENT REVIEWS TABLE
========================================= */

.recent-reviews {
  margin-top: 25px;
  margin-bottom: 30px;
  padding: 22px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 0;
}

.recent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.recent-header h3 {
  font-size: 18px;
}

.view-all-btn {
  padding: 5px 0;
  border: none;
  background: transparent;
  color: #3454d1;
  font-size: 14px;
  font-weight: 600;
}

.view-all-btn:hover {
  text-decoration: underline;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.recent-reviews table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
}

.recent-reviews th,
.recent-reviews td {
  padding: 13px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.recent-reviews th {
  background: #f7f9fc;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.recent-reviews td {
  font-size: 13px;
  line-height: 1.5;
  color: #344054;
}

.recent-reviews tbody tr:hover {
  background: #fafbff;
}

/* Category badges */

.badge {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.bug-badge {
  background: #ffe5e7;
  color: #e54850;
}

.feature-badge {
  background: #eee9ff;
  color: #6954d8;
}

.privacy-badge {
  background: #e8f7ec;
  color: #1d9b55;
}

/* =========================================
   UPLOAD REVIEWS PAGE
========================================= */

.upload-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.upload-panel {
  padding: 28px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(16, 35, 61, 0.045);
}

.panel-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #eeecff;
  color: var(--primary);
  font-size: 25px;
  font-weight: 700;
}

.upload-panel h2 {
  margin-bottom: 10px;
  font-size: 21px;
}

.upload-panel > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 190px;
  margin-top: 22px;
  padding: 25px;
  border: 2px dashed #b9b5f5;
  border-radius: 12px;
  background: #faf9ff;
  cursor: pointer;
  text-align: center;
  transition: 0.2s ease;
}

.upload-dropzone:hover {
  background: #f2f0ff;
  border-color: var(--primary);
}

.upload-symbol {
  font-size: 36px;
  color: var(--primary);
}

.upload-dropzone strong {
  font-size: 14px;
  color: var(--text);
}

.upload-dropzone small {
  font-size: 12px;
  color: var(--muted);
}

.upload-status {
  margin-top: 15px;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.single-upload-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.single-upload-panel .analyze-btn {
  margin-top: 24px;
}

.instruction-list {
  padding-left: 22px;
  color: #475467;
  font-size: 14px;
  line-height: 2;
}

.upload-history {
  margin-top: 24px;
}

/* =========================================
   REVIEW EXPLORER
========================================= */

.explorer-filters {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.explorer-filters input {
  flex: 1;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  background: white;
  font-size: 14px;
}

.explorer-filters select {
  min-width: 190px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--text);
  font-size: 14px;
}

.explorer-table {
  margin-top: 0;
}

#explorerReviewCount {
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  padding: 24px 12px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* =========================================
   ANALYTICS PAGE
========================================= */

.analytics-summary {
  margin-bottom: 25px;
}

.analytics-summary .card {
  min-height: 105px;
}

.analytics-summary .card-content h2 {
  margin-top: 8px;
  font-size: 27px;
}

/* =========================================
   SETTINGS PAGE
========================================= */

.settings-panel {
  padding: 28px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(16, 35, 61, 0.045);
}

.settings-section {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.settings-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.settings-section h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.settings-section > p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 450px;
  margin-bottom: 18px;
}

.settings-field label {
  font-size: 13px;
  font-weight: 600;
}

.settings-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f9fafb;
  outline: none;
  color: #475467;
}

.settings-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 450px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f2f5;
  font-size: 14px;
}

.settings-option:last-child {
  border-bottom: none;
}

.settings-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

/* =========================================
   HELP & SUPPORT
========================================= */

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.help-card {
  padding: 25px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(16, 35, 61, 0.045);
  transition: 0.2s ease;
}

.help-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(16, 35, 61, 0.07);
}

.help-card h3 {
  margin-bottom: 10px;
  font-size: 17px;
}

.help-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.faq-panel {
  margin-top: 25px;
}

.faq-panel h3 {
  margin-bottom: 20px;
  font-size: 19px;
}

.faq-panel details {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.faq-panel details:last-child {
  border-bottom: none;
}

.faq-panel summary {
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.faq-panel details p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* =========================================
   ACCESSIBILITY
========================================= */

button:focus-visible,
input:focus-visible,
select:focus-visible,
.sidebar-menu li:focus-visible,
.bottom-item:focus-visible {
  outline: 3px solid rgba(117, 107, 255, 0.35);
  outline-offset: 2px;
}

/* =========================================
   MOBILE SIDEBAR CONTROLS
========================================= */

.hamburger-btn,
.sidebar-close,
.sidebar-overlay {
  display: none;
}

/* =========================================
   TABLET RESPONSIVE
========================================= */

@media (max-width: 1200px) {

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .charts {
    grid-template-columns: 1fr;
  }

  .help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-actions {
    align-self: flex-start;
  }
}

/* =========================================
   SMALL TABLET
========================================= */

@media (max-width: 900px) {

  .main-content {
    padding: 22px;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .search-box {
    flex: 1;
  }

  .search-box input {
    width: 100%;
  }

  .top-right {
    gap: 15px;
  }

  .upload-page-grid {
    grid-template-columns: 1fr;
  }

  .help-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media (max-width: 700px) {

  body {
    overflow-x: hidden;
  }

  .main-content {
    width: 100%;
    min-height: 100vh;
    margin-left: 0;
    padding: 16px;
  }

  /* Mobile sidebar */

  .sidebar {
    width: 255px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 26px;
    z-index: 2;
  }

  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    transition: opacity 0.3s ease,
                visibility 0.3s ease;
  }

  .sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
  }

  .hamburger-btn {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    color: var(--sidebar);
    font-size: 23px;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  /* Topbar */

  .topbar {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
  }

  .search-box {
    flex: 1;
    min-width: 0;
  }

  .search-box input {
    width: 100%;
    padding: 12px;
  }

  .top-right {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .profile {
    gap: 8px;
  }

  /* Headings */

  .dashboard-heading {
    gap: 20px;
  }

  .dashboard-title h1,
  .page-heading h1 {
    font-size: 27px;
  }

  .dashboard-actions {
    width: 100%;
  }

  .dashboard-actions .analyze-btn {
    width: 100%;
  }

  /* Cards */

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .card {
    padding: 13px;
    gap: 10px;
  }

  .card-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .card-title {
    font-size: 12px;
  }

  .card-bottom h2,
  .card-content h2 {
    font-size: 21px;
  }

  .trend-box small {
    font-size: 9px;
    white-space: normal;
  }

  /* Charts */

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

  .chart-box {
    padding: 16px;
  }

  .category-content {
    flex-wrap: wrap;
    justify-content: center;
  }

  .category-content .sentiment-legend {
    width: 100%;
    min-width: 0;
  }

  .donut-chart {
    width: 150px;
    height: 150px;
  }

  .donut-center {
    width: 95px;
    height: 95px;
  }

  .category-bar-chart .bar-item {
    width: 30%;
    min-width: 0;
  }

  .category-bar-chart .bar {
    max-width: 40px;
  }

  .category-bar-chart .bar-item p {
    font-size: 10px;
  }

  /* Tables */

  .recent-reviews {
    padding: 15px;
  }

  .recent-reviews table {
    min-width: 650px;
  }

  /* Upload */

  .upload-page-grid {
    grid-template-columns: 1fr;
  }

  .upload-panel {
    padding: 20px;
  }

  /* Explorer */

  .explorer-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .explorer-filters select {
    width: 100%;
  }

  /* Settings */

  .settings-panel {
    padding: 20px;
  }

  /* Help */

  .help-grid {
    grid-template-columns: 1fr;
  }

  .help-card {
    padding: 20px;
  }
}

/* =========================================
   EXTRA SMALL MOBILE
========================================= */

@media (max-width: 400px) {

  .main-content {
    padding: 12px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .dashboard-title h1,
  .page-heading h1 {
    font-size: 24px;
  }

  .top-right select {
    padding: 9px;
    font-size: 12px;
  }

  .profile span {
    font-size: 12px;
  }

  .card {
    min-height: 90px;
  }

  .recent-header {
    align-items: flex-start;
  }

  .upload-panel h2 {
    font-size: 19px;
  }
}


/* =================================
   FORCORA - Updated Page Background
================================= */

body {
    background-color: #EEF2FF;
}

.container {
    background-color: #EEF2FF;
}

.main-content {
    background-color: #EEF2FF;
}

.page-section {
    background-color: transparent;
}

.chart-box,
.card,
.recent-reviews,
.upload-panel,
.settings-panel,
.help-card {
    background-color: #FFFFFF;
}



/* FORCORA - Premium Blue Dashboard Theme */

html,
body {
    background: #DCE6F5 !important;
}

.container,
.main-content {
    background: #DCE6F5 !important;
}

.page-section {
    background: transparent !important;
}

.chart-box,
.card,
.recent-reviews,
.upload-panel,
.settings-panel,
.help-card {
    background: #FFFFFF !important;
}

/* Search and filter areas */
.search-box input,
.explorer-filters input,
.explorer-filters select {
    background: #FFFFFF;
}

/* Top navigation */
.topbar {
    background: #DCE6F5 !important;
}

.logout-btn {
    width: 100%;
    padding: 11px;
    margin-top: 12px;
    border: none;
    border-radius: 8px;
    background: #635BDF;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.logout-btn:hover {
    background: #5148c9;
}