/* Sistema de Gestão de Cashback - Estilos Personalizados */

:root {
    /* Paleta de cores principal */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --danger-color: #ef4444;
    --warning-color: #f97316;
    
    /* Cores neutras */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-success: linear-gradient(135deg, var(--secondary-color) 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, var(--accent-color) 0%, #d97706 100%);
    
    /* 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), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Bordas */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
  }
  
  /* Reset e configurações globais */
  * {
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* Tipografia */
  .text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .font-weight-600 {
    font-weight: 600;
  }
  
  .font-weight-700 {
    font-weight: 700;
  }
  
  /* Componentes personalizados */
  .card-modern {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: none;
    transition: all 0.3s ease;
  }
  
  .card-modern:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
  }
  
  .btn-gradient-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    padding: 12px 24px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
  }
  
  .btn-gradient-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
  }
  
  .btn-gradient-success {
    background: var(--gradient-success);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    padding: 12px 24px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
  }
  
  .btn-gradient-success:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
  }
  
  /* Formulários */
  .form-control-modern {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: white;
  }
  
  .form-control-modern:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
  }
  
  .form-control-modern::placeholder {
    color: var(--gray-400);
  }
  
  /* Navegação mobile */
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
  }
  
  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    text-decoration: none;
    color: var(--gray-500);
    transition: all 0.3s ease;
    border-radius: var(--border-radius-sm);
  }
  
  .mobile-nav-item.active {
    color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.1);
  }
  
  .mobile-nav-item:hover {
    color: var(--primary-color);
    text-decoration: none;
  }
  
  .mobile-nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
  }
  
  .mobile-nav-text {
    font-size: 12px;
    font-weight: 500;
  }
  
  /* Cards de cashback */
  .cashback-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
  }
  
  .cashback-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
  }
  
  .cashback-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
  }
  
  .cashback-source {
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
  }
  
  .cashback-date {
    font-size: 14px;
    color: var(--gray-600);
  }
  
  /* Status badges */
  .status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .status-pending {
    background-color: rgba(249, 115, 22, 0.1);
    color: var(--warning-color);
  }
  
  .status-approved {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--secondary-color);
  }
  
  .status-cancelled {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
  }
  
  /* Animações */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .fade-in-up {
    animation: fadeInUp 0.6s ease-out;
  }
  
  @keyframes pulse {
    0%, 100% {
      opacity: 1;
    }
    50% {
      opacity: 0.5;
    }
  }
  
  .pulse {
    animation: pulse 2s infinite;
  }
  
  /* Responsividade */
  @media (max-width: 576px) {
    .container-fluid {
      padding-left: 16px;
      padding-right: 16px;
    }
    
    .card-modern {
      margin-bottom: 16px;
    }
    
    .btn-gradient-primary,
    .btn-gradient-success {
      width: 100%;
      padding: 14px 24px;
      font-size: 16px;
    }
    
    .form-control-modern {
      font-size: 16px; /* Evita zoom no iOS */
    }
  }
  
  /* Utilitários */
  .text-primary-custom {
    color: var(--primary-color) !important;
  }
  
  .text-secondary-custom {
    color: var(--secondary-color) !important;
  }
  
  .bg-gradient-primary {
    background: var(--gradient-primary) !important;
  }
  
  .bg-gradient-success {
    background: var(--gradient-success) !important;
  }
  
  .border-radius-custom {
    border-radius: var(--border-radius) !important;
  }
  
  .shadow-custom {
    box-shadow: var(--shadow-md) !important;
  }
  
  /* Loading states */
  .loading-skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
  }
  
  @keyframes loading {
    0% {
      background-position: 200% 0;
    }
    100% {
      background-position: -200% 0;
    }
  }
  
  /* Espaçamento para navegação mobile */
  .pb-mobile-nav {
    padding-bottom: 80px;
  }
  
  /* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.header {
    background: white;
    padding: 16px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-greeting {
    flex: 1;
}

.greeting-text {
    font-size: 14px;
    color: var(--gray-600);
    margin: 0;
}

.user-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.notification-btn {
    position: relative;
    background: var(--gray-100);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.notification-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--danger-color);
    border-radius: 50%;
}

.profile-btn {
    background: var(--gradient-primary);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.profile-btn:hover {
    transform: scale(1.05);
    color: white;
}

/* Mobile navigation */
  .mobile-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: white;
      border-top: 1px solid var(--gray-200);
      padding: 8px 0;
      z-index: 1000;
      box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
  }
  
  .mobile-nav-container {
      display: flex;
      justify-content: space-around;
      align-items: center;
      max-width: 500px;
      margin: 0 auto;
  }
  
  .mobile-nav-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 8px 12px;
      text-decoration: none;
      color: var(--gray-500);
      transition: all 0.3s ease;
      border-radius: 12px;
      min-width: 60px;
  }
  
  .mobile-nav-item.active {
      color: var(--primary-color);
      background-color: rgba(99, 102, 241, 0.1);
  }
  
  .mobile-nav-item:hover {
      color: var(--primary-color);
      text-decoration: none;
  }
  
  .mobile-nav-icon {
      font-size: 20px;
      margin-bottom: 4px;
  }
  
  .mobile-nav-text {
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
  }

  .main-content {
      padding: 20px 0 120px 0;
  }
  
  .text-primary {
      color: var(--primary-color) !important;
  }

  .btn-primary {
      background-color: var(--primary-color);
      border-color: var(--primary-color);
      color: white;
  }

  .btn-primary:hover {
      background-color: var(--primary-dark);
      border-color: var(--primary-dark);
      color: white;
  }

.back-btn {
    background: var(--gray-100);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}