:root {
    --background-color: #ffffff;
    --text-color: #000000;
    --sidebar-color: #2e2e2e;
    --button-background: #1ed760;
    --table-background: #f9f9f9;
    --table-header: #f4f4f4;
}

body.dark-mode {
    --background-color: #1a1a1a;
    --text-color: #e0e0e0;
    --sidebar-color: #202020;
    --button-background: #149e52;
    --table-background: #2b2b2b;
    --table-header: #3b3b3b;
}

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

a {
    color: white;
    text-decoration: none;
}

html, body {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: background-color 0.5s, color 0.5s;
}

ol{
    padding: 10px 20px;
    list-style-type: none;
}

li{
    margin: 10px 0;
}

h1 {
    font-weight: 600;
    padding: 0 20px;
    margin-top: 35px;
}

.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 350px;
    background-color: var(--sidebar-color);
    color: var(--text-color);
    transition: background-color 0.5s, color 0.5s;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1;
}

.sidebar section {
    overflow-y: auto;
    height: calc(100vh - 300px);
    scrollbar-width: none;
}

#logo-big {
    padding: 30px 0 30px 20px;
    width: 200px;
}

.sidebar h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #aaa;
}

.back-to-app {
    width: 200px;
}

.sidebar-section {
    margin: 30px;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    margin: 15px;
}

.sidebar ul li a {
    text-decoration: none;
}

.sidebar ul li a:hover {
    text-decoration: underline;
}

.fixed-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
}

.social {
    margin: 20px 0;
    gap: 30px;
    display: flex;
    justify-content: space-evenly;
}

.social-button {
    display: inline-block;
    font-size: 30px; 
    color: #fff; 
    transition: transform 0.3s ease; 
}

.social-button:hover {
    transform: scale(1.2); 
}

.menu-link {
    display: block;
    padding: 15px;
    background-color: var(--button-background);
    color: var(--text-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.menu-link:hover {
    background-color: #149e52;
}

.main-content {
    margin-left: 350px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}

.main-content h2, .main-content h3 {
    margin-bottom: 20px;
    margin-top: 50px;
    font-weight: 600;
    padding: 0 20px;
}

.main-content p {
    line-height: 1.8;
    padding: 0 20px;
}

.main-content ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    margin-right: 20px;
    padding-left: 20px;
}

.main-content ul li {
    margin-bottom: 10px;
}

.main-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.main-content th, .main-content td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    color: var(--text-color);
}

.main-content th {
    background-color: var(--table-header);
    font-weight: 700;
    text-align: left;
}

.main-content td {
    background-color: var(--table-background);
}

.main-content tr:nth-child(even) {
    background-color: #f9f9f9;
}

.toggle-sidebar-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 999;
    display: none;
}

.toggle-sidebar-btn i {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.toggle-sidebar-btn:hover i {
    transform: scale(1.1); 
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar.active + .main-content {
    margin-left: 280px; 
}

#dark-mode-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 20px;
    color: black;
    z-index: 1000;
    transition: color 0.3s ease, transform 0.3s ease;
}

#dark-mode-toggle:hover {
    transform: scale(1.1);
}

body.dark-mode #dark-mode-toggle {
    color: white;
}

#mode-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}


body.dark-mode #mode-icon {
    transform: rotate(180deg);
}

.toggle-sidebar-btn i {
    transition: transform 0.3s ease, color 0.3s ease;
}

body.dark-mode .toggle-sidebar-btn i {
    color: white;
}

.waves-container {
    width: 100%;
    margin-top: 40px;
}

.waves {
    width: 100%;
    height: auto;
    display: block;
}

.parallax > use:nth-child(1) {
    fill: rgba(30, 215, 96, 0.7);
}

.parallax > use:nth-child(2) {
    fill: rgba(21, 121, 55, 0.7);
}

.parallax > use:nth-child(3) {
    fill: rgba(30, 215, 96, 0.7);
}

.parallax > use:nth-child(4) {
    fill: rgba(21, 121, 55, 0.7);
}

@media screen and (max-width: 768px) {
    .sidebar {
        display: none;
        position: fixed;
        width: 280px;
        height: 100vh;
    }

    .toggle-sidebar-btn {
        display: block;
    }
    .main-content{
        margin: 0;
    }
}