/* General body styling */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #121212;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


/* Sidebar styling */
.sidebar {
    position: fixed;
    top: 60px; /* Push the sidebar below the buttons */
    left: 0;
    bottom: 0;
    width: 270px;
    padding: 2rem 1rem;
    background-color: #1e1e2f;
    transition: all 0.3s ease;
    overflow-x: hidden;
}

/* Collapsed sidebar hides fully */
.sidebar.collapsed {
    width: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

/* Hide content inside sidebar when collapsed */
.sidebar.collapsed #sidebar-content {
    display: none;
}

/* Container for all menu buttons */
#toggle-container {
    position: fixed;
    top: 10px;
    left: 10px;
    display: flex; /* Align buttons horizontally */
    gap: 10px; /* Space between buttons */
}

/* Styling for all buttons inside the container */
.menu-btn {
    padding: 10px 20px;
    background-color: #1e1e2f;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

/* Main content styling */
.content {
    margin-left: 240px;
    padding: 2rem;
    transition: all 0.3s ease;
    color: white;
}

/* When sidebar is collapsed, expand content to full width */
.sidebar.collapsed ~ .content {
    margin-left: 0;
}

/* Navigation links */
.nav-link {
    color: #ffffff !important;
    font-weight: 500;
    padding: 0.75rem 1rem;
}

/* Active nav item */
.nav-link.active {
    background-color: #17a2b8 !important;
    color: #000 !important;
}

/* Styling for input boxes */
.input-box {
    border-radius: 10px;  /* Rounded borders */
    background-color: #f0f0f0;  /* Background color */
    border: 1px solid #17A2B8;  /* Optional border */
    padding: 1px;  /* Padding inside the input box */
    font-size: 16px;  /* Font size */
    font-weight: bold;  /* Make the text bold */
    color: #17A2B8;  /* Text color */
    width: 100%;  /* Make sure input takes full width of the container */
}

/* Optional: Focus styling */
.input-box:focus {
    outline: none;  /* Remove default focus outline */
    border-color: #17a2b8;  /* Change border color on focus */
    background-color: #e6f7ff;  /* Light blue background on focus */
}
/* to hide input spinbox */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance:textfield; /* Firefox */
}


/* Right sidebar styling */
.sidepanel {
    position: fixed;
    right: 0;
    width: 300px;
    height: 100%;
    background-color: #1e1e2f;
    padding: 2rem 1rem;
    box-shadow: -2px 0 5px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
    transform: translateX(100%); /* Hidden by default */
    z-index: 1000;
    overflow-y: auto;
    color: white;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 2); /* enhanced shadow */
    /*box-shadow: -2px 0 12px rgba(255, 255, 255, 0.2); /* soft white glow */
}

/* Show the panel */
.sidepanel.show {
    transform: translateX(0);
}

.close-btn {
    background-color: transparent;
    color: white;
    border: none;
    font-size: 24px;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}

.sidepanel.show ~ .content {
    margin-right: 300px;
}

