/**
 * EventSphere Admin – palette-driven SaaS dashboard
 *
 * Palette (only use these solid colors):
 *   Eucalyptus: #98AA9D  (primary accent)
 *   Mist:       #B3C9D6  (soft UI elements)
 *   Plaster:    #F2EFE2  (background)
 *   Soot:       #2D3536  (primary text / dark)
 *   Moss:       #697C70  (secondary text / hover)
 *
 * White (#FFFFFF) is used only for card surfaces and inputs.
 */

/* -----------------------------
 * Layout & page background
 * --------------------------- */

.fi-body,
.fi-main-ctn {
  background-color: #F2EFE2 !important; /* Plaster */
  color: #2D3536 !important;           /* Soot – ensure readable base text */
}

.fi-main-ctn {
  padding: 32px !important; /* page padding */
}

/* Generic grid spacing between cards */
.fi-main-ctn .grid,
.fi-widgets-grid {
  gap: 24px !important; /* card gap */
}

/* Page header hierarchy */
.fi-header-heading,
.fi-widget-header-heading {
  color: #2D3536 !important; /* Soot */
  font-weight: 600 !important;
  letter-spacing: -0.01em;
}

.fi-header-subheading {
  color: #697C70 !important; /* Moss */
  font-size: 0.9rem !important;
}

/* -----------------------------
 * Sidebar
 * --------------------------- */

.fi-sidebar,
.fi-sidebar-nav {
  background-color: #2D3536 !important; /* Soot */
}

.fi-sidebar-nav {
  padding: 0.75rem 0.75rem 1.25rem !important;
}

.fi-sidebar-group-label {
  color: #697C70 !important; /* Moss */
  font-size: 0.7rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0.75rem 0.65rem 0.25rem !important;
}

.fi-sidebar-item-button,
.fi-sidebar-group-button {
  color: #F2EFE2 !important; /* Plaster as light text */
  border-radius: 0.75rem !important;
  padding: 0.625rem 0.9rem !important;
  gap: 0.625rem !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.fi-sidebar-item-button svg,
.fi-sidebar-group-button svg {
  width: 1rem;
  height: 1rem;
}

/* Hover state */
.fi-sidebar-item-button:hover,
.fi-sidebar-group-button:hover {
  background-color: #697C70 !important; /* Moss */
  color: #F2EFE2 !important; /* Plaster */
  transform: translateY(-1px);
}

/* Active item */
.fi-sidebar-item-button[aria-current='page'],
.fi-sidebar-item-button.bg-primary-500 {
  background-color: #98AA9D !important; /* Eucalyptus */
  color: #2D3536 !important;            /* Soot */
}

.fi-sidebar-item-button[aria-current='page'] svg,
.fi-sidebar-item-button.bg-primary-500 svg {
  color: #2D3536 !important; /* Soot */
}

/* -----------------------------
 * Top navigation bar
 * --------------------------- */

.fi-topbar {
  background: #F2EFE2 !important; /* Plaster */
  backdrop-filter: blur(18px);
  border-bottom: 1px solid #98AA9D !important; /* Eucalyptus */
}

.fi-topbar nav {
  color: #2D3536 !important; /* Soot */
}

/* -----------------------------
 * Cards & sections
 * --------------------------- */

.fi-section,
.fi-fo-component-ctn > div,
.fi-ta-content {
  background-color: #FFFFFF !important;
  border: 1px solid #98AA9D !important; /* Eucalyptus */
  border-radius: 12px !important;
  padding: 20px !important; /* card padding */
  box-shadow: 0 2px 6px rgba(45, 53, 54, 0.06) !important; /* Soot, soft */
  transition:
    box-shadow 200ms ease,
    transform 200ms ease,
    border-color 200ms ease;
  margin-bottom: 32px !important; /* section spacing */
}

.fi-section:hover,
.fi-fo-component-ctn > div:hover,
.fi-ta-content:hover {
  border-color: #98AA9D !important; /* Eucalyptus */
  box-shadow: 0 6px 18px rgba(45, 53, 54, 0.12) !important; /* Soot */
  transform: translateY(-2px);
}

/* -----------------------------
 * Forms
 * --------------------------- */

.fi-fo-field-wrp label {
  color: #697C70 !important; /* Moss */
}

.fi-fo-field-wrp input,
.fi-fo-field-wrp select,
.fi-fo-field-wrp textarea {
  border-radius: 8px !important;
  border: 1px solid #98AA9D !important; /* Eucalyptus */
  background-color: #FFFFFF !important;
  padding: 10px !important;
  font-size: 0.9rem !important;
  color: #2D3536 !important; /* Soot */
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease;
}

.fi-fo-field-wrp input:focus,
.fi-fo-field-wrp select:focus,
.fi-fo-field-wrp textarea:focus {
  outline: none !important;
  border-color: #697C70 !important; /* Moss */
  box-shadow: 0 0 0 2px rgba(105, 124, 112, 0.25) !important; /* Moss */
}

/* -----------------------------
 * Tables
 * --------------------------- */

.fi-ta-table {
  border-radius: 0.75rem !important;
  overflow: hidden;
}

.fi-ta-table thead {
  background-color: #B3C9D6 !important; /* Mist */
}

.fi-ta-table th {
  color: #2D3536 !important; /* Soot */
  border-bottom-color: #98AA9D !important; /* Eucalyptus */
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fi-ta-table td {
  border-bottom-color: #98AA9D !important; /* Eucalyptus */
  color: #2D3536 !important;               /* Soot */
  font-size: 0.9rem !important;
}

.fi-ta-table tbody tr:hover {
  background-color: #F2EFE2 !important; /* Plaster */
}

/* Ensure horizontal scroll on smaller screens */
.fi-ta-content {
  overflow-x: auto !important;
}

/* -----------------------------
 * Buttons
 * --------------------------- */

.fi-btn {
  border-radius: 10px !important;
  font-weight: 500 !important;
  padding: 10px 18px !important;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

/* Primary button */
.fi-btn-primary {
  background-color: #98AA9D !important; /* Eucalyptus */
  color: #2D3536 !important;            /* Soot */
  box-shadow: 0 4px 10px rgba(45, 53, 54, 0.12);
}

.fi-btn-primary:hover {
  background-color: #697C70 !important; /* Moss */
  color: #F2EFE2 !important;            /* Plaster */
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(45, 53, 54, 0.18);
}

/* Secondary button */
.fi-btn-secondary,
.fi-btn.gray,
.fi-btn[data-color='gray'] {
  background-color: #B3C9D6 !important; /* Mist */
  color: #2D3536 !important;            /* Soot */
}

/* Outline button */
.fi-btn.outline,
.fi-btn[data-style='outlined'] {
  background-color: transparent !important;
  border: 1px solid #98AA9D !important; /* Eucalyptus */
  color: #2D3536 !important;            /* Soot */
  box-shadow: none !important;
}

.fi-btn.outline:hover,
.fi-btn[data-style='outlined']:hover {
  background-color: #F2EFE2 !important; /* Plaster */
}

/* -----------------------------
 * Micro-interactions: modals & notifications
 * --------------------------- */

.fi-modal-window {
  background-color: #FFFFFF !important;
  border-radius: 16px !important;
  border: 1px solid #98AA9D !important; /* Eucalyptus */
  box-shadow: 0 16px 40px rgba(45, 53, 54, 0.22);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 180ms ease-out,
    transform 180ms ease-out;
}

.fi-modal-window[data-state='open'] {
  opacity: 1;
  transform: translateY(0);
}

.fi-notifications,
.fi-notification {
  color: #2D3536 !important; /* Soot */
}

.fi-notification {
  border-radius: 12px !important;
  border: 1px solid #98AA9D !important; /* Eucalyptus */
  background-color: #F2EFE2 !important; /* Plaster */
  box-shadow: 0 8px 24px rgba(45, 53, 54, 0.18);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.fi-notification[data-state='enter'] {
  opacity: 0;
  transform: translateY(6px);
}

.fi-notification[data-state='visible'] {
  opacity: 1;
  transform: translateY(0);
}

/* -----------------------------
 * Responsive behavior
 * --------------------------- */

@media (max-width: 768px) {
  .fi-main-ctn {
    padding: 16px !important;
  }

  .fi-section,
  .fi-fo-component-ctn > div,
  .fi-ta-content {
    margin-bottom: 24px !important;
    box-shadow: 0 4px 12px rgba(45, 53, 54, 0.12) !important;
  }
}
