body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 18px; /* Increased font size for body text */
}

h1 {
    text-align: center;
    background-color: #333;
    color: white;
    padding: 15px 0;
    margin-bottom: 30px;
    font-size: 32px; /* Increased font size for h1 */
}

.default-form {
    background-color: #fff;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #e74c3c;
    margin-bottom: 15px;
    font-size: 24px; /* Increased font size for h2 */
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: #555;
    font-size: 18px; /* Increased font size for labels */
}

input[type="text"], input[type="password"], input[type="email"], input[type="datetime-local"], input[type="date"], input[type="number"], textarea, select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px; /* Increased font size for inputs and selects */
}

button {
    background-color: #e74c3c;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px; /* Increased font size for button */
    transition: background-color 0.3s ease;
    width: 100%;
}

button:hover {
    background-color: #c0392b;
}

/* Responsive Styles */
@media (max-width: 768px) {
    form {
        padding: 15px;
        max-width: 90%;
    }

    input[type="text"], input[type="password"], input[type="email"], input[type="datetime-local"], input[type="number"], textarea, select {
        padding: 8px;
    }

    button {
        font-size: 16px; /* Adjusted font size for button on smaller screens */
        padding: 8px;
    }

    .topnav a {
        float: none;
        display: block;
        text-align: center;
    }
}

/* mobile format */
@media (max-width: 48em) {
    h1 {
        font-size: 28px; /* Adjusted font size for h1 on smaller screens */
    }

    h2 {
        font-size: 22px; /* Adjusted font size for h2 on smaller screens */
    }

    label {
        font-size: 16px; /* Adjusted font size for labels on smaller screens */
    }

    button {
        font-size: 16px; /* Adjusted font size for button on smaller screens */
    }
    .topnav {
        justify-content: default;
    }
    .topnav div {
        margin: 0 auto;
    }
    .nav-left .nav-right {
        min-width: 60%;
    }
    .ham-menu-area {
        display: inline !important;
    }
    .normal-menu {
        display: none !important;
    }
    .error button {
        width: 135px !important;
    }
}    


/* Tutorial new 3.12 */
.ham-menu-area {
    display: none;
}

.normal-menu {
    display: inline;
}

.off-screen-menu {
    background-color: #333;
    opacity: 0%;
    min-height: 100vh;
    width: 100%;
    position: fixed;
    top: -900px;
    right: 0;
    /*right: -480px;*/
    flex-direction: column;
    justify-content: center;
    display: flex;
    align-items: center;
    text-align: center;
    font-size: 1.6rem;
    transition: .3s ease;
    z-index: 998; /* Ensure it's above everything */
    margin-top: 4em;
}

.off-screen-menu.active {
    right: 0;
    top: 0;
    opacity: 90%;
}

nav {
    padding: 1rem;
    padding-right: 0;
    display: flex;
    background-color: #333;
    z-index: 999; /* Ensure it's above everything */
}    
.on-top {
    z-index: 999;
}
.on-bottom {
    z-index: 990;
}
.ham-menu-logo img{        
    object-fit: contain;
    max-width: 70px;    
}
.ham-menu-logo{
    margin-left: 0 !important;
}
.ham-menu {
    height: 40px;
    width: 50px;
    margin-left: auto;
    position: relative;
}
.ham-menu span {
    height: 3px;
    width: 100%;
    background-color: rgb(237, 28, 36);
    border-radius: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    transition: .3s ease;
}
.ham-menu span:nth-child(1) {
    top: 25%;
}
.ham-menu span:nth-child(3) {
    top: 75%;
}
.ham-menu.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.ham-menu.active span:nth-child(2) {
    opacity: 0;
}
.ham-menu.active span:nth-child(3){
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}


/* Tutorial new 3.12  END */


.success-message {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    vertical-align: center;
    width: 40%;
    margin: 1% auto;
}

.success-message h2 {
    font-size: 24px; /* Increased font size for success message heading */
    color: #3c763d;
}

.success-message button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 18px; /* Increased font size for success message button */
    border-radius: 4px;
    cursor: pointer;
}


/* Top Navigation Menu */
.topnav {
    background-color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 20px;
    min-height: 3em;
}

.topnav a.active {
    color: rgb(245, 118, 118);
    border-bottom: 3px solid red; /* Red underline for the active tab */
}

.nav-left a, .nav-right a {
    color: white;
    padding: 14px 20px;
    padding: 14px 20px;
    text-decoration: none;
}

.nav-left a:hover, .nav-right a:hover {
    background-color: #ddd;
    color: black;
    transition: all 0.3s ease-in-out; /* Smooth hover effect */
}

/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown button */
.dropbtn {
    background-color: #333;
    color: white;
    padding: 14px 30px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    margin-top: 12px;
    background-color: #333;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: white;
    padding: 12px 16px;
    width: 180px;
    margin: 0 auto;
    text-align: center;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: #ddd;
    color: rgb(0, 0, 0);
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Change the background color of the dropdown button when the dropdown is shown */
.dropdown:hover .dropbtn {
    background-color: #ddd;
    color: black;
}

/* Content */
.content {
    margin: 60px 0; /* To prevent the content from hiding under the fixed navbar */
}

/* Error message styling */
.error {
    color: #e74c3c; /* Red color for the error text */
    background-color: #f8d7da; /* Light red background */
    border: 1px solid #f5c6cb; /* Border to match the background */
    width: 70%;
    margin: 0 auto;
    text-align: center;         /* Centered text */
    padding: 10px; /* Padding for space around the message */
    margin-bottom: 20px; /* Margin to space out the message from other elements */
    border-radius: 5px; /* Rounded corners for a polished look */
    font-size: 16px; /* Font size for better visibility */
}
.error button {
    width: 160px;
    margin: 5px auto;
}

.info {
    background-color: #dff0d8; /* Light green background */
    color: #3c763d;           /* Dark green text */
    border: 1px solid #d6e9c6; /* Slightly darker green border */
    border-radius: 5px;        /* Rounded corners */
    padding: 15px;             /* Padding inside the box */
    margin-bottom: 20px;       /* Space below the message */
    font-size: 16px;           /* Text size */
    text-align: left;          /* Left-align text */
}

.greeting {
    pointer-events: none;
}

/* Info message container */
.info-message-align {
    padding: 20px;              /* Padding inside the message */
    text-align: center;         /* Centered text */
    width: 70%;                 /* Limits the width */
    margin: 10% auto;           /* Centers the message on the page */
}

.info-message {
    background-color: #d9edf7;  /* Light blue background */
    color: #31708f;             /* Dark blue text */
    border: 1px solid #bce8f1;  /* Blue border */
    border-radius: 5px;         /* Rounded corners */
}

/* Info message heading */
.info-message h2 {
    margin: 0 0 20px;
    padding: 10px;           /* Adds space below the heading */
    font-size: 24px;            /* Font size for heading */
    color: #31708f;             /* Dark blue color */
}

/* Button inside info message */
.info-message a {
    background-color: #5dc4f8;  /* Dark blue background for button */        
    text-decoration: none;  
    color: white;               /* White text on the button */
    border: none;               /* No border */
    padding: 8px 20px;         /* Padding for the button */
    font-size: 18px;            /* Font size for the button */
    border-radius: 4px;         /* Rounded button */
    cursor: pointer;            /* Pointer cursor on hover */
    line-height: 2.2;           /* Adjust as needed */
}

/* Button hover effect */
.info-message a:hover {
    background-color: #245269;  /* Darker blue on hover */
}

.outerBox {
    background-color: #fff;
    max-width: 80%;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}


/* Manage users */

/* Table Styles */
.styled-table {
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 18px;
    width: 100%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.styled-table thead tr {
    background-color: #671b12;
    color: #ffffff;
    text-align: left;
}

.styled-table th, .styled-table td {
    padding: 12px 15px;
}

.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid #e74c3c;
}

.styled-table tbody tr:hover {
    background-color: #f5f5f5;
    cursor: pointer;
}

/* Button Styles */
.action-btn {
    background-color: #e74c3c;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    margin: 3px 5px;
}

.action-btn:hover {
    background-color: #c0392b;
}

/* For Mobile devices */
@media (max-width: 768px) {
    .styled-table, .styled-table thead, .styled-table tbody, .styled-table th, .styled-table td, .styled-table tr {
        display: block;
    }

    .styled-table tr {
        margin-bottom: 15px;
    }
    tr {
        margin-bottom: 20px;
    }
    .styled-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    .styled-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 15px;
        font-weight: bold;
        text-transform: capitalize !important;
        text-align: left;
    }
    .outerBox {
        margin: 0 auto;
        max-width: 100%;

    }
    .td {
        border: 1px solid black;

    }
}

.manage-box {
    background-color: #fff;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.manage-box-orders {
    background-color: #fff;
    max-width: 90%;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* links styles */
.forgot-password {
    font-size: 0.9rem; /* Adjust font size */
    color: #b50000; /* Subtle blue color */
    text-decoration: none; /* Remove underline */
    cursor: pointer; /* Pointer cursor for interactivity */
    transition: color 0.3s ease; /* Smooth hover effect */
}

.forgot-password:hover {
    color: #f50000; /* Darker blue on hover */
    text-decoration: underline; /* Underline on hover for clarity */
}