/* Global styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
}

header {
    background-color: #2e8b57; /* Green */
    color: white;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin: 0;
}

nav {
    margin-top: 10px;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
}

nav a:hover {
    text-decoration: underline;
}

/* Container */
.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}

/* Item styling */
.item {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 20px;
    background-color: white;
    border-radius: 5px;
    text-align: center; /* Centers content including button */
}

.item h2 {
    margin-top: 0;
}

.item p {
    margin: 5px 0;
}

.buy-button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #007bff; /* Blue */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    margin-top: 10px;
}

.buy-button:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
    background-color: #2e8b57;
    color: white;
    padding: 10px;
    text-align: center;
    position: relative;
    width: 100%;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Filter and Sort Bar */
.filter-sort-bar {
    margin-bottom: 20px;
}

.filter-sort-bar input[type="text"],
.filter-sort-bar select {
    padding: 5px;
    margin-right: 10px;
}

.filter-sort-bar button {
    padding: 5px 10px;
    background-color: #2e8b57;
    color: white;
    border: none;
    cursor: pointer;
}

.filter-sort-bar button:hover {
    background-color: #006400;
}

/* Category List */
.category-list a {
    margin-right: 15px;
    color: #007bff;
    text-decoration: none;
}

.category-list a:hover {
    text-decoration: underline;
}

/* Login container styles */
.login-container {
    width: 400px;
    margin: 100px auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

h1 {
    text-align: center;
    color: white !important;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-form label {
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.login-form button {
    padding: 10px;
    background-color: #2e8b57;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
}

.login-form button:hover {
    background-color: #006400;
}

/* Error message */
p {
    text-align: center;
    color: white;
}

h1, h2 {
    color: #2e8b57;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
}

table th {
    background-color: #2e8b57;
    color: white;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table a {
    color: #007bff;
    text-decoration: none;
}

table a:hover {
    text-decoration: underline;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    margin: 0 5px;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.pagination a.active {
    background-color: #0056b3;
}

button, .button {
    background-color: #2e8b57;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin: 10px 0;
}

button:hover, .button:hover {
    background-color: #006400;
}

footer {
    background-color: #2e8b57;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

form {
    margin-bottom: 20px;
}

form .form-row {
    margin-bottom: 15px;
}

form .form-row label {
    display: block;
    font-weight: bold;
}

form input[type="text"],
form input[type="number"],
form textarea,
form select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    background-color: #2e8b57;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

form button:hover {
    background-color: #006400;
}

form .two-columns {
    display: flex;
    justify-content: space-between;
}

form .two-columns div {
    width: 48%;
}

.category-management {
    margin-top: 20px;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 10px;
}

table th {
    background-color: white;
    color: #333;
    cursor: pointer;
}

table th a {
    text-decoration: none;
    color: #333;
}

table th:hover {
    background-color: #e6e6e6;
}

table tr:hover {
    background-color: #e6f7ff;
}

.buy-button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #007bff; /* Blue */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    margin-top: 10px;
}

.buy-button:hover {
    background-color: #0056b3;
}

/* Added styles for action buttons */
.action-buttons {
    display: flex;
    gap: 8px; /* Space between buttons */
    flex-wrap: wrap; /* Wrap if needed */
}

.btn {
    display: inline-block;
    padding: 6px 10px;
    text-decoration: none;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

/* Customize colors for each button type */
.btn-edit {
    background-color: #4CAF50; /* Green */
}

.btn-print {
    background-color: #2196F3; /* Blue */
}

.btn-sold {
    background-color: #FF9800; /* Orange */
}

.btn-delete {
    background-color: #F44336; /* Red for delete */
}
.btn-label {
    background-color: #9C27B0; /* Purple */
}
.btn-label:hover {
    background-color: #7B1FA2; /* Darker purple on hover */
}
