/* Enhanced Professional Components for MT5 Trading Platform */

/* Professional Feature Cards */
.feature-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 1.8rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(208, 216, 230, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.feature-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  color: var(--primary-color);
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.feature-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Dashboard Button */
.dashboard-btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  text-align: center;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  margin: 0.5rem 0.25rem;
}

.dashboard-btn.primary {
  background-color: var(--primary-color);
  color: white;
}

.dashboard-btn.success {
  background-color: var(--success-color);
  color: white;
}

.dashboard-btn.warning {
  background-color: var(--warning-color);
  color: #212529;
}

.dashboard-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  filter: brightness(105%);
}

/* Professional Table Styles */
.dashboard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 2rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.dashboard-table th {
  background-color: var(--header-bg);
  color: white;
  font-weight: 600;
  padding: 1rem;
  text-align: left;
}

.dashboard-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
  background-color: var(--card-bg);
}

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

.dashboard-table tr:hover td {
  background-color: rgba(44, 65, 89, 0.03);
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  min-width: 80px;
}

.status-badge.active {
  background-color: var(--success-color);
  color: white;
}

.status-badge.inactive {
  background-color: var(--danger-color);
  color: white;
}

.status-badge.pending {
  background-color: var(--warning-color);
  color: #212529;
}

/* Status Background Colors */
.status-success-bg {
  background-color: rgba(var(--success-color-rgb), 0.1);
}

.status-danger-bg {
  background-color: rgba(var(--danger-color-rgb), 0.1);
}

.status-pending-bg {
  background-color: rgba(var(--warning-color-rgb), 0.1);
}

/* Animations */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Form Styling */
.form-control {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--input-border);
  background-color: var(--input-bg);
  color: var(--text-color);
  transition: all 0.2s ease;
  box-shadow: var(--input-shadow);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(44, 65, 89, 0.15);
  outline: none;
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

/* Section Dividers */
.section-divider {
  height: 3px;
  background: var(--section-divider);
  border-radius: 3px;
  margin: 2.5rem auto;
  width: 80%;
  max-width: 150px;
  opacity: 0.8;
  position: relative;
  overflow: hidden;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  100% { left: 100%; }
}

.section-divider.centered {
  margin-left: auto;
  margin-right: auto;
}

/* Trust Badge */
.trust-badge {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 3px 10px rgba(44, 65, 89, 0.2);
  letter-spacing: 0.02em;
}

/* Home Hero Section */
.home-hero {
  background: linear-gradient(120deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #fff;
  padding: 60px 0 40px 0;
  text-align: center;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 8px 32px rgba(44, 65, 89, 0.15);
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 80%);
  animation: rotate 30s linear infinite;
}

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

.home-hero h1 {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 0.4em;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
}

.home-hero p {
  font-size: 1.25em;
  opacity: 0.93;
  margin-bottom: 1.7em;
  position: relative;
  z-index: 1;
}

.home-cta-btn {
  background: #fff;
  color: var(--primary-color);
  font-weight: 600;
  border-radius: 30px;
  padding: 0.8em 2.2em;
  font-size: 1.15em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border: none;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 1em;
}

.home-cta-btn:hover {
  background: var(--secondary-color);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.features-section {
  padding: 60px 0;
  background-color: var(--body-bg);
}

.features-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin: 40px 0;
}

/* Testimonials */
.testimonials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin: 40px 0;
}

.testimonial {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  flex: 1 1 250px;
  max-width: 320px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(208, 216, 230, 0.1);
  transition: all 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.testimonial .icon {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 0.8em;
}

.testimonial .text {
  font-size: 1.08em;
  margin-bottom: 1.2em;
  color: var(--text-color);
  flex-grow: 1;
}

.testimonial .author {
  font-weight: 600;
  color: var(--primary-color);
  align-self: flex-end;
}

/* How It Works Section */
.how-section {
  background-color: var(--card-bg);
  padding: 60px 0;
  text-align: center;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}

.how-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 40px 0;
}

.how-step {
  background-color: var(--body-bg);
  border-radius: 16px;
  padding: 24px;
  min-width: 180px;
  max-width: 220px;
  flex: 1 1 180px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(208, 216, 230, 0.1);
}

.how-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.how-step .icon {
  font-size: 2em;
  color: var(--primary-color);
  margin-bottom: 0.8em;
}

/* Section Headings */
.section-heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
  text-align: center;
}

.section-heading:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .features-list, 
  .how-steps, 
  .testimonials-list { 
    flex-direction: column; 
    align-items: center; 
  }
  
  .home-hero h1 {
    font-size: 2.2em;
  }
  
  .home-hero p {
    font-size: 1.1em;
  }
}
