/* Global styles */
body {
    font-family: 'Ubuntu', Arial, sans-serif; /* Use Ubuntu font as the primary font */
    background-color: #f8f9fa; /* Light gray background */
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
}

/* Sidebar styles */
.sidebar {
    height: 100vh;
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgb(69, 60, 141); /* Darker background color for sidebar in dark mode */
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally */
    z-index: 100; /* Ensure sidebar is above other content */
}

/* Profile image styles */
.profile img {
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
    border-radius: 50%; /* Makes the image circular */
    border: 3px solid rgba(0, 0, 0, 0.2); /* Light black border */
}

/* Profile text styles */
.profile h2,
.profile p {
    color: #ffffff; /* White text color */
    margin: 0; /* Remove default margin */
}

/* Navigation link styles */
.nav-link {
    color: #ffffff; /* White text color */
    margin: 10px 0; /* Adjust margin */
    text-decoration: none; /* Remove underline */
}

.nav-link:hover {
    color: #007bff; /* Light blue color on hover */
}

/* Main content styles */
.main-content {
    margin-left: 250px; /* Adjust based on your sidebar width */
    padding: 20px;
}

/* Section styles */
.section {
    margin-bottom: 40px; /* Space between sections */
}

.section h2 {
    border-bottom: 1px solid #ccc; /* Gray horizontal line under section headings */
    padding-bottom: 5px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .sidebar {
        top: 0;
        transform: none;
        width: 100%;
        height: auto;
        padding: 20px 0;
        align-items: flex-start; /* Align items to the start for mobile */
    }

    .profile img {
        margin-bottom: 10px; /* Adjust spacing */
    }

    .sidebar .nav {
        flex-direction: column;
        align-items: center; /* Center nav links vertically */
    }

    .sidebar .nav-link {
        margin: 5px 0; /* Adjust margin for nav links */
    }

    .main-content {
        margin-left: 0; /* Reset margin for mobile */
        padding: 10px;
    }
}

/* Dark mode styles */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

body.dark-mode .sidebar {
    background-color: #333333; /* Darker background color for sidebar */
}

body.dark-mode .profile h2,
body.dark-mode .profile p {
    color: #ffffff; /* White text color */
}

body.dark-mode .sidebar .nav-link {
    color: #bbbbbb; /* Light gray text color */
}

body.dark-mode .sidebar .nav-link:hover {
    color: #ffffff; /* White text color on hover */
}

body.dark-mode .visitor-counter {
    color: #bbbbbb; /* Light gray text color */
}

/* Dark mode toggle button */
.dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #007bff;
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    z-index: 200; /* Ensure toggle button is above other content */
}
