/* General Styles */
body {
  font-family: Arial, sans-serif;
  font-size: 14px;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
}

/* 📌 Mobile-Friendly Layout */
.page-container {
  display: flex;
  flex-direction: row; /* Default: Sidebar on the left */
}

/* ✅ Sidebar - Collapses on Mobile */
.sidebar {
  width: 200px;
  background: #f1f1f1;
  padding: 20px;
  min-height: 100vh;
  transition: all 0.3s ease-in-out;
}

/* 📌 Hide Sidebar on Mobile */
@media (max-width: 768px) {
  .page-container {
    flex-direction: column; /* Stack content on mobile */
  }

  .sidebar {
    width: 100%;
    min-height: auto;
    padding: 10px;
    display: none; /* Hidden by default */
  }

  .sidebar.active {
    display: block; /* Show when menu button is clicked */
  }
}

/* ✅ Sidebar Links */
.sidebar ul {
  list-style-type: none;
  padding: 0;
}

.sidebar ul li {
  margin: 10px 0;
}

.sidebar ul li a {
  color: #614614;
  font-weight:600;
  text-decoration: none;
  padding: 10px;
  display: block;
  border-radius: 5px;
  font-size: 18px;
}

.sidebar ul li :hover,
.sidebar ul li.active {
  background: #FFF;
  color: #000 !important;
}

/* ✅ Content Adjustments */
.content {
  flex-grow: 1;
  padding: 20px;
}

/* ✅ Responsive Table */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  overflow-x: auto;
}

/* 📌 Ensure Tables Scroll on Mobile */
@media (max-width: 768px) {
  .styled-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* ✅ Table Styling */
.styled-table th, .styled-table td {
  padding: 8px;
  border: 1px solid #ddd;
}

.styled-table th {
  background: #568A59;
  color: white;
  padding: 10px 8px;
}

.styled-table tr:nth-child(even) {
  background: #f2f2f2;
}

.badge-basic {
background-color: grey;
padding: 1px 10px;
border-radius: 10px;
color: white;
}
.badge-new {
background-color: green;
padding: 1px 10px;
border-radius: 10px;
color: white;
}
.badge-success {
background-color: rgb(20, 145, 230);
padding: 1px 10px;
border-radius: 10px;
color: white;
}

/* ✅ Buttons & Forms */
button, .edit-btn, .new-btn, .delete-btn {
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 5px;
  border: none;
  box-shadow: none;
  cursor: pointer;
  font-size: 16px;
}

.new-btn {
  color: white;
  display: inline-block;
  margin-bottom: 10px;
  background-color: #568A59;
  border-radius: 5px;
  margin-bottom: 15px;
  padding:0px;
}

.new-btn:hover {
  background-color: darkgreen;
}
.new-btn-text {
  color: white;
  font-size: 14px;
  text-decoration: none;
  line-height: 36px;
  padding: 10px;
  width: 100%;
}

.edit-btn {
  background: #007BFF;
  color: white;
}

.delete-btn {
  background: #dc3545;
  color: white;
}

.approve-btn {
  background-color: #28a745;
  color: white;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
  margin-right: 5px;
}

.deny-btn {
  background-color: #dc3545;
  color: white;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
  margin-right: 5px;
}

.approve-btn:hover {
  background-color: #218838;
}

.deny-btn:hover {
  background-color: #c82333;
}

.actions-cell {
  text-align: center;
  white-space: nowrap;
}

.action-buttons {
  display: flex;
  gap: 5px; /* Space between buttons */
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* Allows wrapping if needed */
}

.action-buttons form {
  display: inline;
}

.menu-btn {
  display:none;
}

/* 📌 Mobile-Friendly Buttons */
@media (max-width: 768px) {
  button, .edit-btn, .delete-btn {
    width: 100%;
    margin-bottom: 10px;
    font-size: 16px;
    padding: 12px;
  }
  .new-btn {
    margin-bottom: 10px;
    font-size: 16px;
    padding: 0;
  }
  .action-buttons form {
    width:100%;
  }
  .menu-btn {
    display:block;
  }
}

/* ✅ Mobile-Friendly Forms */
@media (max-width: 768px) {
  input, select, textarea {
    width: 100%;
    font-size: 16px;
    padding: 12px;
  }
}
