/* --- style1.css --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f1f1f1;
    line-height: 1.6;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
}

header {
    background-color: #04AA6D;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 1.8rem;
    font-weight: 500;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    height: 40px;
    margin-right: 1rem;
}

.content {
    display: flex;
    flex: 1;
    margin: 1rem;
    gap: 1rem;
}

.sidebar li a.active{
    background-color: green;
    color: white;
}

.sidebar {
    width: 250px;
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin: 0.8rem 0;
}

.sidebar ul li a {
    text-decoration: none;
    color: #282A35;
    font-size: 1.1rem;
    padding: 0.5rem;
    display: block;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.sidebar ul li a:hover {
    background-color: #04AA6D;
    color: white;
}

.main-body {
  max-width: 900px;
  margin: 0 auto;
    flex: 1;
    background-color: #ffffff;
    padding: 4rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-body h2 {
    color: #282A35;
    margin-bottom: 1rem;
    font-weight: 500;
}

.main-body p {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.main-body .example-box {
    background-color: #f1f1f1;
    padding: 1rem;
    border-left: 4px solid #04AA6D;
    margin: 1rem 0;
    border-radius: 4px;
}

pre {
  background-color: #eee;
  padding: 10px;
  border-radius: 5px;
  overflow-x: auto;
}

code {
  background-color: #eaeaea;
  padding: 2px 6px;
  border-radius: 5px;
  font-family: monospace;
}

.footer{
    text-align: center;
}

@media (max-width: 768px) {
    .content {
        flex-direction: column;
        margin: 0.5rem;
    }
    .sidebar {
        width: 100%;
    }
    header {
        flex-direction: column;
        text-align: center;
    }
    header .logo {
        margin-bottom: 1rem;
    }
}
