/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

* {
    box-sizing: border-box; /* Ensure padding and border are included in element's total width and height */
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; /* Prevent scrolling on the body */
    font-family: 'Inter', sans-serif; /* Apply Inter font */
    font-size: 18px; /* Set a base font size */
    line-height: 1.6;
    color: #333; /* Dark gray for better readability */
}

/* Header styles */
.header {
    display: flex;
    align-items: center; /* Vertically center items */
    justify-content: space-between;
    padding: 10px;
    background-color: #f8f9fa; /* Light background color */
    border-bottom: 1px solid #ddd; /* Optional border for separation */
    position: fixed; /* Fix the header at the top */
    width: 100%; /* Full width */
    top: 0; /* Align to the top of the viewport */
    z-index: 1001; /* Ensure header is above the sidebar */
}

.logo {
    width: 150px;
    height: auto;
    max-height: 50px;
    object-fit: contain;
    margin: 5px 20px 5px 0;
    cursor: pointer;
}

.title {
    font-size: 24px; /* Adjust as needed */
    color: #333; /* Text color */
    margin: 0; /* Remove default margin */
}

/* Basic styles for the sidebar */
.container {
    display: flex; /* Use flexbox for layout */
    margin-top: 0; /* Remove margin since content has margin-top */
    height: 100vh; /* Full viewport height */
}

/* Main.html content styles */
body:not(.index-page) .content {
    margin-left: 300px;
    padding: 10px 30px;
    width: calc(100% - 300px);
    min-height: calc(100vh - 70px);
    background-color: #fff;
    overflow-y: auto;
    margin-top: 70px;
}

.sidebar {
    width: 300px;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    overflow-y: auto;
    padding: 30px 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 70px;
    left: 0;
    height: calc(100vh - 70px);
    z-index: 1000;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin-top: 25px;
}

.sidebar > ul > li:first-child {
    margin-top: 30px; /* Increase top margin */
}

.sidebar > ul > li {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: 500;
}

.sidebar ul li {
    cursor: pointer;
}

.sidebar ul li ul {
    display: none; /* Hide submenus by default */
    padding-left: 20px;
}

.sidebar ul li.active > ul {
    display: block; /* Show submenu when active */
}

.sidebar ul ul {
    padding-left: 20px; /* Indent submenus */
}

.sidebar ul ul li {
    margin-bottom: 8px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.95em;
    color: #555;
}

.sidebar ul ul li:first-child {
    margin-top: 10px; /* Add spacing between main menu and first submenu item */
}

/* Logo */
.logo {
    width: 150px; /* Adjust the width as needed */
    height: auto; /* Maintain aspect ratio */
    margin-top: 5px; /* Reduce top margin */
    margin-bottom: 5px; /* Reduce bottom margin */
    display: block;
}

/* ====== NEW STYLES FOR TUTORIAL CONTENT ====== */

/* Tutorial Section Separation */
hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 20px 0;
}

/* Tutorial Title */
h2 {
    font-size: 26px;
    font-weight: 600;
    padding: 10px 15px;
    margin-top: 50px; /* Add whitespace above the h2 */
    padding-top: 20px; /* Add padding above the h2 title */
    font-size: 26px;
    font-weight: 600;
    padding: 10px 15px;
    color: #333;
    border-left: 5px solid #ffa500; /* Change to orange */
    background-color: #f9f9f9; /* Soft gray background */
    margin-bottom: 20px;
    text-align: center; /* Center the text */
}

h2::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px; /* Thickness of the line */
    background-color: #ccc; /* Grey color for the line */
    position: absolute;
    bottom: -10px; /* Position the line below the box */
    left: 0;
}

/* Section Headers */
h3 {
    font-size: 22px;
    font-weight: 500;
    padding: 8px;
    background-color: #f2f2f2;
    border-radius: 5px;
}

/* Indented Feature Headings */
h4 {
    font-size: 20px;
    font-weight: 500;
    margin-left: 20px;
}

/* Styling for FontAwesome Icons */
.icon {
    margin-right: 8px;
    font-size: 20px;
}

.icon.user {
    color: #4caf50; /* Green for user management */
}

.icon.cogs {
    color: #f44336; /* Red for settings */
}

/* Callout Box for Important Notes */
.note-box {
    padding: 10px;
    background-color: #fff3cd;
    border-left: 5px solid #ffa000;
    margin: 20px 0;
}

/* Increase font size for all bulleted lists */
ul {
    font-size: 18px; /* Adjust font size as needed */
    line-height: 2.0; /* Improve readability */
}

/* Ensure Purpose text has the same size as list items */
p {
    font-size: 18px;  /* Match bullet point size */
    font-weight: 400;
    line-height: 2.0;
}

/* Optional: Increase font size for ordered lists too */
ol {
    font-size: 18px;
    line-height: 2.0;
}

/* Common image size */
.common-image {
    width: 33px; /* Set the width to one-third of the original 100px */
    height: auto; /* Maintain aspect ratio */
    border-radius: 5px; /* Add rounded corners */
    box-sizing: border-box; /* Include border in element's total size */
    position: relative; /* Position relative for pseudo-element */
    z-index: 2; /* Ensure image is above the pseudo-element */
    /* Optionally, add more styles like margin, etc. */
}

/* Image Hover Effect */
.image-container {
    display: inline-block;
    position: relative;
    overflow: visible; /* Allow image to expand beyond container */
    width: 50px; /* Ensure the container starts small */
    height: auto;

}

/* Image Hover Effect */
.image-container-mobile {
    display: inline-block;
    position: relative;
    overflow: visible; /* Allow image to expand beyond container */
    width: 15px; /* Ensure the container starts small */
    height: auto;

}

.small-image {
    width: 35px; /* Initial small size */
    height: auto;
    transition: width 0.5s ease-in-out; /* Smooth transition effect */
    cursor: pointer;
    border: 5px solid orange;
    border-radius: 3px;
    display: block;
    position: relative; /* Keep position stable */
    z-index: 1;
}

.small-image-mobile{
    width: 20px; /* Initial small size */
    height: auto;
    transition: width 0.5s ease-in-out; /* Smooth transition effect */
    cursor: pointer;
    border: 5px solid orange;
    border-radius: 3px;
    display: block;
    position: relative; /* Keep position stable */
    z-index: 1;
}

/* Smooth width increase on hover */
.image-container:hover .small-image {
    width: 850px; /* Set the enlarged width */
    height: auto;
    z-index: 1000;
    background: white;
    padding: 5px;
    position: relative;
    transition: width 0.5s ease-in-out; /* Ensure smooth transition */
    border: 5px solid lightgrey;
    border-radius: 10px;
}


.image-container-mobile:hover .small-image-mobile {
    width: 300px; /* Set the enlarged width */
    height: auto;
    z-index: 1000;
    background: white;
    padding: 5px;
    position: relative;
    transition: width 0.5s ease-in-out; /* Ensure smooth transition */
    border: 5px solid lightgrey;
    border-radius: 10px;
}
/* Prevents flickering */
.image-container {
    min-width: 50px;
    min-height: auto;
}

.image-container-mobile {
    min-width: 50px;
    min-height: auto;
}


/* Highlight submenu item text on hover */
.sidebar ul ul li:hover {
    color: #4285f4;
    background-color: rgba(66, 133, 244, 0.04);
    transform: translateX(4px);
    transition: all 0.2s ease;
}

/* Active class for clicked submenu item */
.sidebar ul ul li.active {
    color: #023992;
    background-color: rgba(2, 57, 146, 0.08);
    font-weight: 500;
}

/* Ensure the expanded image appears above other elements */
.image-container img {
    position: relative;
    z-index: 10; /* Increase z-index to ensure it appears above other elements */
}

/* ====== RESPONSIVE STYLES ====== */

/* Mobile styles (up to 767px) */
@media screen and (max-width: 767px) {
    :root {
        /* Adjust root variables for mobile if needed */
        --container-padding: 15px;
    }

    .header {
        padding: 10px;
    }

    .logo {
        width: 120px !important;
        height: auto !important;
        max-height: 40px !important;
        object-fit: contain;
    }

    .sidebar {
        width: 100%;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        background: white;
        z-index: 999;
    }

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

    body.menu-open {
        overflow: hidden;
    }

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

    body:not(.index-page) .content {
        margin-left: 0;
        width: 100%;
        padding: 15px;
        margin-top: 60px;
    }

    .container {
        margin-top: 0;
    }
}

/* Tablet styles (768px to 1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    :root {
        /* Adjust root variables for tablet if needed */
        --container-padding: 20px;
    }
}

/* Desktop styles (1025px and above) */
@media screen and (min-width: 1025px) {
    :root {
        /* Adjust root variables for desktop if needed */
        --container-padding: 30px;
    }
}

/* Footer styles */
.footer {
    border-top: 1px solid #eee;
    background: #fbfbfb;
    padding: 30px 0 30px;
    margin-top: 40px;
}

.footer p {
    margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #4a4a4a;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-inner {
    display: table;
    width: 100%;
    margin-bottom: 30px;
}

.footer-left-col {
    display: table-cell;
    vertical-align: middle;
    width: 50%;
}

.footer-left-col p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 8px;
}

.social__link {
    display: table-cell;
    vertical-align: middle;
    text-align: right;
    width: 50%;
    padding-right: 20px;
}

.social__link a {
    display: inline-block;
    margin-left: 20px;
}

.social__link a:first-child {
    margin-left: 0;
}

.social__link img {
    height: 40px;
    width: auto;
}

.footer-btm-nav {
    border-top: 1px solid #eee;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.footer-copy-right {
    color: #4a4a4a;
}

.footer-nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav-menu a {
    color: #4a4a4a;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav-menu a:hover {
    color: var(--primary);
}

/* Mobile footer styles */
@media screen and (max-width: 767px) {
    .footer-inner {
        display: block;
    }

    .footer-left-col,
    .social__link {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .social__link a {
        margin: 0 7px;
    }

    .footer-btm-nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-nav-menu {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}
