:root {
  --primary-color: #0066cc;
  --secondary-color: #ffcc00;
  --text-color: #333;
  --bg-color: #fff;
  --sidebar-bg: #f5f5f5;
  --header-bg: #1a1a2e;
  --header-text: #fff;
  --border-color: #ddd;
  --hover-color: #e6f2ff;
  --active-color: #cce5ff;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --footer-bg: #1a1a2e;
  --footer-text: #fff;
}

.dark-theme {
  --primary-color: #3399ff;
  --secondary-color: #ffdd33;
  --text-color: #f0f0f0;
  --bg-color: #121212;
  --sidebar-bg: #1e1e1e;
  --header-bg: #0a0a14;
  --header-text: #fff;
  --border-color: #444;
  --hover-color: #2a2a3a;
  --active-color: #2c3e50;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --footer-bg: #0a0a14;
  --footer-text: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

/* Header Styles */
header {
  background-color: var(--header-bg);
  color: var(--header-text);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px var(--shadow-color);
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 40px;
}

.logo-text {
  display: none; /* Hide the BULUTUS | Bulut text */
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-nav ul {
  display: flex;
  list-style: none;
  align-items: center;
}

.main-nav li {
  position: relative;
  margin-right: 1.5rem;
}

.main-nav a {
  color: var(--header-text);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem 0;
  display: block;
}

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

.dropdown-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.dropdown-toggle i {
  margin-left: 5px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: var(--header-bg);
  min-width: 200px;
  box-shadow: 0 8px 16px var(--shadow-color);
  z-index: 1;
  border-radius: 4px;
  padding: 0.5rem 0;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  padding: 0.5rem 1rem;
}

.dropdown-menu li + li {
  margin-top: 0; /* Reduce space between dropdown items */
}

.search-container {
  display: flex;
  align-items: center;
}

.search-input {
  padding: 0.5rem;
  border: none;
  border-radius: 4px 0 0 4px;
  outline: none;
  width: 200px;
}

.search-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--header-text);
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle .fa-sun {
  display: none;
}

.dark-theme .theme-toggle .fa-moon {
  display: none;
}

.dark-theme .theme-toggle .fa-sun {
  display: block;
}

/* Breadcrumb Styles */
.breadcrumb {
  padding: 1rem 2rem;
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
}

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

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--text-color);
}

/* Content Container Styles */
.content-container {
  display: flex;
  min-height: calc(100vh - 180px);
}

/* Sidebar Styles */
.sidebar {
  width: 250px;
  background-color: var(--sidebar-bg);
  padding: 1rem;
  border-right: 1px solid var(--border-color);
}

.filter-container {
  display: flex;
  margin-bottom: 1rem;
}

.filter-input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px 0 0 4px;
  outline: none;
}

.filter-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

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

.menu-item {
  margin-bottom: 0.5rem;
}

.menu-header {
  cursor: pointer;
  padding: 0.5rem 0;
  font-weight: bold;
  font-size: 0.9rem; /* Smaller font size for menu headers */
}

.submenu {
  list-style: none;
  margin-left: 1rem;
  display: none;
}

.submenu li {
  margin: 0.2rem 0; /* Reduced margin between submenu items */
}

.submenu a {
  color: var(--text-color);
  text-decoration: none;
  display: block;
  padding: 0.2rem 0; /* Reduced padding for submenu items */
  font-size: 0.85rem; /* Smaller font size for submenu items */
}

.submenu a:hover {
  color: var(--primary-color);
  background-color: var(--hover-color);
}

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

/* Main Content Styles */
.main-content {
  flex: 1;
  padding: 2rem;
  position: relative;
}

.theme-toggle-container {
  position: absolute;
  top: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin: 0 10px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.description {
  font-style: italic;
  margin-bottom: 2rem;
  color: var(--text-color);
  opacity: 0.8;
}

section {
  margin-bottom: 2rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

p {
  margin-bottom: 1rem;
}

ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

.content-nav {
  background-color: var(--sidebar-bg);
  padding: 1rem;
  border-radius: 4px;
  margin-top: 2rem;
}

.content-nav h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.content-nav ul {
  list-style: none;
  margin-left: 0;
}

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

.content-nav a:hover {
  text-decoration: underline;
}

/* Footer Styles */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
}

.footer-column {
  margin-right: 3rem;
  min-width: 150px;
}

.footer-column h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-column ul {
  list-style: none;
  margin-left: 0;
}

.footer-column a {
  color: var(--footer-text);
  text-decoration: none;
  opacity: 0.8;
}

.footer-column a:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .content-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .main-nav ul {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 1rem;
  }

  .logo-container {
    margin-bottom: 1rem;
  }

  .main-nav {
    width: 100%;
    margin-bottom: 1rem;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav li {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    padding-left: 1rem;
  }

  .search-container {
    width: 100%;
  }

  .search-input {
    width: 100%;
  }

  .theme-toggle-container {
    position: static;
    justify-content: flex-end;
    margin-bottom: 1rem;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-column {
    margin-right: 0;
    margin-bottom: 1.5rem;
  }
}
