/* ======= General ======= */
main {
    text-align: center;
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #121212;
    color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ======= Header Titles ======= */
h1, h2, h3 {
    color: #ffffff;
    padding-bottom: 5px;
}

/* ======= Navigation ======= */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: inline-block;
    background: #333;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #888;
    color: #f0f0f0;
    text-decoration: none;
}

nav li a:hover {
    background-color: #444;
    color: #fff;
}

/* ======= Dropdown Menu Styles ======= */
nav ul.main-nav {
    position: relative;
}

.dropdown {
    position: relative;
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    background-color: #1f1f1f;
    border: 1px solid #888;
    padding: 0;
    margin: 0;
    border-radius: 8px;
    min-width: 160px;
    z-index: 1000;
}

.sub-menu li a {
    display: block;
    padding: 10px 15px;
    color: #f0f0f0;
    text-decoration: none;
    border-bottom: 1px solid #333;
}

.sub-menu li a:hover {
    background-color: #333;
    color: #fff;
}

.dropdown:hover .sub-menu {
    display: block;
}

/* ======= Forms ======= */
form {
    max-width: 600px;
    width: 100%;
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #555;
    margin: 20px auto;
    box-sizing: border-box;
}

form label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: bold;
    color: #ffffff;
}

input, select, textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #666;
    border-radius: 5px;
    background-color: #2a2a2a;
    color: #fff;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1rem;
}

input[type="submit"],
button {
    background-color: #444;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
    padding: 12px;
    border-radius: 5px;
    transition: background-color 0.3s;
    width: 100%;
    box-sizing: border-box;
}

input[type="submit"]:hover,
button:hover {
    background-color: #666;
}

/* ======= Tables ======= */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: auto;
    word-wrap: break-word;
    background-color: #1e1e1e;
    color: #fff;
}

th, td {
    border: 1px solid #555;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #333;
    color: #fff;
}

td {
    background-color: #2a2a2a;
    color: #fff;
}

/* ======= Success/Error Box ======= */
.success, .error {
    max-width: 600px;
    width: 100%;
    margin: 0 auto 20px auto;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
}

.success {
    background-color: #264d3c;
    color: #c1f2dd;
    border: 1px solid #388e3c;
}

.error {
    background-color: #5b2324;
    color: #ffcdd2;
    border: 1px solid #e57373;
}

/* ======= Product & Station Cards ======= */
.product, .station {
    background-color: #1e1e1e;
    border: 1px solid #555;
    padding: 15px;
    margin: 10px;
    width: 250px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
    color: #fff;
}

.product img, .station img {
    width: 200px;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Table section headers */
.batch-header td {
    background-color: #222;
    font-weight: bold;
    padding: 8px;
    font-size: 15px;
    border: none;
    text-align: left;
    color: #fff;
}

/* ======= Universal Box Fixes ======= */
.box, .card, .inventory-box, .station, .product {
    box-sizing: border-box;
    max-width: 600px;
    width: 100%;
    margin: 10px auto;
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 10px;
    border: 1px solid #555;
    color: #fff;
}

select, input, textarea {
    max-width: 100%;
    box-sizing: border-box;
}

.actions a {
    padding: 6px 12px;
    margin: 0 5px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

.actions .edit {
    background-color: #007bff; /* Bootstrap blue */
    color: white;
}

.actions .edit:hover {
    background-color: #0056b3;
}

.actions .delete {
    background-color: #dc3545; /* Bootstrap red */
    color: white;
}

.actions .delete:hover {
    background-color: #a71d2a;
}

