

/* General container and layout styles */
#dashboard-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: dodgerblue;
    color: white;
    padding: 10px 20px;
    height: 100px;
}

#footer-container {
    background-color: dodgerblue;
    color: #ffffff;
    text-align: center;
    padding: 20px;
    height: 100px;
    width: 100%;
    clear: both;
    position: relative;
}

.title {
    flex: 1;
    display: flex;
    align-items: center;
}

.top-header .title {
    font-size: 20px;
}

.main-menu-container {
    flex: 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-menu-container .menu {
    display: flex;
    justify-content: center;
    list-style: none;
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    padding: 0;
}

.main-menu-container .menu li {
    margin: 0 5px;
}

.main-menu-container .menu li a {
    color: rgb(245, 248, 244);
    text-decoration:solid;
    padding: 2px;
    display: inline-block;
}

.top-header .sign-out-container {
    flex: 1;
    display: flex;
    text-align: right;
    justify-content: flex-end;
    align-items: center;
}

.top-header .sign-out {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 10px;
}

/* Content and sidebar layout */
#content-wrapper {
    display: flex;
    width: 100%;
    flex: 1;
}

/* Sidebar styles */
#sidebar {
    width: 20%;
    padding: 20px;
    background-color: #A65333;
    color: white;
    border-right: 1px solid #ccc;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out; /* Smooth transition for sliding */
    transform: translateX(0); /* Ensure the sidebar is visible on desktop screens */
}

/* Hidden sidebar on smaller screens */
.hidden {
    transform: translateX(-100%); /* Move the sidebar off-screen */
}

#main-content {
    padding: 20px;
    width: 80%;
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
}

.menu-box {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.menu-box h2 {
    text-align: center;
    margin-bottom: 20px;
}

.menu-section {
    margin-bottom: 20px;
}

.menu-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: white;
}

.menu-section a {
    display: block;
    padding: 4px;
    color: #0073aa;
    text-decoration: none;
    border: 1px solid #201e1e;
    border-radius: 4px;
    margin-bottom: 5px;
    background-color: white;
}

.menu-section a:hover {
    background-color: #f1f1f1;
}

/* Sidebar toggle button */
.sidebar-toggle {
    display: none; /* Initially hidden, shown on smaller screens */
    padding: 10px;
    font-size: 20px;
    background-color: dodgerblue;
    color: white;
    border: none;
    cursor: pointer;
}

/* Table styles */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: collapse;
}

.table-bordered {
    border: 1px solid #dee2e6;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6;
    padding: 8px;
    text-align: center;
    white-space: nowrap; /* Prevent wrapping */
    overflow: hidden; /* Hide overflow text */
    text-overflow: ellipsis; /* Add ellipsis for overflowing text */
    vertical-align: middle; /* Center align text vertically */
}

.table-bordered th {
    background-color: #f8f9fa;
    font-weight: bold;
}
.table_total_price {
    font-weight:bold;
    color:green;
    text-align:right;
    vertical-align:middle;
}
/* Sidebar and table responsiveness */
@media (max-width: 768px) {
    /* Hide sidebar by default on smaller screens */
    #sidebar {
        position: absolute;
        z-index: 999;
        width: 100%;
        transform: translateX(-100%); /* Hide sidebar initially */
    }

    /* Adjust the content to take full width */
    #main-content {
        width: 100%;
        margin-left: 0;
    }

    /* Ensure the toggle button is visible on smaller screens */
    .sidebar-toggle {
        display: block;
        background-color: #A65333;
        color: white;
        border: none;
        padding: 10px;
        font-size: 18px;
        cursor: pointer;
        width: 100%; /* Full width button */
        text-align: left;
    }

    /* Adjust table to be more responsive */
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-bordered th,
    .table-bordered td {
        white-space: normal; /* Allow wrapping on smaller screens */
        overflow: visible; /* Show all text */
        text-overflow: clip; /* Remove ellipsis */
    }
}
/* Custom stylesheet for responsive layout */
.registration-container {
    max-width: 800px;
    margin: auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.container {
    padding: 20px;
    /* Space inside the container */
    margin: 20px auto;
    /* Space outside the container, center-aligned */
    background-color: #f9f6f9;
    /* Light background color */
    border: 1px solid #c9f;
    /* Light border */
    border-radius: 5px;
    /* Rounded corners */
    max-width: 1200px;
    /* Limits the container's width */
    box-sizing: border-box;
    /* Ensures padding doesn't affect the container's width */
}

.section {
    /* border: 2px solid #007bff; */
    border: 2px solid #044400;
    /* Blue border */
    border-radius: 8px;
    /* Rounded corners */
    padding: 20px;
    /* Space inside the section */
    margin-bottom: 20px;
    /* Space between sections */
    background-color: #f8f9fa;
    /* Light gray background */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for depth */
}

.error-messages {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-family: Arial, sans-serif;
}

.error-messages h3 {
    margin-top: 0;
}

.error-messages ul {
    padding-left: 20px;
}

.error-messages li {
    list-style-type: disc;
}

.section_form {
    border: 1px solid #007bff;
    /* Blue border */
    border-radius: 8px;
    /* Rounded corners */
    padding: 20px;
    /* Space inside the section */
    margin-bottom: 20px;
    /* Space between sections */
    background-color: #f8f9fa;
    /* Light gray background */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for depth */
}

.section_form h4 {
    margin-bottom: 15px;
    color: #007bff;
    /* Blue color for headings */
    font-weight: 600;
    border-bottom: 2px solid #007bff;
    /* Underline heading */
    padding-bottom: 10px;
}

.delete-child {
    width: 25px;

}

.info_head {
    background-color: azure;

    text-align: center;
    padding: 10px 10px;
}

iframe {
    margin-top: 20px;
}

/* Responsiveness */
@media (max-width: 768px) {
    .form-group {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .form-row {
        flex-direction: column;
    }
}