/* FILE: styles.css (Admin Panel Base Styling) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #f4f7f6;
  color: #333;
  line-height: 1.6;
}

/* Sidebar Navigation */
.sidebar {
  height: 100%;
  width: 250px;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #2c3e50;
  padding-top: 20px;
}

.sidebar h2 {
  color: #ecf0f1;
  text-align: center;
  margin-bottom: 30px;
}

.sidebar a {
  padding: 15px 25px;
  text-decoration: none;
  font-size: 16px;
  color: #bdc3c7;
  display: block;
  transition: 0.3s;
}

.sidebar a:hover,
.sidebar a.active {
  color: #ffffff;
  background-color: #34495e;
}

/* Main Content Area */
.main-content {
  margin-left: 250px;
  padding: 30px;
}

/* Forms, Buttons, and Tables */
form {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

input[type="text"],
input[type="number"],
textarea,
input[type="date"],
input[type="file"],
input[type="time"],
select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

input[type="submit"],
button {
  background-color: #2ecc71;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 20px;
  font-size: 16px;
  transition: background-color 0.3s;
}

input[type="submit"]:hover,
button:hover {
  background-color: #27ae60;
}

.message-success {
  background-color: #d4edda;
  color: #155724;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #c3e6cb;
  border-radius: 4px;
}

.message-error {
  background-color: #f8d7da;
  color: #721c24;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
th,
td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}
th {
  background-color: #f2f2f2;
}

.status-Pending {
  color: #f39c12;
}
.status-Approved {
  color: #27ae60;
}
.status-Rejected {
  color: #e74c3c;
}

.expired {
  background-color: #f7d7da;
  font-weight: bold;
}
.expiring-soon {
  background-color: #fce6cc;
}
.forms-container {
  display: flex;
  gap: 30px;
}
.forms-container > div {
  flex: 1;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
}

/* Custom Styles for Fixed Table/Form Elements */
.stock-table th,
.stock-table td {
  border: 1px solid #bdc3c7;
  font-size: 0.9em;
  vertical-align: middle;
}
.action-links a {
  margin-right: 10px;
  text-decoration: none;
  color: #3498db;
}
.delete-btn {
  color: #e74c3c;
}
.product-image-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}
