/* Base settings for both frontend and backend */
body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #fafafa;
    /* Light grey background for a clean look */
    color: #333;
    /* Dark grey for text for better readability */
}

h1 {
    color: #27ae60;
    /* Green for primary headings */
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    margin-top: 20px;
}

h2 {
    color: #2ecc71;
    /* Lighter shade of green for secondary headings */
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 20px;
}

table {
    table-layout: fixed;
}


button {
    padding: 10px 15px;
    margin: 2px 10px 2px 0;
    background-color: #27ae60;
    /* Brand green for buttons */
    color: white;
    border: none;
    border-radius: 4px;
    /* Rounded corners for a modern look */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2ecc71;
    /* Slightly lighter green on hover */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    /* Light grey border for separation */
}

th {
    background-color: #27ae60;
    /* Brand green for table headers */
    color: white;
}

tbody tr:hover {
    background-color: #e0e0e0;
    /* Light grey background on hover for rows */
}

input,
select,
textarea {
    width: 100%;
    /* Full width inputs */
    padding: 8px;
    margin: 8px 0;
    border: 1px solid #ccc;
    /* Soft grey border */
    border-radius: 4px;
    box-sizing: border-box;
    /* Include padding and border in the input's size */
}

input:focus,
select:focus,
textarea:focus {
    border-color: #2ecc71;
    /* Light green border on focus */
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.2);
    /* Soft green glow */
}

/* Targeting inputs specifically within the orderingTable for special styling */
#orderingTable input[type="number"] {
    width: 100%;
    /* Full width inputs */
    padding: 8px;
    margin: 0px 0;
    border: 1px solid #ccc;
    /* Soft grey border */
    border-radius: 4px;
    box-sizing: border-box;
    width: 40%;
    /* Include padding and border in the input's size */
}

#orderingTable input[type="number"]:focus {
    border-color: #2ecc71;
    /* Light green border on focus */
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.2);
    /* Soft green glow */
}


.error-message {
    color: #e74c3c;
    /* Red for errors */
    margin: 0px;
    font-size: 12px;
}

.container {
    max-width: 90%;
    margin: auto;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Soft shadow for depth */
    padding: 20px;
    border-radius: 8px;
    /* Rounded corners for the container */
}

.container_manage {
    max-width: 800px;
    margin: auto;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Soft shadow for depth */
    padding: 20px;
    border-radius: 8px;
    /* Rounded corners for the container */
}

/* Navbar Styles */
.navbar {
    background-color: #27ae60; /* Brand green */
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.navbar a {
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    font-weight: bold;
}

.navbar a:hover {
    background-color: #2ecc71;
}

.admin-link {
    display: block;
    text-align: right;
    margin: 20px 0;
    font-size: 12px; /* Smaller font size */
    color: #888; /* Neutral color */
    padding: 5px;
}

.admin-link:hover {
    color: #27ae60; /* Brand green on hover */
}

.footer {
    max-width: 90%; /* Match the container's max-width */
    margin: auto; /* Center the footer */
    padding: 20px;
    text-align: right;
}

.back-link {
    background-color: #000; /* Lighter background */
    color: #27ae60;
    padding: 8px 12px;
}

.back-link:hover {
    background-color: #e0e0e0; /* Even lighter on hover */
}

/* Override DataTables header style */
table.dataTable thead th {
    background-color: #27ae60 !important;
    color: white;
}

/* Adjust row hover effect */
table.dataTable tbody tr:hover {
    background-color: #e0e0e0;
}

/* Ensure input fields are properly styled */
table.dataTable input[type="number"] {
    width: 100%;
    box-sizing: border-box;
}

/* Hide DataTables default sorting icons if desired */
table.dataTable thead .sorting::after,
table.dataTable thead .sorting_asc::after,
table.dataTable thead .sorting_desc::after {
    display: none;
}

/* Vendor Info Section */
.vendor-info {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9; /* Light background */
    border: 1px solid #e0e0e0; /* Light border */
    border-radius: 4px;
}

.vendor-info h2 {
    margin-top: 0;
    color: #27ae60; /* Brand green */
}

.email-copy-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap; /* Allows wrapping if necessary */
}

.email-copy-container label {
    margin-right: 10px;
}

.email-copy-container input[type="text"] {
    width: auto;
    max-width: 300px; /* Adjust as needed */
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#copyEmailButton {
    padding: 8px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#copyEmailButton i {
    font-size: 16px;
}

#copyEmailButton:hover {
    background-color: #2ecc71;
}