/* Documentation Styles */
.docs-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  color: #fff;
}

.docs-header {
  text-align: center;
  margin-bottom: 3rem;
}

.docs-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f1c40f, #e67e22);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.docs-header p {
  font-size: 1.2rem;
  color: #bbb;
  max-width: 600px;
  margin: 0 auto;
}

/* Navigation */
.docs-nav {
  margin-bottom: 2rem;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  color: #f1c40f;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-back:hover {
  color: #e67e22;
}

/* Docs Grid */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.docs-card {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  border: 2px solid #f1c40f;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.docs-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(241, 196, 15, 0.3);
}

.docs-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.docs-card h3 {
  color: #f1c40f;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.docs-card p {
  color: #bbb;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.btn-docs {
  background: linear-gradient(135deg, #f1c40f, #e67e22);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease;
  display: inline-block;
}

.btn-docs:hover {
  transform: scale(1.05);
  color: #fff;
}

/* Documentation Sections */
.docs-section {
  margin-bottom: 4rem;
}

.docs-section h2 {
  color: #f1c40f;
  font-size: 2rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #f1c40f;
  padding-bottom: 0.5rem;
}

/* Info Boxes */
.info-box {
  background: linear-gradient(135deg, #3498db, #2980b9);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-box.success {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.info-box.warning {
  background: linear-gradient(135deg, #f39c12, #e67e22);
}

.info-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.info-content h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.info-content p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin: 0;
}

/* Step Cards */
.step-card {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1.5rem;
  border-left: 4px solid #f1c40f;
}

.step-number {
  background: linear-gradient(135deg, #f1c40f, #e67e22);
  color: #fff;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.step-content h3 {
  color: #f1c40f;
  margin-bottom: 1rem;
}

.step-content p {
  color: #bbb;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.step-content ul {
  color: #ccc;
  padding-left: 1.5rem;
}

.step-content li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.step-content a {
  color: #f1c40f;
  text-decoration: none;
}

.step-content a:hover {
  color: #e67e22;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid #f1c40f;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: #f1c40f;
  margin-bottom: 1rem;
}

.feature-card p {
  color: #bbb;
  line-height: 1.5;
}

/* Rate Table */
.rate-table {
  margin: 1.5rem 0;
  overflow-x: auto;
}

.rate-table table {
  width: 100%;
  background: rgba(44, 62, 80, 0.8);
  border-radius: 8px;
  overflow: hidden;
}

.rate-table th,
.rate-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #34495e;
}

.rate-table th {
  background: #f1c40f;
  color: #2c3e50;
  font-weight: 600;
}

.rate-table td {
  color: #fff;
}

.rate-table .highlighted {
  background: rgba(241, 196, 15, 0.1);
  border-left: 3px solid #f1c40f;
}

/* Premium row styling */
.rate-table table tr.premium {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
}

.rate-table table tr.premium td {
  border-color: #f1c40f;
  font-weight: bold;
}

.rate-table small {
  color: #bbb;
  font-style: italic;
}

.rate-table table td:nth-child(3) {
  font-size: 0.9rem;
  line-height: 1.4;
}

.rate-table table td:nth-child(3) br {
  margin-bottom: 0.2rem;
}

.rate-table table strong {
  color: #f1c40f;
  font-weight: 700;
}

/* Agent Benefits */
.agent-benefits {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 1.5rem;
}

.agent-benefits h3 {
  color: #fff;
  margin-bottom: 1rem;
}

.agent-benefits ul {
  list-style: none;
  padding: 0;
}

.agent-benefits li {
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* Tips Grid */
.tip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.tip-card {
  background: linear-gradient(135deg, #16a085, #1abc9c);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.tip-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.tip-card h3 {
  color: #fff;
  margin-bottom: 1rem;
}

.tip-card p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

/* FAQ */
.faq-list {
  max-width: 800px;
}

.faq-item {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid #f1c40f;
}

.faq-item h3 {
  color: #f1c40f;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.faq-item p {
  color: #bbb;
  line-height: 1.6;
  margin: 0;
}

/* Support Grid */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.support-card {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  border: 2px solid #f1c40f;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
}

.support-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.support-card h3 {
  color: #f1c40f;
  margin-bottom: 1rem;
}

.support-card p {
  color: #bbb;
  margin-bottom: 1.5rem;
}

.btn-support {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: inline-block;
}

.btn-support:hover {
  transform: scale(1.05);
  color: #fff;
}

/* Calculation Note Styles */
.calculation-note {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  border: 2px solid #f1c40f;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1rem 0;
}

.calculation-note h4 {
  color: #f1c40f;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.calculation-note ul {
  list-style: none;
  padding: 0;
}

.calculation-note li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #444;
  color: #ecf0f1;
}

.calculation-note li:last-child {
  border-bottom: none;
}

.calculation-note strong {
  color: #e74c3c;
}

/* Important Rule Styles */
.important-rule {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1rem 0;
  border-left: 5px solid #f1c40f;
}

.important-rule h4 {
  color: #f1c40f;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.important-rule p {
  color: #ecf0f1;
  margin-bottom: 0.5rem;
}

.important-rule p:last-child {
  margin-bottom: 0;
}

/* Enhanced Info Box Warning */
.info-box.warning {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  border-left: 5px solid #f39c12;
}

.info-box.warning .info-icon {
  color: #f39c12;
}

.info-box.warning h3 {
  color: #fff;
  font-weight: 700;
}

.info-box.warning p {
  color: #ecf0f1;
}

.info-box.warning strong {
  color: #f1c40f;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Example Box Styles */
.example-box {
  background: linear-gradient(135deg, #1a252f, #2c3e50);
  border: 2px solid #3498db;
  border-radius: 15px;
  padding: 2rem;
  margin: 1rem 0;
}

.example-box h4 {
  color: #3498db;
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.option-card {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  border-radius: 10px;
  padding: 1.5rem;
  border: 2px solid #7f8c8d;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.option-card:hover {
  transform: translateY(-5px);
  border-color: #3498db;
}

.option-card.recommended {
  border-color: #f1c40f;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  position: relative;
}

.option-card.recommended::before {
  content: "KHUYẾN NGHỊ";
  position: absolute;
  top: -10px;
  right: 10px;
  background: #e74c3c;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: bold;
}

.option-card h5 {
  color: #f1c40f;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1rem;
}

.option-card ul {
  list-style: none;
  padding: 0;
}

.option-card li {
  padding: 0.4rem 0;
  color: #ecf0f1;
  font-size: 0.9rem;
}

.option-card strong {
  color: #e74c3c;
}

.result-summary {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.result-summary p {
  margin: 0;
  font-size: 1.1rem;
  color: white;
}

.profit {
  color: #f1c40f;
  font-weight: bold;
  font-size: 1.2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.loss {
  color: #e74c3c;
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
  .docs-container {
    padding: 1rem;
  }

  .docs-header h1 {
    font-size: 2rem;
  }

  .docs-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-grid,
  .tip-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    flex-direction: column;
    text-align: center;
  }

  .rate-table {
    font-size: 0.9rem;
  }

  .rate-table th,
  .rate-table td {
    padding: 0.5rem;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .option-card {
    margin-bottom: 1rem;
  }
}
