/* CloudNota - CSS Customizado para páginas de Auth e Dashboard */

:root {
  --cn-primary: #4361ee;
  --cn-primary-dark: #3651d4;
  --cn-secondary: #7209b7;
  --cn-success: #10b981;
  --cn-warning: #f59e0b;
  --cn-danger: #ef4444;
  --cn-dark: #1e293b;
  --cn-light: #f8fafc;
  --cn-gray: #64748b;
}

/* Auth Pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.auth-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 40px;
  width: 100%;
  max-width: 450px;
}

.auth-card .logo {
  text-align: center;
  margin-bottom: 30px;
}

.auth-card .logo img {
  max-height: 50px;
}

.auth-card h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--cn-dark);
  margin-bottom: 10px;
  text-align: center;
}

.auth-card .subtitle {
  color: var(--cn-gray);
  text-align: center;
  margin-bottom: 30px;
}

.auth-card .form-label {
  font-weight: 500;
  color: var(--cn-dark);
  margin-bottom: 8px;
}

.auth-card .form-control {
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.auth-card .form-control:focus {
  border-color: var(--cn-primary);
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.auth-card .form-control.is-invalid {
  border-color: var(--cn-danger);
}

.auth-card .invalid-feedback {
  font-size: 13px;
}

.auth-card .btn-primary {
  background: var(--cn-primary);
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 16px;
  width: 100%;
  transition: all 0.3s ease;
}

.auth-card .btn-primary:hover {
  background: var(--cn-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.auth-card .btn-primary:disabled {
  opacity: 0.7;
  transform: none;
}

.auth-card .auth-links {
  text-align: center;
  margin-top: 20px;
}

.auth-card .auth-links a {
  color: var(--cn-primary);
  text-decoration: none;
  font-weight: 500;
}

.auth-card .auth-links a:hover {
  text-decoration: underline;
}

.auth-card .divider {
  display: flex;
  align-items: center;
  margin: 25px 0;
}

.auth-card .divider::before,
.auth-card .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.auth-card .divider span {
  padding: 0 15px;
  color: var(--cn-gray);
  font-size: 14px;
}

/* Password strength indicator */
.password-strength {
  height: 4px;
  border-radius: 2px;
  margin-top: 8px;
  transition: all 0.3s ease;
}

.password-strength.weak { background: var(--cn-danger); width: 33%; }
.password-strength.medium { background: var(--cn-warning); width: 66%; }
.password-strength.strong { background: var(--cn-success); width: 100%; }

/* Success/Error pages */
.status-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 40px;
}

.status-icon.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--cn-success);
}

.status-icon.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--cn-danger);
}

.status-icon.pending {
  background: rgba(245, 158, 11, 0.1);
  color: var(--cn-warning);
}

/* Dashboard Layout */
.dashboard-layout {
  min-height: 100vh;
  background: #f1f5f9;
}

.dashboard-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: #fff;
  border-right: 1px solid #e2e8f0;
  padding: 20px 0;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.dashboard-sidebar .logo {
  padding: 0 20px 20px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.dashboard-sidebar .logo img {
  max-height: 40px;
}

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

.dashboard-sidebar .nav-item {
  margin-bottom: 5px;
}

.dashboard-sidebar .nav-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--cn-gray);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.dashboard-sidebar .nav-link i {
  width: 24px;
  margin-right: 12px;
  font-size: 18px;
}

.dashboard-sidebar .nav-link:hover,
.dashboard-sidebar .nav-link.active {
  background: rgba(67, 97, 238, 0.05);
  color: var(--cn-primary);
  border-left-color: var(--cn-primary);
}

.dashboard-sidebar .user-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.dashboard-sidebar .user-info .user-name {
  font-weight: 600;
  color: var(--cn-dark);
}

.dashboard-sidebar .user-info .user-email {
  font-size: 13px;
  color: var(--cn-gray);
}

.dashboard-main {
  margin-left: 280px;
  padding: 30px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.dashboard-header h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--cn-dark);
  margin: 0;
  font-size: 28px;
}

/* Dashboard Cards */
.dash-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
}

.dash-card .card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--cn-dark);
  margin-bottom: 20px;
  font-size: 18px;
}

.stat-card {
  text-align: center;
}

.stat-card .stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 24px;
}

.stat-card .stat-icon.primary { background: rgba(67, 97, 238, 0.1); color: var(--cn-primary); }
.stat-card .stat-icon.success { background: rgba(16, 185, 129, 0.1); color: var(--cn-success); }
.stat-card .stat-icon.warning { background: rgba(245, 158, 11, 0.1); color: var(--cn-warning); }

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--cn-dark);
}

.stat-card .stat-label {
  color: var(--cn-gray);
  font-size: 14px;
}

/* Planos Cards */
.plano-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  height: 100%;
}

.plano-card:hover {
  border-color: var(--cn-primary);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(67, 97, 238, 0.15);
}

.plano-card.featured {
  border-color: var(--cn-primary);
  position: relative;
}

.plano-card.featured::before {
  content: 'Mais Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cn-primary);
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.plano-card .plano-nome {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--cn-dark);
  margin-bottom: 10px;
}

.plano-card .plano-preco {
  font-size: 36px;
  font-weight: 700;
  color: var(--cn-primary);
  margin-bottom: 5px;
}

.plano-card .plano-preco span {
  font-size: 16px;
  font-weight: 400;
  color: var(--cn-gray);
}

.plano-card .plano-descricao {
  color: var(--cn-gray);
  margin-bottom: 20px;
}

.plano-card .plano-recursos {
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
  text-align: left;
}

.plano-card .plano-recursos li {
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
}

.plano-card .plano-recursos li i {
  color: var(--cn-success);
  margin-right: 10px;
}

.plano-card .plano-recursos li.disabled {
  color: var(--cn-gray);
  text-decoration: line-through;
}

.plano-card .plano-recursos li.disabled i {
  color: var(--cn-gray);
}

.plano-card .btn-plano {
  width: 100%;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
}

/* Checkout */
.checkout-summary {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
}

.checkout-summary .line-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
}

.checkout-summary .line-item:last-child {
  border-bottom: none;
}

.checkout-summary .total {
  font-size: 20px;
  font-weight: 700;
  color: var(--cn-dark);
}

/* Pagamentos Table */
.table-pagamentos {
  width: 100%;
}

.table-pagamentos th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--cn-dark);
  padding: 12px;
  text-align: left;
}

.table-pagamentos td {
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.badge-status {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-status.pago { background: rgba(16, 185, 129, 0.1); color: var(--cn-success); }
.badge-status.pendente { background: rgba(245, 158, 11, 0.1); color: var(--cn-warning); }
.badge-status.cancelado { background: rgba(239, 68, 68, 0.1); color: var(--cn-danger); }

/* Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--cn-primary), var(--cn-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-gradient {
  background: linear-gradient(135deg, var(--cn-primary), var(--cn-secondary));
  border: none;
  color: #fff;
}

.btn-gradient:hover {
  opacity: 0.9;
  color: #fff;
}

/* Container do Card */
.whatsapp-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); /* Sombra suave moderna */
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.whatsapp-card:hover {
    transform: translateY(-5px); /* Leve flutuação ao passar o mouse */
}

/* Ícone Grande do Topo */
.icon-wrapper {
    width: 80px;
    height: 80px;
    background: #e6fffa; /* Fundo verde bem claro */
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #25D366; /* Verde WhatsApp */
    font-size: 2.5rem;
}

/* Botão Pulsante Moderno */
.btn-whatsapp-pulse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}

.btn-whatsapp-pulse:hover {
    background-color: #1ebc57;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.btn-whatsapp-pulse i {
    margin-right: 10px;
    font-size: 1.3rem;
}

.price-body ul li.recurso-off {
  opacity: .65;
  text-decoration: line-through;
}
.price-body ul li .recurso-icon{
  display:inline-block;
  width:18px;
  font-weight:700;
  margin-right:6px;
}
.price-body ul li .recurso-icon.on{ color:#16a34a; } /* verde */
.price-body ul li .recurso-icon.off{ color:#9ca3af; } /* cinza */

/* Animação de Pulso */
@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive */
@media (max-width: 991px) {
  .dashboard-sidebar {
    transform: translateX(-100%);
  }
  
  .dashboard-sidebar.active {
    transform: translateX(0);
  }
  
  .dashboard-main {
    margin-left: 0;
  }
  
  .mobile-toggle {
    display: block !important;
  }
}

@media (max-width: 576px) {
  .auth-card {
    padding: 30px 20px;
  }
  
  .plano-card {
    margin-bottom: 20px;
  }
}

/* Ajuste Mobile */
@media (max-width: 768px) {
    .whatsapp-card {
        padding: 2rem 1.5rem;
    }
    .btn-whatsapp-pulse {
        width: 100%; /* Botão full width no mobile */
        font-size: 1rem;
    }
}