/* ========================================
   DESIGN SYSTEM - BARBEARIA MODERNA
   ======================================== */

:root {
  /* Cores Principais */
  --primary: #2C3E50;
  --primary-light: #34495E;
  --primary-dark: #1A252F;
  --secondary: #E67E22;
  --secondary-light: #F39C12;
  --accent: #3498DB;
  
  /* Cores Neutras */
  --dark: #1A1A1A;
  --gray-900: #2D3748;
  --gray-700: #4A5568;
  --gray-500: #718096;
  --gray-300: #CBD5E0;
  --gray-100: #F7FAFC;
  --light: #FFFFFF;
  
  /* Feedback */
  --success: #27AE60;
  --warning: #F39C12;
  --danger: #E74C3C;
  --info: #3498DB;
  
  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Transições */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
  
  /* Bordas */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* ========================================
   BOTÕES MODERNOS
   ======================================== */

.btn-modern {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-modern:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-primary-modern {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
}

.btn-secondary-modern {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  color: white;
}

.btn-success-modern {
  background: linear-gradient(135deg, var(--success) 0%, #2ECC71 100%);
  color: white;
}

.btn-outline-modern {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline-modern:hover {
  background: var(--primary);
  color: white;
}

/* ========================================
   CARDS MODERNOS
   ======================================== */

.card-modern {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all var(--transition-base);
}

.card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-modern-flat {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.card-header-modern {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gray-100);
}

/* ========================================
   INPUTS FLUTUANTES
   ======================================== */

.form-floating-modern {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-floating-modern input,
.form-floating-modern select,
.form-floating-modern textarea {
  width: 100%;
  padding: 1rem 0.75rem 0.5rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all var(--transition-base);
  background: transparent;
}

.form-floating-modern input:focus,
.form-floating-modern select:focus,
.form-floating-modern textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.form-floating-modern label {
  position: absolute;
  left: 0.75rem;
  top: 1rem;
  color: var(--gray-500);
  transition: all var(--transition-fast);
  pointer-events: none;
  background: white;
  padding: 0 0.25rem;
}

.form-floating-modern input:focus + label,
.form-floating-modern input:not(:placeholder-shown) + label,
.form-floating-modern select:focus + label,
.form-floating-modern select:not([value=""]) + label,
.form-floating-modern textarea:focus + label,
.form-floating-modern textarea:not(:placeholder-shown) + label {
  top: -0.5rem;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

/* ========================================
   LOADING SKELETON
   ======================================== */

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-title {
  height: 1.5rem;
  width: 60%;
  margin-bottom: 1rem;
}

.skeleton-card {
  height: 200px;
  width: 100%;
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  max-width: 400px;
}

.toast {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideIn 0.3s ease-out;
  border-left: 4px solid var(--info);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }
.toast-info { border-left-color: var(--info); }

.toast-icon {
  font-size: 1.5rem;
  font-weight: bold;
}

.toast-message {
  flex: 1;
  font-size: 0.9375rem;
}

/* ========================================
   BADGES E TAGS
   ======================================== */

.badge-modern {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary { background: var(--primary); color: white; }
.badge-success { background: var(--success); color: white; }
.badge-warning { background: var(--warning); color: white; }
.badge-danger { background: var(--danger); color: white; }
.badge-info { background: var(--info); color: white; }

/* ========================================
   UTILITÁRIOS
   ======================================== */

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted { color: var(--gray-500) !important; }

.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-light { background-color: var(--gray-100) !important; }

.rounded-modern { border-radius: var(--radius-md) !important; }
.rounded-lg-modern { border-radius: var(--radius-lg) !important; }

.shadow-modern { box-shadow: var(--shadow-md) !important; }
.shadow-lg-modern { box-shadow: var(--shadow-lg) !important; }

/* ========================================
   ANIMAÇÕES
   ======================================== */

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-up {
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

@media (max-width: 768px) {
  .toast-container {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
  
  .btn-modern {
    width: 100%;
  }
  
  .card-modern {
    padding: 1rem;
  }
}
