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

body {
    font-family: 'Roboto', sans-serif;
    background-color: #F7F7F7; /* Light Gray */
    display: flex;
    height: 100vh;
    overflow: hidden;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-theme {
    background-color: #222;
    color: #fff;
}

.wrapper {
    display: flex;
    width: 100%;
}

.sidebar {
    background-color: #007BFF; /* Electric Blue */
    min-width: 200px;
    max-width: 200px;
    min-height: 100vh;
    color: #FFFFFF; /* White */
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s;
}

.sidebar.dark-theme {
    background-color: #222;
}

.sidebar img.logo {
    display: block;
    margin: 0 auto 20px;
    width: 150px; /* Adjust the width as needed */
    height: auto; /* Adjust the height as needed, or use a fixed value */
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    padding: 10px;
    text-align: center;
}

.sidebar ul li a {
    color: #DDDDDD; /* Light Gray */
    text-decoration: none;
    display: block;
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.sidebar ul li a:hover {
    background-color: #0056b3; /* Slightly darker shade of Electric Blue */
    color: #FFFFFF; /* White */
    transform: translateY(-3px);
}

.sidebar.dark-theme a {
    color: #ddd;
}

.sidebar.dark-theme a:hover {
    background-color: #555;
}

.theme-toggle {
    text-align: center;
    margin-top: auto;
}

.theme-toggle a {
    color: #FFFFFF; /* White */
    font-size: 24px;
    text-decoration: none;
}

.theme-toggle a:hover {
    color: #FFD700; /* Gold */
}

.content {
    flex-grow: 1;
    padding: 20px; /* Reduced padding for a cleaner look */
    overflow-y: auto;
    background-color: #FFFFFF; /* White */
    border-radius: 8px;
    margin: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.content.dark-theme {
    background-color: #444;
    color: #fff;
}

textarea {
    width: 100%;
    height: 89vh;
    padding: 20px;
    border: none; /* Remove border */
    border-radius: 8px; /* Remove border-radius */
    font-size: 16px;
    background: transparent; /* Remove background color for cleaner look */
    box-shadow: none; /* Remove box-shadow */
    resize: none; /* Prevent resizing */
    transition: all 0.3s;
}

textarea.dark-theme {
    background-color: #555;
    color: #fff;
    border: none; /* Ensure no border in dark theme */
}

textarea:focus {
    border: none; /* Ensure no border on focus */
    box-shadow: none; /* Ensure no box-shadow on focus */
    outline: none; /* Remove outline on focus */
}

.mobile-buttons {
    display: none;
}

.mobile-toolbar-toggle {
    display: none;
}

.mobile-toolbar {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background-color: #007BFF; /* Same as sidebar for consistency */
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
}

.mobile-toolbar button, 
.mobile-toolbar select {
    padding: 10px;
    border: none;
    background-color: #FFEA00; /* Bright Yellow */
    color: #FFFFFF; /* White */
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.mobile-toolbar button:hover, 
.mobile-toolbar select:hover {
    background-color: #d4bf00; /* Darker shade of Bright Yellow */
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        display: none; /* Hide the sidebar on mobile */
    }

    .wrapper {
        flex-direction: column;
    }

    .content {
        margin: 0;
        padding: 20px;
        width: 100%;
        box-shadow: none;
    }

    textarea {
        height: 80vh;
    }

    .mobile-buttons {
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
        background-color: #007BFF; /* Same as sidebar for consistency */
        position: fixed;
        bottom: 0;
        width: 100%;
    }

    .mobile-buttons a {
        color: #DDDDDD; /* Light Gray */
        font-size: 24px;
    }

    .mobile-toolbar-toggle {
        display: flex;
        justify-content: center;
        padding: 10px 0;
        background-color: #0056b3; /* Slightly darker shade of Electric Blue */
    }

    .mobile-toolbar {
        display: flex;
    }
}

/* Hide other elements during printing */
@media print {
    body * {
        visibility: hidden;
    }
    .content, 
    .content * {
        visibility: visible;
    }
    .content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: auto;
    }
}

/* Existing styles... */

.sidebar-right {
    position: fixed;
    bottom: 0; /* Aligns the sidebar to the bottom */
    left: 45%; /* Center horizontally */
    transform: translateX(-30%); /* Adjust for horizontal centering */
    width: 470px; /* Set width to desired size */
    height: 40px; /* Set height to desired size */
    background-color: #007BFF; /* Same as sidebar for consistency */
    color: #FFFFFF; /* White */
    padding: 0px;
    display: flex;
    flex-direction: row; /* Horizontal layout */
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    border-top-left-radius: 25px; /* Curve on the top-left corner */
    border-top-right-radius: 25px; /* Curve on the top-right corner */
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.sidebar-right.dark-theme {
    background-color: #2c2c2c; /* Dark theme color */
    color: #FFFFFF; /* Dark theme text color */
}


.sidebar-right .social-icons {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Align icons horizontally */
    align-items: center; /* Center icons vertically */
}

.sidebar-right .social-icons li {
    margin: 0 10px; /* Horizontal spacing between icons */
}

.sidebar-right .social-icons a {
    color: #FFFFFF; /* White */
    font-size: 24px;
    display: block;
    width: 40px; /* Adjust width to match icon size */
    height: 40px; /* Adjust height to match icon size */
    text-align: center;
    line-height: 40px; /* Center icon vertically */
    border-radius: 10%;
    transition: background-color 0.3s, transform 0.3s;
}

.sidebar-right .social-icons a:hover {
    background-color: #0056b3; /* Slightly darker shade of Electric Blue */
    transform: scale(1.1);
}

/* Responsive Design for sidebar-right */
@media (max-width: 78px) {
    .sidebar-right {
        display: none; /* Hide the sidebar on mobile */
    }
}

/* Add New Page Button Styles */
#addPageButton {
    background-color: #007BFF; /* Gold */
    color: #fff; /* White Text */
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    border: 0px solid #333; /* Dark Border */
    margin-bottom: 20px;
    font-size: 15px; /* Increased Font Size */
}

#addPageButton.dark-theme {
    background-color: #333; /* Dark Background */
    color: #ddd; /* Light Text */
    border: 0px solid #555; /* Slightly lighter Dark Border */
}

.sidebar2 {
    background-color: #007BFF; /* Electric Blue */
    min-width: 200px;
    max-width: 200px;
    min-height: 100vh;
    color: #FFFFFF; /* White */
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s;
}

.sidebar2.dark-theme {
    background-color: #222;
    color: #ddd;
}


#addPageButton:hover {
    background-color: #0056b3; /* Darker Gold */
}

#addPageButton.dark-theme:hover {
    background-color: #444; /* Darker shade for hover in dark theme */
    color: #fff; /* Ensure text stays readable */
}

/* Pages Container Styles */
#pagesContainer {
    flex-grow: 1;
    background-color: #007BFF; /* Light Gray Background */
    padding: 10px;
    overflow-y: auto;
    list-style-type: none; /* Remove bullet points */
    border: 0px solid #000000; /* Light Gray Border */
    border-radius: 10px;
}

#pagesContainer.dark-theme {
    background-color: #333; /* Dark Background */
    color: #ddd; /* Light Text (if needed) */
}


.page-button {
    background-color: #007BFF; /* Blue Background */
    color: #FFFFFF; /* White Text */
    padding: 10px;
    margin-bottom: 5px; /* Space between buttons */
    border-radius: 5px;
    text-align: left;
    border: none;
    width: 100%;
    cursor: pointer;
    display: block; /* Full-width buttons */
    font-size: 15px
}

.page-button.dark-theme {
    background-color: #333; /* Dark Background */
    color: #ddd; /* Light Text (if needed) */
}

.page-button:hover {
    background-color: #0056b3; /* Slightly darker shade of blue */
}

.page-button.dark-theme:hover {
    background-color: #444; /* Darker shade for hover in dark theme */
    color: #fff; /* Ensure text stays readable */
}

.hidden {
    display: none;
}

/* Optionally, add other styles for when the textarea is visible */
.visible {
    display: block;
}

.intro-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(58, 58, 58, 0.686);
    color: white;
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
    display: block;
    text-shadow: 1px 1px 2px black, -1px -1px 2px black, 1px -1px 2px black, -1px 1px 2px black; /* Black border effect */
}

.hidden {
    display: none;
}
.visible {
    display: block;
}

.version-info {
    font-size: 1em; /* Smaller font size */
    color: #ffffff; /* Light gray color for subtlety */
    text-align: center; /* Center the text */
    margin-top: 20px; /* Add some spacing above it */
    padding-top: 10px; /* Padding for spacing between text and border */
}
