/* Dashboard Specific Styles */

.ud-header {
  position: relative !important;
  top: 0 !important;
  background: #3056d3 !important;
  padding: 15px 0 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
  z-index: 999 !important;
}

.navbar-brand img {
  height: 40px !important;
}

.navbar-nav .nav-link {
  color: white !important;
}

.navbar-nav .btn {
  margin-left: 10px !important;
}

.dashboard-section {
  padding: 30px 0 60px 0;
  background-color: #f8f9fa;
  min-height: calc(100vh - 140px);
}

.dashboard-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  border: none;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.active {
  background-color: #28a745;
  animation: pulse-green 2s infinite;
}

.status-dot.inactive {
  background-color: #dc3545;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  border: none;
  transition: transform 0.3s ease;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}

.current-plan-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.current-plan-badge.basic {
  background: linear-gradient(135deg, #20c997, #17a2b8);
  color: white;
}

.current-plan-badge.pro {
  background: linear-gradient(135deg, #fd7e14, #e83e8c);
  color: white;
}

.current-plan-badge.pro_plus {
  background: linear-gradient(135deg, #6f42c1, #e83e8c);
  color: white;
}

.payment-item {
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.payment-item:last-child {
  border-bottom: none;
}

.action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn-launch {
  background: linear-gradient(135deg, #28a745, #20c997);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 25px;
  padding: 12px 30px;
  transition: all 0.3s ease;
}

.btn-launch:hover {
  background: linear-gradient(135deg, #20c997, #28a745);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  color: white;
}

.btn-upgrade {
  background: linear-gradient(135deg, #fd7e14, #e83e8c);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 25px;
  padding: 10px 25px;
  transition: all 0.3s ease;
}

.btn-upgrade:hover {
  background: linear-gradient(135deg, #e83e8c, #fd7e14);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(253, 126, 20, 0.3);
  color: white;
}

.subscription-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  border-left: 4px solid #3056d3;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.no-data-message {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
  font-style: italic;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3056d3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.alert-dashboard {
  border-radius: 10px;
  border: none;
  font-weight: 500;
}

.alert-dashboard.alert-info {
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.1), rgba(32, 201, 151, 0.1));
  color: #0c5460;
}

.alert-dashboard.alert-warning {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(253, 126, 20, 0.1));
  color: #856404;
}

.alert-dashboard.alert-success {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.1));
  color: #155724;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .dashboard-card {
    padding: 20px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .btn-launch,
  .btn-upgrade {
    width: 100%;
    text-align: center;
  }
}

/* Premium Modal Styles */
.premium-modal {
  border: none;
  border-radius: 20px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.premium-modal .modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: none;
}

.premium-modal .modal-dialog {
  max-width: 900px;
}

.premium-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-bottom: none;
  padding: 1.5rem 2rem 1.5rem;
  position: relative;
  text-align: center;
}

.premium-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.025em;
  color: white;
}

.premium-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.2) !important;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  opacity: 1 !important;
}

.premium-close:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  transform: scale(1.05);
}

.premium-close::before {
  content: "×";
  color: white !important;
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.premium-body {
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

/* Premium Plan Cards */
.premium-plan-card {
  background: white;
  border-radius: 20px;
  border: 2px solid #e2e8f0;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.premium-plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.15);
  border-color: #cbd5e0;
}

.premium-plan-card.featured {
  border-color: #667eea;
  box-shadow: 0 10px 30px -5px rgba(102, 126, 234, 0.25);
  transform: scale(1.05);
}

.premium-plan-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: 0 25px 50px -10px rgba(102, 126, 234, 0.3);
}

.popular-badge {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  padding: 8px 20px;
  border-radius: 0 0 12px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px -3px rgba(251, 191, 36, 0.4);
  z-index: 10;
}

.plan-header {
  padding: 1.5rem 1.5rem 1rem;
  text-align: center;
  position: relative;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.plan-price {
  margin-bottom: 0.75rem;
  line-height: 1;
}

.plan-price .currency {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
  vertical-align: top;
}

.plan-price .amount {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.05em;
}

.plan-price .period {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
}

.plan-description {
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
}

.plan-features {
  padding: 0.75rem 2rem 1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  color: #374151;
  font-size: 0.9rem;
  border-bottom: 1px solid #f1f5f9;
  margin-left: 0;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list i {
  color: #10b981;
  font-size: 1.1rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.plan-footer {
  padding: 0 2rem 1.5rem;
}

/* Premium Buttons */
.premium-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.025em;
  position: relative;
  overflow: hidden;
}

.btn-basic {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: #374151;
  border: 2px solid #d1d5db;
}

.btn-basic:hover {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.btn-pro {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 8px 20px -5px rgba(102, 126, 234, 0.4);
}

.btn-pro:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6b4190 100%);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(102, 126, 234, 0.5);
}

.btn-enterprise {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  box-shadow: 0 8px 20px -5px rgba(30, 41, 59, 0.4);
}

.btn-enterprise:hover {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(30, 41, 59, 0.5);
}

/* Premium Footer Section */
.premium-footer-section {
  margin-top: 1.5rem;
  padding-top: 1rem;
}

.features-link-wrapper {
  text-align: center;
  position: relative;
  margin-bottom: 0;
}

.separator-line {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #e2e8f0 50%, transparent 100%);
  margin-bottom: 1rem;
}

.premium-features-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
}

.premium-features-link:hover {
  background: rgba(102, 126, 234, 0.15);
  color: #5a6fd8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -5px rgba(102, 126, 234, 0.2);
}

@media (max-width: 768px) {
  .premium-modal .modal-dialog {
    max-width: 95%;
    margin: 1rem auto;
  }
  
  .premium-header {
    padding: 1.25rem 1rem 1.25rem;
  }
  
  .premium-body {
    padding: 1.5rem 1rem 1rem;
  }
  
  .premium-plan-card.featured {
    transform: none;
  }
  
  .premium-plan-card.featured:hover {
    transform: translateY(-4px);
  }
  
  .plan-price .amount {
    font-size: 2rem;
  }
}