/* ------------------ CSS Variables for Softer Brand Colors ------------------ */
:root {
  /*
    Chosen to be less intense than #FF7B7B (#ff7b7b)
    but still close to the pinkish top bar. Feel free to adjust as needed.
  */
  --brand-color: #FF9090;        /* Slightly lighter, pinkish red */
  --brand-color-middle: #FFBEBD;
  --brand-color-darker: #FF5F5F; /* Darker variant for hover/active */

  /* New subtle warm gray accent color */
  --accent-color: #666; 
}

.accent-digits {
  color: var(--accent-color);
  font-weight: bold; /* optional */
}

/* ------------------ Global Font Rules ------------------ */
/* By default, body text is Open Sans */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  background: #FFFEFC;
}

/* Headings, nav links, and buttons use Montserrat */
h1, h2, h3, h4, h5, h6,
.nav-links a,
.btn-general,
.gray-pill-button {
  font-family: 'Montserrat', sans-serif;
}

/* ------------------ Base Layout & Animations ------------------ */
.container {
  max-width: 1200px;
  margin: 2rem auto 1rem;
  padding: 0 2rem;
  position: relative;
}

/* A reusable "fade-in-up" class if you want to animate elements. */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------ Top Nav Bar ------------------ */
.top-nav {
  width: 100%;
  background: linear-gradient(
  to bottom,
  rgba(255, 123, 123, 0.6),
  rgba(255, 123, 123, 0)
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
  box-sizing: border-box;
}

.nav-logo img {
  max-height: 80px;
  width: auto;
}

.nav-links {
  margin-top: 2rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.nav-links a {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--brand-color);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.45);
}

.nav-links a:hover {
  color: var(--brand-color-darker);
  text-shadow: 0 0 5px rgba(255, 44, 35, 0.5);
}

/* ------------------ Main Content ------------------ */
.main-content {
  margin-top: 0rem;
}

/* ------------------ Dashboard / Settings Sections ------------------ */
.dashboard-sections {
  margin: 2rem auto 3rem;
  display: grid;
  grid-gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}
/* 
For pages that require a single-column layout, 
we can override the columns:
*/
.single-column {
  grid-template-columns: 1fr !important;
  justify-items: center; /* centers each card horizontally */
}

/* Helper class to span a card across both columns */
.card-fullwidth {
  grid-column: 1 / span 2;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
/* “Wide” card variant that stretches more horizontally */
.wide-card {
  width: 100%;
  max-width: 900px; /* or 800px, adjust as needed */ 
}

/*
  .dash-card can also be used for "settings-card".
  If you want a different style, define .settings-card 
  or simply reuse .dash-card for uniform design.
*/
.dash-card {
  background-color: #fdfdfd;
  backdrop-filter: blur(6px);
  border-top: 4px solid var(--brand-color-middle); /* Keep the brand color on top border */
  border-radius: 8px;
  padding: 1.2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s, transform 0.2s;
  font-size: 0.85rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 250px;
}


/* Optionally for fade-in effect: .dash-card.fade-in-up { ... } */

/* Hover effect */
.dash-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

/* 
   Changed H2 color to --accent-color
*/
.dash-card h2 {
  margin-top: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  transition: color 0.2s, opacity 0.2s;
}

/* Panel description uses default body font (Open Sans).
   Using a subtle border bottom. */
.panel-description {
  color: #777;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #ddd;
}

/* Body text within .dash-card or .settings-card */
.dash-card p:not(.panel-description),
.dash-card ul li {
  font-size: 1rem;
  font-weight: 400;
  color: #444;
  line-height: 1.6;
  margin-bottom: 0.8rem;
  letter-spacing: 0.02em;
}

.dash-card ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0.6rem 0 0;
}

.dash-card ul li {
  margin-bottom: 0.4rem;
}

/* If you have a "danger-zone" area, you can highlight it:
.danger-zone {
  border-top: 4px solid var(--brand-color-darker);
  background-color: #ffecec;
}
*/

/* ------------------ Button Styles ------------------ */
/* ------------------ Button Styles ------------------ */
.btn-general {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;

  /* Use the lighter brand color (#FF9090) for a softer default */
  background-color: transparent;
  color: var(--brand-color);       /* #FF9090 */
  border: 2px solid var(--brand-color);
  border-radius: 8px;

  /* Make the glow subtler by reducing alpha */
  box-shadow: 0 2px 4px rgba(255, 144, 144, 0.10);

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

/* Hover: fill with brand-color-middle (#FFBEBD) + white text */
.btn-general:hover {
  background-color: var(--brand-color-middle);
  color: #ffffff;
  /* Slightly increase shadow on hover, but keep it subtle */
  box-shadow: 0 3px 6px rgba(255, 144, 144, 0.15);
}

/* Active: use the darker variant (#FF5F5F) */
.btn-general:active {
  background-color: var(--brand-color-darker);
  border-color: var(--brand-color-darker);
  color: #ffffff;
}

/* Hover/active states for pill button */
.gray-pill-button:hover {
  background-color: #ccc;
  color: #000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.gray-pill-button:active {
  background-color: #aaa;
  color: #222;
}

/* Blink effect for important calls-to-action, if needed */
.btn-general.blink, 
.gray-pill-button.blink {
  animation: balancedBlink 1.5s ease-in-out infinite;
}

@keyframes balancedBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.7; }
}



/* Hover/active states for pill button */
.gray-pill-button:hover {
  background-color: #ccc;
  color: #000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.gray-pill-button:active {
  background-color: #aaa;
  color: #222;
}

/* Blink effect for important calls-to-action, if needed */
.btn-general.blink, 
.gray-pill-button.blink {
  animation: balancedBlink 1.5s ease-in-out infinite;
}

@keyframes balancedBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.7; }
}

/* ------------------ Flash Messages ------------------ */
ul.flash-messages {
  background: none;
  border: none;
  padding: 0;
  margin-top: 1rem;
  list-style-type: none;
  font-size: 0.85rem;
  color: #333;
  font-family: 'Open Sans', sans-serif;
}

ul.flash-messages li {
  margin-bottom: 0.5rem;
}

/* ------------------ Table Styles ------------------ */
/* 
 If you want a "premium" table style across pages, 
 apply these rules or a custom class (e.g. .table-premium).
*/
.table thead {
  background-color: var(--brand-color);
  color: #fff;
}
.table tbody tr:hover {
  background-color: rgba(255, 144, 144, 0.07); /* subtle brand hover */
}
.table tbody td, .table thead th {
  vertical-align: middle;
}
.table thead th {
  border-bottom: none; /* or lighten for a minimal look */
}

/* Optionally wrap your table in .table-responsive for horizontal scrolling:
 <div class="table-responsive">
   <table class="table">
     ...
   </table>
 </div>
*/

/* ------------------ Spinner ------------------ */
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--brand-color);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: none;
  margin-left: 10px;
  vertical-align: middle;
}

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

/* ---Remove underline from all anchors-------- */
a {
  text-decoration: none;
}
a:hover,
a:focus,
a:active {
  text-decoration: none; /* No underlines at all */
}

/* ------footer-------- */
.footer {
  text-align: center;
  padding: 1rem;
  background: #FFFEFC; 
  color: #FF9190; /* brand color for text */
  font-size: 0.85rem;
  margin-top: 2rem;
}

