/* Estilos principais do CapitalGrow Plus */

/* Variáveis CSS */
:root {
  --primary-color: #0056b3;
  --secondary-color: #28a745;
  --accent-color: #17a2b8;
  --dark-color: #003366;
  --light-color: #f8f9fa;
  --text-color: #333333;
  --text-light: #6c757d;
  --border-color: #dee2e6;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 4px;
}

/* Reset e estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f5f7fa;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--dark-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Botões */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  text-align: center;
}

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

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

.btn-login {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

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

.btn-large {
  padding: 12px 30px;
  font-size: 1.1rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Header e navegação */
.header {
  background-color: white;
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
}

.logo img {
  height: 40px;
}

.main-nav ul {
  display: flex;
}

.main-nav li {
  margin-left: 20px;
}

.main-nav a {
  color: var(--text-color);
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--primary-color);
}

.auth-buttons {
  display: flex;
  gap: 10px;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 2px 0;
  transition: var(--transition);
}

/* Hero section */
.hero {
  padding: 120px 0 80px;
  background-color: var(--light-color);
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-light);
}

.hero-image {
  flex: 1;
}

/* Seções gerais */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
  color: var(--dark-color);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 15px auto 0;
}

/* Features */
.features {
  background-color: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  text-align: center;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  margin-bottom: 20px;
}

.feature-icon img {
  width: 80px;
  height: 80px;
}

.feature-card h3 {
  margin-bottom: 15px;
  color: var(--dark-color);
}

/* Dashboard Preview */
.dashboard-preview {
  background-color: #f5f7fa;
}

.dashboard-tabs {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tab-buttons {
  display: flex;
  background-color: var(--dark-color);
}

.tab-btn {
  padding: 15px 25px;
  background-color: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.tab-btn.active {
  background-color: var(--primary-color);
}

.tab-content {
  display: none;
  padding: 30px;
}

.tab-content.active {
  display: block;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.metric-card {
  background-color: white;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.metric-card h4 {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.metric-change {
  font-size: 0.9rem;
}

.positive {
  color: var(--secondary-color);
}

.negative {
  color: #dc3545;
}

.chart-container {
  background-color: white;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.chart-container h4 {
  margin-bottom: 15px;
}

.chart-placeholder {
  height: 300px;
  background-color: #f8f9fa;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-demo {
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #e9f5ff 0%, #e9f5ff 20%, #d1e9ff 20%, #d1e9ff 40%, #b8dcff 40%, #b8dcff 65%, #9fd0ff 65%, #9fd0ff 75%, #86c3ff 75%, #86c3ff 100%);
  position: relative;
}

.chart-demo::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--secondary-color);
  transform: rotate(15deg);
}

/* Portfolio */
.portfolio-allocation {
  margin-bottom: 30px;
}

.allocation-chart {
  height: 200px;
  margin-bottom: 20px;
}

.pie-chart-demo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(
    var(--primary-color) 0% 45%,
    var(--secondary-color) 45% 75%,
    var(--accent-color) 75% 90%,
    #ffc107 90% 100%
  );
  margin: 0 auto;
}

.allocation-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.legend-item {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.color-box {
  width: 15px;
  height: 15px;
  margin-right: 5px;
  border-radius: 3px;
}

.color-1 {
  background-color: var(--primary-color);
}

.color-2 {
  background-color: var(--secondary-color);
}

.color-3 {
  background-color: var(--accent-color);
}

.color-4 {
  background-color: #ffc107;
}

/* Tabelas */
.assets-table,
.transactions-table {
  width: 100%;
  border-collapse: collapse;
}

.assets-table th,
.assets-table td,
.transactions-table th,
.transactions-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.assets-table th,
.transactions-table th {
  background-color: #f8f9fa;
  font-weight: 500;
}

/* Affiliate */
.affiliate {
  background-color: white;
}

.affiliate-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.affiliate-info {
  flex: 1;
}

.affiliate-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.affiliate-info p {
  margin-bottom: 20px;
}

.affiliate-info ul {
  margin-bottom: 30px;
  padding-left: 20px;
}

.affiliate-info li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.affiliate-info li::before {
  content: '✓';
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.affiliate-stats {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-card {
  background-color: #f8f9fa;
  padding: 25px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-card h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text-light);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-color);
}

/* Content Automation */
.content-automation {
  background-color: #f5f7fa;
}

.content-types {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.content-type {
  padding: 12px 25px;
  background-color: white;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.content-type:first-child {
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.content-type:last-child {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.content-type.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.content-sample {
  display: none;
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.content-sample.active {
  display: block;
}

.content-sample h3 {
  margin-bottom: 15px;
  color: var(--dark-color);
}

.content-sample p {
  margin-bottom: 25px;
}

.content-preview {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
}

.content-preview h4 {
  margin-bottom: 15px;
  color: var(--dark-color);
}

.preview-text {
  margin-bottom: 15px;
  line-height: 1.7;
}

.preview-stats {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Social Post */
.social-preview {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: var(--border-radius);
}

.social-post {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 15px;
}

.post-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.post-profile {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  margin-right: 10px;
}

.post-name {
  font-weight: 500;
  margin-bottom: 3px;
}

.post-date {
  font-size: 0.8rem;
  color: var(--text-light);
}

.post-content {
  margin-bottom: 15px;
  line-height: 1.5;
}

.post-stats {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Newsletter */
.newsletter-preview {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: var(--border-radius);
}

.newsletter-header {
  margin-bottom: 20px;
}

.newsletter-header h4 {
  margin-bottom: 5px;
  color: var(--dark-color);
}

.newsletter-date {
  font-size: 0.85rem;
  color: var(--text-light);
}

.newsletter-content {
  margin-bottom: 20px;
  line-height: 1.7;
}

.newsletter-sections {
  margin-top: 15px;
}

.newsletter-sections ul {
  padding-left: 20px;
  list-style-type: disc;
}

.newsletter-sections li {
  margin-bottom: 5px;
}

.newsletter-stats {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Testimonials */
.testimonials {
  background-color: white;
}

.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  display: none;
}

.testimonial.active {
  display: block;
}

.testimonial-content {
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  margin-right: 15px;
}

.author-info h4 {
  margin-bottom: 5px;
}

.author-info p {
  margin: 0;
  font-size: 0.9rem;
  font-style: normal;
  color: var(--text-light);
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.control-prev,
.control-next {
  background-color: transparent;
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.control-prev:hover,
.control-next:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.slider-dots {
  display: flex;
  gap: 10px;
  margin: 0 20px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--primary-color);
}

/* CTA */
.cta {
  background-color: var(--dark-color);
  color: white;
  text-align: center;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  background-color: #f8f9fa;
  padding: 80px 0 30px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 35px;
}

.footer-column h4 {
  margin-bottom: 20px;
  color: var(--dark-color);
}

.footer-column ul li {
  margin-bottom: 10px;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--dark-color);
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-light);
}

.footer-links {
  display: flex;
  gap: 20px;
}

/* Modais */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
}

.modal h2 {
  margin-bottom: 20px;
  color: var(--dark-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-label input {
  width: auto;
}

.form-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.9rem;
}

.form-footer p {
  margin-bottom: 10px;
}

/* Responsividade */
@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
  }
  
  .affiliate-content {
    flex-direction: column;
  }
  
  .dashboard-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav,
  .auth-buttons {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .dashboard-metrics {
    grid-template-columns: 1fr;
  }
  
  .affiliate-stats {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .feature-card {
    padding: 20px;
  }
  
  .tab-btn {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  .content-type {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}
