/* ============================================
   GOOGLE FONTS - MANROPE TYPOGRAPHY
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* ============================================
   LAYOUT & SPACING
   ============================================ */
body {
  background: linear-gradient(180deg, #f7f3ff 0%, #fff 40%);
  font-family: 'Manrope', sans-serif;
}

.min-vh-75 { min-height: 75vh; }

/* ============================================
   CARDS & COMPONENTS
   ============================================ */
.card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 0.35rem 1.2rem rgba(15, 23, 42, 0.06);
}

/* HERO SECTIONS - SHARED PATTERN */
.hero-card,
[class$="-hero"] {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #102542 0%, #1f3a5f 58%, #0f766e 100%);
  color: #fff;
}

.hero-card::before,
.hero-card::after,
[class$="-hero"]::before,
[class$="-hero"]::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.08);
}

.hero-card::before,
[class$="-hero"]::before {
  width: 250px;
  height: 250px;
  right: -80px;
  top: -80px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-card::after,
[class$="-hero"]::after {
  width: 180px;
  height: 180px;
  right: 18%;
  bottom: -95px;
  background: rgba(255, 255, 255, 0.06);
}

/* HERO LABELS & HEADERS */
.hero-label,
[class$="-hero-label"] {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* STAT CARDS - SHARED STYLING */
.stat-card {
  transition: 0.2s ease;
  border: 1px solid rgba(20, 33, 61, 0.08);
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.06);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.stat-card:hover {
  transform: translateY(-3px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
}

.stat-eyebrow,
.mini-label,
.summary-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}

.stat-value {
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
}

/* SECTION CARDS */
[class*="-section-card"],
[class*="-form-card"],
[class*="-config-card"] {
  border: 1px solid rgba(20, 33, 61, 0.08);
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.05);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
}

/* PANEL TITLES & SUBTITLES */
[class$="-panel-title"],
.section-title,
[class$="-section-title"] {
  font-weight: 800;
  font-size: 1.15rem;
}

[class$="-panel-subtitle"],
[class$="-section-subtitle"] {
  font-size: 0.95rem;
}

/* BUTTONS - HERO ACTION */
[class*="-primary-btn"],
.btn-primary-hero {
  background: #fff;
  color: #14213d;
  border: 0;
  font-weight: 800;
  box-shadow: 0 1rem 2rem rgba(7, 20, 44, 0.18);
}

[class*="-primary-btn"]:hover,
.btn-primary-hero:hover {
  background: #f8fafc;
  color: #14213d;
}

[class*="-outline-btn"],
.btn-outline-hero {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

[class*="-outline-btn"]:hover,
.btn-outline-hero:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* TABLES */
[class*="-table"] thead th,
.table th {
  white-space: nowrap;
  background: #fbfcfe;
  border-bottom-color: #e8edf3;
  color: #64748b;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 800;
}

/* PILLS & BADGES */
.pill-soft,
[class*="-pill-soft"],
.badge-soft {
  background: #f8fafc;
  border: 1px solid #dce5ef;
  color: #334155;
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.type-pill {
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-block;
}

.type-entrada {
  background: rgba(25, 135, 84, 0.12);
  color: #198754;
}

.type-saida {
  background: rgba(220, 53, 69, 0.12);
  color: #dc3545;
}

/* BANNER & INFO BOXES */
[class*="-banner"],
[class*="-form-banner"] {
  padding: 1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #eefbf8 100%);
  border: 1px solid #d9efe9;
  color: #1e293b;
  margin-bottom: 1rem;
}

[class*="-info"],
.config-info {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #097a5b;
}

/* EMPTY STATES */
[class*="-empty"] {
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f8fb 100%);
  border: 1px dashed #cfdae6;
  border-radius: 1.25rem;
}

[class*="-empty"] strong {
  color: #14213d;
}

[class*="-empty"] p {
  color: #6b7280;
}

/* COLOR UTILITIES */
.bg-soft-primary { background: rgba(13, 110, 253, 0.12); color: #0d6efd; }
.bg-soft-success { background: rgba(25, 135, 84, 0.12); color: #198754; }
.bg-soft-warning { background: rgba(255, 193, 7, 0.18); color: #a06a00; }
.bg-soft-danger { background: rgba(220, 53, 69, 0.12); color: #dc3545; }

/* TOOLBAR/CONTROLS */
[class*="-toolbar"],
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eef2f7;
  margin-bottom: 1rem;
}

/* FORM CONTROLS */
.form-control,
.form-select {
  border-radius: 0.85rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.btn {
  border-radius: 0.85rem;
}

/* NAVBAR */
.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* AUTH PAGES */
.auth-page {
  font-family: 'Manrope', sans-serif;
}

.auth-card {
  border: 0;
  overflow: hidden;
  background: #fff;
}

.auth-card:hover {
  transform: translateY(-3px);
}

.birthday-card {
  border: 1px solid #fcd34d;
  background: linear-gradient(135deg, #fffbeb 0%, #fff7d6 100%);
}

.birthday-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fde68a;
  color: #92400e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.birthday-item + .birthday-item {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(146, 64, 14, 0.25);
}

.birthday-divider {
  border-top: 1px dashed rgba(146, 64, 14, 0.25);
  margin: 1rem 0;
}

.today-list .item {
  border-bottom: 1px solid #eef1f5;
  padding: 12px 0;
}

.today-list .item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* ============================================
   SEARCH & FILTERS
   ============================================ */
[class*="-search"] {
  position: relative;
  min-width: min(100%, 320px);
}

[class*="-search"] input {
  padding-left: 2.8rem;
  background: #f8fafc;
  border: 1px solid #dce5ef;
}

[class*="-search"] span {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-weight: 700;
}

/* ============================================
   AVATAR CELLS & DISPLAY
   ============================================ */
[class*="-avatar-cell"] {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

[class$="-avatar"] {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dbeafe 0%, #dcfce7 100%);
  color: #14213d;
  font-weight: 800;
  flex-shrink: 0;
}

[class*="-muted"] {
  color: #64748b;
  font-size: 0.88rem;
}

/* ============================================
   PRICE & DURATION PILLS
   ============================================ */
.price-pill {
  background: rgba(25, 135, 84, 0.12);
  color: #198754;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-block;
}

.duration-pill {
  background: rgba(13, 110, 253, 0.12);
  color: #0d6efd;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-block;
}

/* ============================================
   TABLE ACTIONS
   ============================================ */
[class*="-actions"] {
  display: inline-flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

[class*="-table-wrap"] {
  overflow-x: auto;
}

[class*="-table"] {
  min-width: 980px;
  margin-bottom: 0;
}

/* ============================================
   MODALS
   ============================================ */
.modal-content {
  border: 0;
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.18);
}

.modal-header {
  padding: 1.25rem 1.25rem 0;
  border-bottom: 0;
}

.modal-body {
  padding: 1.25rem;
}

.modal-footer {
  border-top: 1px solid #eef2f7;
  padding: 1rem 1.25rem 1.25rem;
}

/* ============================================
   FORM SECTIONS & LAYOUT
   ============================================ */
[class*="-form-section-title"] {
  font-size: 0.95rem;
  font-weight: 800;
  color: #14213d;
  margin-bottom: 0.9rem;
}

[class*="-info-box"] {
  border: 1px solid #d6eee7;
  background: #f3fffb;
  color: #0f5132;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  font-size: 0.92rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767.98px) {
  [class*="-toolbar"] {
    align-items: stretch;
  }

  [class*="-search"] {
    min-width: 100%;
  }

  [class*="-hero"] .btn {
    width: 100%;
  }
}
