:root {
    --accent-color: #d23784;
    --accent-hover: #a64d79;
    --background-light: #f9f9f9;
    --background-dark: #1c1c1e;
    --text-light: #1c1c1e;
    --text-dark: #f2f2f7;
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: var(--background-light);
    color: var(--text-light);
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    display: flex;
    flex: 1;
}

header {
    height: 34px;
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
		font-size: 22px;
	}


.sidebar {
    width: 130px;
    background-color: #f2f2f7;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: background 0.3s, color 0.3s;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin: 12px 0;
}

.sidebar ul li a {
    text-decoration: none;
    color: var(--text-light);
    padding: 8px 12px;
    display: block;
    border-radius: 8px;
    transition: background 0.6s, color 0.6s;
}

.sidebar ul li a:hover {
    background-color: var(--accent-hover);
}

.toggle-theme {
	position: fixed;
	bottom: 20px;
	left: 12px;
    padding: 8px 12px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 20px;
    transition: background 0.3s;
}

.toggle-theme:hover {
    background-color: var(--accent-hover);
}

.content {
    flex: 1;
    padding: 20px;
    background-color: #ffffff;
    overflow-y: auto;
    border-left: 1px solid #d1d1d6;
    transition: background-color 0.3s, border-color 0.3s;
}

h2, h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

ul {
    margin-left: 20px;
    list-style-type: disc;
}

code {
    display: block;
    padding: 1rem;
    background-color: #2d2d2d;
    color: #a0e0a0;
    border-radius: 5px;
    font-family: Consolas, monospace;
    margin: 1rem 0;
    white-space: pre-wrap;
}

.image-large {
    width: 100%;
    max-width: 80%;
    margin: 1rem auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.image-medium {
    width: 100%;
    max-width: 60%;
    margin: 1rem auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.image-small {
    width: 100%;
    max-width: 40%;
    margin: 1rem auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.image-smaller {
    width: 100%;
    max-width: 10%;
    margin: 1rem auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}


body.dark {
    background-color: var(--background-dark);
    color: var(--text-dark);
}

body.dark .sidebar {
    background-color: #2c2c2e;
}

body.dark .sidebar ul li a {
    color: var(--text-dark);
}

body.dark .sidebar ul li a:hover {
    background-color: var(--accent-hover);
}

body.dark .toggle-theme {
    background-color: var(--accent-color);
}

body.dark .toggle-theme:hover {
    background-color: var(--accent-hover);
}

body.dark .content {
    background-color: var(--background-dark);
    border-left: 1px solid #3a3a3c;
}

@media (max-width: 768px) {
    .sidebar {
        width: 40px;
        padding: 5px;
        overflow: hidden;
    }

    .sidebar ul li {
        margin: 8px 0;
        text-align: center;
    }

    .sidebar ul li a {
        display: block;
        width: 40px;
        height: 40px;
        padding: 0;
        background-size: 20px 20px;
        background-repeat: no-repeat;
        background-position: center;
        text-indent: -9999px;
    }

    .sidebar ul li:nth-child(1) a {
        background-image: url('/repo/selfhosted/icons/home.png');
    }
    .sidebar ul li:nth-child(2) a {
        background-image: url('/repo/selfhosted/icons/weather.png');
    }
    .sidebar ul li:nth-child(3) a {
        background-image: url('/repo/selfhosted/icons/veteris.png');
    }
    .sidebar ul li:nth-child(4) a {
        background-image: url('/repo/selfhosted/icons/notifications.png');
    }
    .sidebar ul li:nth-child(5) a {
        background-image: url('/repo/selfhosted/icons/tuberepair.png');
    }

    header {
        font-size: 12px;
    }

    .toggle-theme {
        font-size: 12px;
        padding: 6px 10px;
    }
}
