/**
 * Flowbeds.com.br - Identidade Visual
 * Sistema de Reservas Online
 * 
 * Cores extraídas da logo oficial:
 * - Azul Escuro (Dark Navy): #0F1C2E
 * - Cyan/Verde Água (Teal): #32CD99
 * - Verde Limão (Lime): #7ED321
 * - Azul Claro (Light Blue): #4ECDC4
 * - Gradiente Principal: linear-gradient(135deg, #32CD99 0%, #7ED321 100%)
 */

:root {
  /* === CORES PRIMÁRIAS FLOWBEDS === */
  --fb-primary: #0f1c2e; /* Azul escuro (fundo principal) */
  --fb-primary-light: #1a2b42; /* Azul escuro mais claro */
  --fb-primary-dark: #080f1a; /* Azul muito escuro */

  --fb-accent: #32CD99; /* Verde/Cyan (cor de destaque) */
  --fb-accent-hover: #00b894; /* Verde/Cyan hover */
  --fb-accent-light: #e8fbf6; /* Verde muito claro (backgrounds) */

  --fb-secondary: #7ed321; /* Verde limão */
  --fb-secondary-hover: #6bbd1a; /* Verde limão hover */

  --fb-tertiary: #4ecdc4; /* Azul claro/turquesa */

  /* Gradientes */
  --fb-gradient: linear-gradient(135deg, #32CD99 0%, #7ed321 100%);
  --fb-gradient-reverse: linear-gradient(135deg, #7ed321 0%, #32CD99 100%);
  --fb-gradient-dark: linear-gradient(135deg, #0f1c2e 0%, #1a2b42 100%);

  /* === CORES SEMÂNTICAS === */
  --fb-success: #32CD99;
  --fb-success-bg: #e8fbf6;
  --fb-warning: #f5a623;
  --fb-warning-bg: #fff8e6;
  --fb-danger: #e74c3c;
  --fb-danger-bg: #fdf2f2;
  --fb-info: #4ecdc4;
  --fb-info-bg: #e8f8f7;

  /* === TONS DE CINZA === */
  --fb-gray-100: #f8fafc;
  --fb-gray-200: #edf2f7;
  --fb-gray-300: #e2e8f0;
  --fb-gray-400: #cbd5e0;
  --fb-gray-500: #a0aec0;
  --fb-gray-600: #718096;
  --fb-gray-700: #4a5568;
  --fb-gray-800: #2d3748;
  --fb-gray-900: #1a202c;

  /* === TEXTO === */
  --fb-text-primary: #1a202c;
  --fb-text-secondary: #718096;
  --fb-text-muted: #a0aec0;
  --fb-text-light: #ffffff;
  --fb-text-on-accent: #ffffff;

  /* === BACKGROUNDS === */
  --fb-bg-body: #f8fafc;
  --fb-bg-card: #ffffff;
  --fb-bg-dark: #0f1c2e;

  /* === BORDAS E SOMBRAS === */
  --fb-border: #e2e8f0;
  --fb-border-focus: #32CD99;
  --fb-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --fb-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --fb-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --fb-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* === BORDER RADIUS === */
  --fb-radius-sm: 4px;
  --fb-radius: 8px;
  --fb-radius-lg: 12px;
  --fb-radius-xl: 16px;
  --fb-radius-full: 9999px;

  /* === TRANSIÇÕES === */
  --fb-transition: all 0.2s ease;
  --fb-transition-slow: all 0.3s ease;
}

/* ========================================
   RESET E BASE STYLES
   ======================================== */

.flowbeds-theme {
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--fb-text-primary);
  background-color: var(--fb-bg-body);
}

/* ========================================
   BOTÕES FLOWBEDS
   ======================================== */

.btn-fb-primary {
  background: var(--fb-gradient);
  border: none;
  color: var(--fb-text-light);
  padding: 12px 24px;
  border-radius: var(--fb-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--fb-transition);
  box-shadow: var(--fb-shadow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-fb-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--fb-shadow-lg);
  opacity: 0.95;
  color: var(--fb-text-light);
}

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

.btn-fb-secondary {
  background: transparent;
  border: 2px solid var(--fb-accent);
  color: var(--fb-accent);
  padding: 10px 22px;
  border-radius: var(--fb-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--fb-transition);
}

.btn-fb-secondary:hover {
  background: var(--fb-accent);
  color: var(--fb-text-light);
}

.btn-fb-dark {
  background: var(--fb-primary);
  border: none;
  color: var(--fb-text-light);
  padding: 12px 24px;
  border-radius: var(--fb-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--fb-transition);
}

.btn-fb-dark:hover {
  background: var(--fb-primary-light);
  color: var(--fb-text-light);
}

/* ========================================
   CARDS FLOWBEDS
   ======================================== */

.card-fb {
  background: var(--fb-bg-card);
  border-radius: var(--fb-radius-lg);
  box-shadow: var(--fb-shadow);
  border: 1px solid var(--fb-border);
  overflow: hidden;
  transition: var(--fb-transition);
}

.card-fb:hover {
  box-shadow: var(--fb-shadow-lg);
  transform: translateY(-2px);
}

.card-fb-header {
  background: var(--fb-gradient-dark);
  color: var(--fb-text-light);
  padding: 20px;
  border-bottom: 3px solid var(--fb-accent);
}

.card-fb-body {
  padding: 20px;
}

/* ========================================
   FORMULÁRIOS FLOWBEDS
   ======================================== */

.form-control-fb {
  border: 2px solid var(--fb-border);
  border-radius: var(--fb-radius);
  padding: 12px 16px;
  font-size: 15px;
  transition: var(--fb-transition);
  background: var(--fb-bg-card);
  color: var(--fb-text-primary);
}

.form-control-fb:focus {
  border-color: var(--fb-accent);
  box-shadow: 0 0 0 3px rgba(50, 205, 153, 0.15);
  outline: none;
}

.form-control-fb::placeholder {
  color: var(--fb-text-muted);
}

.form-label-fb {
  font-weight: 600;
  color: var(--fb-text-primary);
  margin-bottom: 8px;
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================
   BADGES E STATUS
   ======================================== */

.badge-fb {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--fb-radius-full);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-fb-success {
  background: var(--fb-success-bg);
  color: var(--fb-success);
}

.badge-fb-warning {
  background: var(--fb-warning-bg);
  color: var(--fb-warning);
}

.badge-fb-danger {
  background: var(--fb-danger-bg);
  color: var(--fb-danger);
}

.badge-fb-info {
  background: var(--fb-info-bg);
  color: var(--fb-info);
}

.badge-fb-primary {
  background: var(--fb-gradient);
  color: var(--fb-text-light);
}

/* ========================================
   HEADER / NAVBAR FLOWBEDS
   ======================================== */

.navbar-fb {
  background: var(--fb-gradient-dark);
  padding: 15px 20px;
  box-shadow: var(--fb-shadow-lg);
}

.navbar-fb-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fb-text-light);
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
}

.navbar-fb-brand img {
  height: 40px;
  width: auto;
}

.navbar-fb-link {
  color: var(--fb-gray-400);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--fb-radius);
  transition: var(--fb-transition);
}

.navbar-fb-link:hover,
.navbar-fb-link.active {
  color: var(--fb-text-light);
  background: rgba(50, 205, 153, 0.15);
}

/* ========================================
   SIDEBAR FLOWBEDS (Admin)
   ======================================== */

.sidebar-fb {
  background: var(--fb-primary);
  min-height: 100vh;
  padding: 20px 0;
}

.sidebar-fb-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-fb-item {
  border-left: 3px solid transparent;
  transition: var(--fb-transition);
}

.sidebar-fb-item:hover,
.sidebar-fb-item.active {
  background: rgba(50, 205, 153, 0.1);
  border-left-color: var(--fb-accent);
}

.sidebar-fb-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--fb-gray-400);
  text-decoration: none;
  font-weight: 500;
  transition: var(--fb-transition);
}

.sidebar-fb-link:hover,
.sidebar-fb-item.active .sidebar-fb-link {
  color: var(--fb-text-light);
}

.sidebar-fb-link i {
  width: 20px;
  text-align: center;
  color: var(--fb-accent);
}

/* ========================================
   TABELAS FLOWBEDS
   ======================================== */

.table-fb {
  width: 100%;
  border-collapse: collapse;
  background: var(--fb-bg-card);
  border-radius: var(--fb-radius-lg);
  overflow: hidden;
  box-shadow: var(--fb-shadow);
}

.table-fb thead {
  background: var(--fb-gradient-dark);
  color: var(--fb-text-light);
}

.table-fb th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.table-fb td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--fb-border);
  color: var(--fb-text-primary);
}

.table-fb tbody tr:hover {
  background: var(--fb-gray-100);
}

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

/* ========================================
   CALENDÁRIO DE RESERVAS
   ======================================== */

.calendar-fb-header {
  background: var(--fb-gradient);
  color: var(--fb-text-light);
  padding: 15px 20px;
  border-radius: var(--fb-radius) var(--fb-radius) 0 0;
  font-weight: 600;
  text-align: center;
}

.calendar-fb-day {
  background: var(--fb-bg-card);
  border: 1px solid var(--fb-border);
  padding: 10px;
  text-align: center;
  transition: var(--fb-transition);
  cursor: pointer;
}

.calendar-fb-day:hover {
  background: var(--fb-accent-light);
  border-color: var(--fb-accent);
}

.calendar-fb-day.selected {
  background: var(--fb-accent);
  color: var(--fb-text-light);
  border-color: var(--fb-accent);
}

.calendar-fb-day.disabled {
  background: var(--fb-gray-200);
  color: var(--fb-text-muted);
  cursor: not-allowed;
}

/* ========================================
   ALERTAS E NOTIFICAÇÕES
   ======================================== */

.alert-fb {
  padding: 16px 20px;
  border-radius: var(--fb-radius);
  border-left: 4px solid;
  margin-bottom: 16px;
}

.alert-fb-success {
  background: var(--fb-success-bg);
  border-left-color: var(--fb-success);
  color: #0d7d5f;
}

.alert-fb-warning {
  background: var(--fb-warning-bg);
  border-left-color: var(--fb-warning);
  color: #b8860b;
}

.alert-fb-danger {
  background: var(--fb-danger-bg);
  border-left-color: var(--fb-danger);
  color: #c53030;
}

.alert-fb-info {
  background: var(--fb-info-bg);
  border-left-color: var(--fb-info);
  color: #2b6cb0;
}

/* ========================================
   LOADING / SPINNER
   ======================================== */

.spinner-fb {
  width: 40px;
  height: 40px;
  border: 4px solid var(--fb-gray-300);
  border-top-color: var(--fb-accent);
  border-radius: 50%;
  animation: fb-spin 1s linear infinite;
}

@keyframes fb-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   PREÇOS E VALORES
   ======================================== */

.price-fb {
  font-size: 2rem;
  font-weight: 700;
  background: var(--fb-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-fb-small {
  font-size: 0.5em;
  font-weight: 400;
  -webkit-text-fill-color: var(--fb-text-secondary);
}

/* ========================================
   STEPS / WIZARD
   ======================================== */

.steps-fb {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.step-fb {
  flex: 1;
  text-align: center;
  position: relative;
}

.step-fb::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  width: 100%;
  height: 3px;
  background: var(--fb-gray-300);
}

.step-fb:last-child::after {
  display: none;
}

.step-fb.active::after,
.step-fb.completed::after {
  background: var(--fb-accent);
}

.step-fb-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--fb-gray-300);
  color: var(--fb-gray-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.step-fb.active .step-fb-number,
.step-fb.completed .step-fb-number {
  background: var(--fb-gradient);
  color: var(--fb-text-light);
}

.step-fb-label {
  font-size: 13px;
  color: var(--fb-text-secondary);
  font-weight: 500;
}

.step-fb.active .step-fb-label {
  color: var(--fb-text-primary);
}

/* ========================================
   FOOTER FLOWBEDS
   ======================================== */

.footer-fb {
  background: var(--fb-primary);
  color: var(--fb-gray-400);
  padding: 40px 0;
}

.footer-fb-brand {
  color: var(--fb-text-light);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.footer-fb a {
  color: var(--fb-gray-400);
  text-decoration: none;
  transition: var(--fb-transition);
}

.footer-fb a:hover {
  color: var(--fb-accent);
}

.footer-fb-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-fb-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fb-text-light);
  transition: var(--fb-transition);
}

.footer-fb-social a:hover {
  background: var(--fb-accent);
  transform: translateY(-3px);
}

/* ========================================
   UTILIDADES
   ======================================== */

.text-fb-gradient {
  background: var(--fb-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-fb-gradient {
  background: var(--fb-gradient);
}

.bg-fb-dark {
  background: var(--fb-primary);
}

.border-fb-accent {
  border-color: var(--fb-accent) !important;
}

.text-fb-accent {
  color: var(--fb-accent) !important;
}

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

@media (max-width: 768px) {
  .steps-fb {
    flex-direction: column;
    gap: 20px;
  }

  .step-fb::after {
    display: none;
  }

  .card-fb-header,
  .card-fb-body {
    padding: 15px;
  }
}
