body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f5f7fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.navbar {
    background-color: #111;
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left a {
    color: #fff;
    text-decoration: none;
    margin-right: 20px;
    font-size: 16px;
}

.nav-left a i,
.nav-left a box-icon {
    margin-right: 5px;
    vertical-align: middle;
}

.nav-right input {
    padding: 7px;
    border-radius: 5px;
    border: none;
    width: 200px;
}

.container {
    margin: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

button {
    padding: 8px 12px;
    background-color: #0a1d56;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

table {
    width: 100%;
    margin-top: auto;
    border-collapse: collapse;
}

th, td {
    padding: 15px;
    border-bottom: 1px solid #ccc;
    text-align: center;
}

.out-of-stock {
    color: red;
    font-weight: bold;
}

.modal {
    position: fixed;
    display: none;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
}

.modal-content input {
    width: 100%;
    margin: 10px 0;
    padding: 8px;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
}

.header h1 {
    margin: 0;
    font-size: 28px;
    color: #000;
}

.header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
    margin-top: 5px;
}

.header-text {
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#addItemBtn {
    margin-left: auto;
}

/* Footer Styling */
.footer {
    background-color: #000;
    color: #fff;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s, color 0.3s;
}

.social-links a:hover {
    transform: scale(1.2);
    color: #ddd;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
    margin-bottom: 1.5rem;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #ddd;
    text-decoration: underline;
}

.copyright {
    font-size: 0.9rem;
    color: #aaa;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav-left {
        margin-bottom: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-right input {
        margin-right: 0;
        width: 100%;
    }
    
    .container {
        padding: 7rem 1rem 1rem;
        margin: 0;
    }
    
    .footer-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}
.buttons-container button {
  display: block;
  width: 150px; /* optional fixed width */
  margin-bottom: 10px; /* space between buttons */
}
.totals {
  display: flex;
  justify-content: space-around; /* spread evenly */
  background-color: #f0f0f0;
  padding: 10px 0;
  margin-top: 15px;
  border-radius: 5px;
  font-weight: 600;
  font-family: Arial, sans-serif;
}

.totals p {
  margin: 0 10px;
  color: #333;
  font-size: 16px;
}
.out-of-stock-row {
  background-color: #f8d7da; /* subtle light red */
  color: #842029; /* dark red text */
}

.low-stock-row {
  background-color: #fff3cd; /* subtle light yellow */
  color: #664d03; /* dark yellow/brown text */
}
