/* Admin Dashboard Table Styles */
.admin-dashboard {
  background: #f9fafb;
  height: 100vh;
}

.admin-dashboard .admin-table-container {
  padding: 0 20px 20px 20px;
}
.admin-dashboard .admin-data-table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
  /* box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px; */
  background: #fff;
  box-shadow: var(--box-shadow);
}
.admin-dashboard .admin-table-header {
  color: var(--black-color);
  border: 1px solid var(--primary-color);
}

.admin-dashboard .admin-table-header th {
  padding: 12px 15px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.admin-table-header a {
  color: var(--black-color);
}

.admin-table-header th {
  text-align: center;
}

.admin-dashboard .admin-table-body .admin-table-row {
  transition: all 0.3s ease;
}

.admin-dashboard .admin-table-body .admin-table-row:hover {
  background-color: #f8f9fc;
}

.admin-dashboard .admin-table-body td {
  padding: 12px 15px;
  vertical-align: middle;
  border-top: 1px solid #e3e6f0;
  text-align: center;
  color: #667085;
}

.admin-dashboard .admin-table-id {
  text-align: center;
  font-weight: 600;
}

.admin-dashboard .admin-table-heading {
  font-weight: 500;
  text-align: center;
}

.admin-dashboard .admin-table-date {
  text-align: center;
}

.admin-dashboard .admin-table-division,
.admin-dashboard .admin-table-type {
  text-align: center;
}

.admin-dashboard .admin-table-actions {
  text-align: center;
  width: 15%;
}

/* .admin-table-actions {
    display: flex;
    justify-content: center;
    gap: 5px;
} */

.admin-dashboard .admin-edit-btn,
.admin-dashboard .admin-delete-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 3px;
}

/* Badge Styles */
.badge-hr {
  background-color: #36b9cc;
}
.badge-finance {
  background-color: #1cc88a;
}
.badge-it {
  background-color: #f6c23e;
  color: #000;
}
.badge-operations {
  background-color: #e74a3b;
}
.badge-marketing {
  background-color: #858796;
}

.badge-internal {
  background-color: #4e73df;
}
.badge-external {
  background-color: #1cc88a;
}
.badge-urgent {
  background-color: #e74a3b;
}

/* Modal Styles */
.admin-confirm-modal .admin-modal-header {
  background-color: #4e73df;
  color: white;
  border-bottom: none;
}

.admin-confirm-modal .admin-modal-body {
  padding: 20px;
  font-size: 16px;
}

.admin-confirm-modal .admin-modal-footer {
  border-top: none;
  padding: 15px 20px;
}
.admin-dashboard .card-header {
  padding: 15px 20px;
  justify-content: space-between;
}
.btn-add-new {
  padding: 5px 8px;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 0.5rem;
  /* display: inline-block; */
}
.btn-add-new:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  border: 1px solid var(--white-color);
}
.btn-add-new img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  display: block;
}
.card-header h1 {
  font-weight: 400;
}

.btn-add-new:hover img {
  color: white;
  background-color: white;
}

.btn-danger:hover {
  background-color: #e74a3b;
  color: var(--white-color);
  border: 1px solid #e74a3b;
}
.btn-danger {
  color: #e74a3b;
  background-color: var(--white-color);
  border: 1px solid #e74a3b;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.modal-buttons {
  margin-top: 20px;
}

.btn-confirm {
  background: red;
  color: white;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

.btn-cancel {
  background: gray;
  color: white;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  margin-left: 10px;
}

/* gallery list */
.gallery-cards-container {
  padding: 2rem 0;
}

.gallery-cards-container .row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-card {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%;
}

.gallery-card:hover {
  transform: translateY(-5px);
}

.gallery-card img {
  height: 100px;
  object-fit: contain;
  width: 300px;
}

.gallery-card .card-body {
  padding: 1rem;
}

.gallery-card .card-title {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.pagination-container {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}
.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pagination li {
  margin: 0 5px;
}
.pagination li a,
.pagination li span {
  padding: 8px 16px;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 4px;
}
.pagination li.active span {
  background-color: var(--primary-color);
  color: var(--white-color);
  border-color: var(--primary-color);
}
.pagination li a:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}
.form-image-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two equal-width columns */
  gap: 15px; /* Space between items */
  margin-top: 10px;
}

.pagination .active a{
  background-color: var(--primary-color);
  color: var(--white-color);
}

/* Admin Homepage CSS Starts */

:root {
  --primary: #4361ee;
  --primary-light: #e6f0ff;
  --secondary: #3f37c9;
  --dark: #1a1a2e;
  --light: #f8f9fa;
  --gray: #6c757d;
  --success: #4cc9f0;
  --danger: #f72585;
  --border-radius: 12px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

.dashboard-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 2rem;
  overflow: hidden;
  transition: var(--transition);
}

.dashboard-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
}

.card-badge {
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.card-body {
  padding: 1.5rem;
}

.modern-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: var(--transition);
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: var(--transition);
  border-radius: 50%;
}

.toggle-input:checked + .toggle-slider {
  background-color: var(--primary);
}

.toggle-input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.toggle-label {
  font-size: 0.9rem;
  color: var(--gray);
}

.dynamic-inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-group {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  position: relative;
}

.input-field {
  flex: 1;
}

.input-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray);
}

.modern-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.modern-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-primary,
.btn-secondary,
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  width: 25%;
  text-align: center;
  display: inline;
}

.btn-primary:hover {
  background: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-2px);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-light);
}

  .btn-icon {
    padding: 0.2rem;
    border-radius: 30%;
    background: #ff00005e;
  }

.btn-icon:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--dark);
}

.remove-input {
  margin-bottom: 0.3rem;
}

@media (max-width: 768px) {
  .input-group {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions {
    flex-direction: column;
  }
}

/* Homepage CSS Ends */

.bg-success {
  color: white;
  background-color: green;
  padding: 5px;
  border-radius: 5px;
}

.bg-danger {
  color: white;
  background-color: red;
  padding: 5px;
  border-radius: 5px;
}

.btn-edit {
}

/* Dashboard CSS Starts */

.view-all {
  margin: 2rem 0 1rem;
}

h2 {
  margin-bottom: 1.5rem;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.dashboard-section {
  flex: 1 1 calc(25% - 1rem);
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  text-align: center;
}
.list-group {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}
.list-group-item {
  background: white;
  border: 1px solid #ddd;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
}
.quick-action-btn {
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 0.5rem;
  color: white;
  cursor: pointer;
  min-width: 160px;
}
.btn-primary {
  background-color: #fff;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}
.btn-secondary {
  background-color: #fff;
}
.btn-standard {
  background-color: #6c757d;
}
.btn-success {
  border: 1px solid #28a745;
  color: #28a745;
}
.btn-success:hover,
.btn-success:focus,
.btn-warning:hover,
.btn-warning:focus {
  background-color: var(--primary-color);
  color: #fff;
}
.btn-warning {
  border: 1px solid #ffc107;
  color: #ffc107;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
}
th,
td {
  padding: 0.75rem;
  border: 1px solid #dee2e6;
  text-align: left;
}
thead {
  background-color: #f1f1f1;
}
textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  resize: vertical;
}
@media (max-width: 768px) {
  .col-md-3 {
    flex: 1 1 100%;
  }
  .quick-action-btn {
    width: 100%;
  }
}

.btn-danger {
  margin-left: 5px;
}
/* Dashboard CSS Ends */

.filter-section {
  padding: 0px 20px 20px 20px;
}

.sort-arrow {
  color: #bfbfbf;
}
.sort-arrow.active {
  color: #333;
}

.dashboard-container {
  padding-bottom: 40px;
}
