:root {
  --primary-color: #6200ee;
  --primary-hover: #3700b3;
  --primary-fonts: Noto Sans, sans-serif;
  --secondary-color: #03dac6;
  --background-color: #fafafa;
  --text-color: #212121;
  --header-height: 72px;
  --header-bg: var(--primary-color);
  --button-bg: var(--secondary-color);
  --button-hover: #018786;
  --info-bg: #e3f2fd;
  --warning-bg: #ffecb3;
  --danger-bg: #ffccbc;
  --info-border: #90caf9;
  --warning-border: #ffc107;
  --danger-border: #e57373;
  --span-color: #424242;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
  color: var(--text-color);
}

header {
  background-color: var(--header-bg);
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
}

header nav {
  display: flex;
  gap: 1rem;
  flex-grow: 1;
  overflow-x: auto;
  scroll-behavior: smooth;
  white-space: nowrap;
  align-items: center;
}

header nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: color 0.3s;
}

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

header .actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

header .actions a {
  background-color: var(--button-bg);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s;
  white-space: nowrap;
}

header .actions a:hover {
  background-color: var(--button-hover);
}

p {
  font-family: var(--primary-fonts);
  color: var(--span-color);
}

main {
  padding: 2rem;
  background-color: #fff;
  margin: 2rem auto;
  max-width: 1140px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.alert {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.alert.info {
  background-color: var(--info-bg);
  border-left: 5px solid var(--info-border);
}

.alert.warning {
  background-color: var(--warning-bg);
  border-left: 5px solid var(--warning-border);
}

.alert.danger {
  background-color: var(--danger-bg);
  border-left: 5px solid var(--danger-border);
}

h1,
h2,
h3 {
  color: var(--text-color);
  font-family: var(--primary-fonts);
}

strong {
  color: var(--text-color);
  font-family: var(--primary-fonts);
}

.icon-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-title img {
  width: 20px;
  height: 20px;
}

/* 

----

*/

.container {
  display: flex;
  height: auto;
}

.sidebar {
  width: 240px;
  background-color: var(--sidebar-bg);
  padding: 1rem;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar a {
  display: block;
  padding: 0.5rem 0;
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
  font-family: var(--primary-fonts);
}

.sidebar .submenu {
  padding-left: 0.5rem;
  border-left: 2px solid var(--primary-color);
  margin-left: 0.1rem;
}

.sidebar .submenu a {
  padding-left: 0.2rem;
  position: relative;
}

/* .sidebar .submenu a::before {
  content: "";
  width: 10px;
  height: 2px;
  background-color: var(--primary-color);
  position: absolute;
  left: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
} */

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

.content {
  flex-grow: 1;
  padding: 2rem;
}

a[target="_blank"] {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
}

a[target="_blank"]:hover {
  color: var(--primary-hover);
}

/* 

----

*/

details {
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: #fafafa;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem 0;
  list-style: none;
  flex-wrap: wrap;
}

summary::-webkit-details-marker {
  display: none;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-grow: 1;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 24px;
}

.icon-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-title .icon {
  width: 16px;
  height: 16px;
}

.toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
}

.toggle-icon .icon-open {
  display: none;
}

details[open] .icon-closed {
  display: none;
}

details[open] .icon-open {
  display: block;
}

.description {
  width: 100%;
  margin-top: 0.5rem;
  color: var(--text-color);
  font-weight: normal;
}

.since {
  display: inline-block;
  background-color: #ffeb3b;
  color: #212121;
  font-weight: bold;
  padding: 2px 8px;
  font-size: 0.875rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.since-new {
  background-color: #4caf50;
  color: #ffffff;
}

.since-modified {
  background-color: #2196f3;
  color: #ffffff;
}

.since-deprecated {
  background-color: #f44336;
  color: #ffffff;
}

.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.jump-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, transform 0.2s;
}

.jump-card {
  flex: 1 1 220px;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, transform 0.2s;
  text-align: center;
}

.jump-card:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

.jump-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.jump-card p {
  font-size: 0.9rem;
  color: #666;
}

.jump-button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.widget-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.widget-card {
  flex: 1 1 220px;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, transform 0.2s;
}

.widget-card:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

.widget-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.widget-card p {
  font-size: 0.9rem;
  color: #666;
}
