:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --text-color: #333;
  --background-color: #f5f7fa;
  --sidebar-bg: #2c3e50;
  --sidebar-text: #ecf0f1;
  --sidebar-hover: #3498db;
  --card-bg: #fff;
  --border-color: #e1e4e8;
}

[data-theme="dark"] {
  --primary-color: #1a2639;
  --secondary-color: #3498db;
  --text-color: #ecf0f1;
  --background-color: #121212;
  --sidebar-bg: #1a2639;
  --sidebar-text: #ecf0f1;
  --sidebar-hover: #3498db;
  --card-bg: #1e1e1e;
  --border-color: #2d2d2d;
}

* {
  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(--background-color);
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 250px;
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  padding: 20px 0;
  height: 100vh;
  position: fixed;
  overflow-y: auto;
}

.sidebar-header {
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h1 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.sidebar-header p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.search-box {
  margin: 20px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 10px;
  border-radius: 4px;
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--sidebar-text);
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.nav-menu {
  list-style: none;
  margin-top: 20px;
}

.nav-item {
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.nav-item:hover {
  background-color: var(--sidebar-hover);
}

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

.nav-item.active {
  background-color: var(--sidebar-hover);
}

.submenu {
  list-style: none;
  margin-left: 15px;
  display: none;
}

.submenu.active {
  display: block;
}

.submenu .nav-item {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.main-content {
  flex: 1;
  margin-left: 250px;
  padding: 30px;
  max-width: 1200px;
}

.content-wrapper {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 30px;
}

h1, h2, h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

h1 {
  font-size: 2.2rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

h2 {
  font-size: 1.8rem;
  margin-top: 30px;
}

h3 {
  font-size: 1.4rem;
  margin-top: 25px;
}

p {
  margin-bottom: 20px;
}

ul, ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
}

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

a:hover {
  text-decoration: underline;
}

.btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s;
  margin-top: 20px;
}

.btn:hover {
  background-color: #2980b9;
  text-decoration: none;
}

.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.coaching-btn {
  display: inline-block;
  background-color: #e74c3c;
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
  margin-top: 30px;
}

.coaching-btn:hover {
  background-color: #c0392b;
  text-decoration: none;
}

/* Author page specific styles */
.author-profile {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.author-header {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 20px;
}

.author-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--secondary-color);
}

.author-details h1 {
  margin-bottom: 10px;
  border-bottom: none;
}

.author-details p {
  font-size: 1.1rem;
  color: var(--text-color);
  opacity: 0.9;
}

.author-section {
  margin-bottom: 30px;
}

.author-section h2 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

/* Responsive styles */
@media (max-width: 768px) {
  body {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  
  .main-content {
    margin-left: 0;
    padding: 20px;
  }
  
  .author-header {
    flex-direction: column;
    text-align: center;
  }
}
