/* Main Styles for Agent Guide Website */
:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --accent-color: #f39c12;
  --dark-color: #2c3e50;
  --light-color: #ecf0f1;
  --text-color: #333;
  --light-text: #fff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

/* Header Styles */
header {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.logo a {
  color: var(--light-text);
  text-decoration: none;
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--light-text);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

nav ul li a:hover {
  color: var(--accent-color);
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--light-color);
  min-width: 200px;
  box-shadow: var(--shadow);
  z-index: 1;
  border-radius: 4px;
}

.dropdown-content a {
  color: var(--text-color);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Mobile Navigation */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--light-text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--light-text);
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--light-text);
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.btn:hover {
  background-color: #e67e22;
  transform: translateY(-3px);
}

/* Main Content */
main {
  padding: 3rem 0;
}

.section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Images */
.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 8px;
}

/* Interactive Elements */
.accordion {
  margin-bottom: 1rem;
}

.accordion-header {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 1rem;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-content {
  background-color: #fff;
  padding: 1rem;
  display: none;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
}

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

.tabs {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.tab-button {
  background-color: #ddd;
  border: none;
  padding: 1rem 1.5rem;
  cursor: pointer;
  flex-grow: 1;
  transition: var(--transition);
}

.tab-button:hover {
  background-color: #ccc;
}

.tab-button.active {
  background-color: var(--primary-color);
  color: var(--light-text);
}

.tab-content {
  display: none;
  padding: 1.5rem;
  background-color: #fff;
  border: 1px solid #ddd;
}

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

/* Code Blocks */
.code-block {
  background-color: var(--dark-color);
  color: var(--light-text);
  padding: 1.5rem;
  border-radius: 4px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  margin: 1.5rem 0;
}

/* Progress Tracker */
.progress-tracker {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
  position: relative;
}

.progress-tracker::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 4px;
  width: 100%;
  background-color: #ddd;
  z-index: -1;
}

.progress-step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #ddd;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  position: relative;
}

.progress-step.active {
  background-color: var(--primary-color);
  color: var(--light-text);
}

.progress-step.completed {
  background-color: var(--secondary-color);
  color: var(--light-text);
}

/* Quiz Styles */
.quiz-container {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin: 2rem 0;
}

.quiz-question {
  margin-bottom: 1.5rem;
}

.quiz-options {
  list-style: none;
}

.quiz-option {
  background-color: #f1f1f1;
  padding: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.quiz-option:hover {
  background-color: #e0e0e0;
}

.quiz-option.selected {
  background-color: var(--primary-color);
  color: var(--light-text);
}

.quiz-feedback {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 4px;
  display: none;
}

.quiz-feedback.correct {
  background-color: var(--secondary-color);
  color: var(--light-text);
}

.quiz-feedback.incorrect {
  background-color: #e74c3c;
  color: var(--light-text);
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--light-text);
  padding: 2rem 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 1rem 0;
}

.footer-links li {
  margin: 0 1rem;
}

.footer-links a {
  color: var(--light-text);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  list-style: none;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.breadcrumbs li {
  margin-right: 0.5rem;
}

.breadcrumbs li:after {
  content: '>';
  margin-left: 0.5rem;
}

.breadcrumbs li:last-child:after {
  content: '';
}

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

/* Navigation Buttons */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

/* Sidebar */
.sidebar {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  top: 100px;
}

.sidebar-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 0.5rem;
}

.sidebar-nav a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

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

.sidebar-nav a.active {
  color: var(--primary-color);
  font-weight: bold;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  background-color: var(--dark-color);
  color: var(--light-text);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  margin-left: auto;
  display: block;
  margin-bottom: 1.5rem;
}

/* Glossary */
.glossary-term {
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  text-decoration: underline dotted;
}

.glossary-popup {
  display: none;
  position: absolute;
  background-color: #fff;
  padding: 1rem;
  border-radius: 4px;
  box-shadow: var(--shadow);
  max-width: 300px;
  z-index: 10;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  nav ul {
    flex-direction: column;
    width: 100%;
    display: none;
  }
  
  nav ul.show {
    display: flex;
  }
  
  nav ul li {
    margin: 0.5rem 0;
  }
  
  .mobile-nav-toggle {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
    margin-bottom: 1.5rem;
  }
  
  .progress-tracker {
    flex-direction: column;
    align-items: center;
  }
  
  .progress-tracker::before {
    display: none;
  }
  
  .progress-step {
    margin-bottom: 1rem;
  }
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

/* Print Styles */
@media print {
  header, footer, .sidebar, .nav-buttons, .quiz-container {
    display: none;
  }
  
  body {
    font-size: 12pt;
    color: #000;
    background-color: #fff;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .container {
    width: 100%;
    max-width: none;
    padding: 0;
  }
}
