/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}
header{
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
    height: 10vh;
    max-height: 10vh;
    overflow: hidden;
    background-color:#333;
    color: white;
    position: fixed;
    z-index: 1000;
}
footer{
    position: fixed;
    left: 20%;
    bottom: 0;
    text-align: center;
}
.logo{
    width: 85%;
    margin: auto;
    visibility: visible;
    a{
        padding-left:5%;
        font-size: 150%;
    }
}
.user{
    float: right;
    width: 15%;
    text-align: center;
    margin: auto;
    img{
        height: 5vh;
    }
    p{
        margin: 0%;
        padding: 0%;
        font-size: 80%;
    }
}
/* Sidebar Navigation */
.sidebar {
    margin: 10vh auto;
    width: 15%;
    background-color: #333;
    height: 100vh;
    position: fixed;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar ul {
    list-style: none;
    padding-left: 5%;
    margin: 5vh auto;

}

.sidebar ul li a {
    color: white;
    padding: 6%;
    margin: 2% auto;
    border-radius: 10px ;
    text-decoration: none;
    display: block;
    /* border-bottom: 10px solid rgb(74, 227, 212); */
}

.sidebar ul li a:hover{
    background-color: #555;
}
.sidebar ul li a.active {
    color: black;
    background-color: white;
    border-radius: 30px 0px 0px 30px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background-color: white;
    border-radius: 5px;
    padding: 1%;
    margin: auto;
    position: fixed;
    top: 1.5vh;
    left: 3%;
    z-index: 1001;
    cursor: pointer;
    img{
        /* width: 10%; */
        height: 4vh;
    }
}

/* Main Content */
.main-content {
    margin-left: 15%;
    padding-top: 10vh;
    transition: margin-left 0.3s ease;
    border: 1px solid red;
    max-height: 89vh;
    overflow-y: scroll;
    overflow-x: hidden;
    h1{
        margin: 2% auto;
        text-align: center;
        font-size: 200%;
    }
    .pagedivider{
        margin: auto;
        height: 1vh;
        width: 90%;
        border-radius: 20px;
        background-color: greenyellow;
        border: 1px solid greenyellow;
    }
    /* Orders Container */
    .orders-container {
        width: 97%;
        margin: 2%;
        border: 1px solid greenyellow;
        font-size: 100%;
    }

    .table-header {
        display: flex;
        justify-content:space-between;
        align-items: center;
        margin-bottom: 1%;
    }

    .add-new {
        background-color: #28a745;
        color: white;
        padding: 1% 2%;
        float: right;
        border: none;
        cursor: pointer;
        border-radius: 5px;
        width: 25%;
        font-size: 100%;
    }

    #search-input {
        float: left;
        padding: 1%;
        width: 30%;
        border-radius: 5px;
        border: 1px solid #ccc;
    }

    /* Table Styling */
    .table-wrapper {
        max-height: 63vh; /* Set height for scroll */
        overflow-y: auto;
    }

    .orders-table {
        width: 100%;
        border-collapse: collapse;
    }

    .orders-table th, .orders-table td {
        padding: 0.7%;
        text-align: center;
        border: 1px solid black;
        /* font-size: 100%; */
    }

    .orders-table th {
        position: sticky;
        top: 0;
        background-color: #f4f4f4;
        z-index: 1;
    }

    .orders-table tbody tr:hover {
        background-color: #f9f9f9;
    }

}
/* Action Buttons */
.edit-btn, .delete-btn, .print-btn {

    margin-right: 1%;
    width: 40%;

    text-align: center;
    padding: 1vh 1%;
    cursor: pointer;
    border-radius: 3px;
    background: none;
    color:black;
    img{
        width: 70%;
        height: 3vh;
    }

}
.updatemenu{
    height: 80vh;
    text-align: center;
    lable{
        font-size: 100%;
    }
    input{
        font-size: 100%;
    }
}
/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    z-index: 1005;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    
}

.popup-content {
    background-color: white;
    margin: 5% auto;
    padding: 4%;
    width: 60%;
    position: relative;
    border-radius: 20px;

}
#alert{
    font-size: 80%;
    color: red;
}

#gif{
    height: 30vh;
    width: 100%;
}
#feedbackimage{
    background-image: url(../images/3.gif);
    background-size: 60%;
    background-repeat: no-repeat;
    /* border: 1px solid red; */
    height: 100%;
    width: 40%;
    margin: auto 30%;
}
#message{
    width: 100%;
    height: 20vh;
    text-align: center;
}

/* Tab content */
.tabcontent {
    display: none; /* Hide tab content */
}

.tabcontent input {
    width: 95%; /* Full width inputs */
    padding: 1%; /* Padding */
    margin: 1.8% 0; /* Margin */
    border: 1px solid #ccc; /* Border */
    border-radius: 5px; /* Rounded corners */
}
.popuptabcontent input {
    width: 95%; /* Full width inputs */
    padding: 1%; /* Padding */
    margin: 1.8% 0; /* Margin */
    border: 1px solid #ccc; /* Border */
    border-radius: 5px; /* Rounded corners */
}

/* Style for the remember-me section */
.remember-me {
    display: flex;  /* Aligns items in a horizontal row */
    align-items: center;  /* Vertically centers the checkbox with the label */
    gap: 5px;  /* Adds a little space between the checkbox and label */
}

/* Style for the checkbox */
.remember-me input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Optional style for the label */
.remember-me label {
    font-size: 14px;
    cursor: pointer;  /* Changes cursor to pointer when hovering over the label */
}
/* Optional style for the label */
.remember-me a{
    font-size: 100%;
    color: #000;
    text-decoration: underline;
    cursor: pointer;  /* Changes cursor to pointer when hovering over the label */
}


button {
    background-color: #4CAF50; /* Green background */
    color: white; /* White text */
    border: none; /* No border */
    padding: 10px; /* Padding */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor */
    width: 100%; /* Full width */
}

button:hover {
    background-color: #45a049; /* Darker green on hover */
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    /* For screens smaller than 768px, make the sidebar hidden initially */
    .sidebar {
        width: 25%; /* Sidebar will take 60% of the screen */
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }
    .hamburger{
        display: block;
    }
    .logo{
        visibility: hidden;
    }
    .user{
        width: 35%;
    }

    .main-content {
        margin-left: 0;
    }
    
    .popup-content {
        margin: 14% auto;
    }

}

@media screen and (max-width: 480px) {
    /* Further adjustments for smaller mobile screens */
    .sidebar {
        transform: translateX(-100%);
        width: 45%; /* Sidebar will take 60% of the screen */
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .popup-content {
        margin: 30% auto;
    }
    .hamactive{
        display: block;
    }
    .logo.active{
        visibility: hidden;
    }
    .orders-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 50%;
    }

}