* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  min-height: 100vh;
  background-color: #f5f5f5;
}

.sidebar {
  width: 270px;
  background: linear-gradient(180deg, #e63946 0%, #c1121f 100%);
  color: white;
  padding: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}

.logo-text {
  font-size: 32px;
  font-weight: bold;
}

.logo-alfamart {
  background: white;
  color: #0066cc;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: bold;
}

.menu-item {
  padding: 12px 15px;
  margin-bottom: 10px;
  cursor: pointer;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.menu-item.active {
  background-color: #9fc131;
}

.menu-item:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.1);
}

.menu-section {
  margin-bottom: 20px;
}

.menu-title {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.navbar {
  background-color: white;
  padding: 15px 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.navbar-menu {
  display: flex;
  gap: 20px;
  align-items: center;
}

.navbar-item {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.3s;
}

.navbar-item:hover {
  color: #e63946;
}

.content-wrapper {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.page-title {
  color: #e63946;
  font-size: 32px;
  font-weight: bold;
}

.btn-add {
  background-color: #0066cc;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-add:hover {
  background-color: #0052a3;
}

.filter-section {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-label {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.filter-select {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  background-color: white;
  cursor: pointer;
}

.table-container {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background-color: #ffccd5;
}

th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #ddd;
}

td {
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
}

tbody tr:hover {
  background-color: #f9f9f9;
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.btn-action {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.btn-delete {
  background-color: #e63946;
  color: white;
}

.btn-history {
  background-color: #e63946;
  color: white;
}

.btn-edit {
  background-color: #ffd60a;
  color: #333;
}

.btn-delete:hover,
.btn-history:hover {
  background-color: #c1121f;
}

.btn-edit:hover {
  background-color: #ffc300;
}

.dropdown-menu {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  background: white;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 160px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1;
  border-radius: 4px;
  margin-top: 4px;
}

.dropdown-content.show {
  display: block;
}

.dropdown-item {
  padding: 10px 15px;
  cursor: pointer;
}

.dropdown-item:hover {
  background-color: #f5f5f5;
}

/* 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);
  animation: fadeIn 0.3s;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  border-radius: 8px;
  overflow: hidden;
  animation: slideIn 0.3s;
}

.modal-header {
  background-color: #ffd60a;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #333;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #e63946;
}

.modal-body {
  padding: 30px;
  max-height: calc(90vh - 200px);
  overflow-y: auto;
}

.info-table {
  width: 100%;
  margin-bottom: 30px;
  border-collapse: collapse;
}

.info-table thead {
  background-color: #ffeaa7;
}

.info-table th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  border: 1px solid #ddd;
}

.info-table td {
  padding: 12px;
  border: 1px solid #ddd;
}

.log-section {
  margin-top: 20px;
}

.log-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}

.log-table-container {
  border: 2px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.log-table {
  width: 100%;
  border-collapse: collapse;
}

.log-table thead {
  background-color: #ffeaa7;
}

.log-table th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #ddd;
}

.log-table td {
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.log-table tbody tr:hover {
  background-color: #f9f9f9;
}

/* Form Styles */
.form-container {
  background: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-section {
  margin-bottom: 30px;
}

.section-title {
  color: #e63946;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #ffd60a;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.form-label.required::after {
  content: "*";
  color: #e63946;
  margin-left: 4px;
}

.form-input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  background-color: #f5f5f5;
}

.form-input:focus {
  outline: none;
  border-color: #e63946;
  background-color: white;
}

.form-input:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
}

.input-with-button {
  display: flex;
  gap: 10px;
}

.input-with-button .form-input {
  flex: 1;
}

.btn-lov {
  background-color: #ffd60a;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  color: #333;
}

.btn-lov:hover {
  background-color: #ffc300;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 30px;
}

.btn-submit {
  background-color: #0066cc;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.btn-submit:hover {
  background-color: #0052a3;
}

.btn-cancel {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.btn-cancel:hover {
  background-color: #5a6268;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-input {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* LoV Modal Styles */
.lov-modal-content {
  background-color: white;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  border-radius: 8px;
  overflow: hidden;
  animation: slideIn 0.3s;
}

.lov-header {
  background-color: #ffd60a;
  padding: 20px 30px;
}

.lov-search {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 14px;
  background-color: white;
}

.lov-body {
  padding: 20px;
  max-height: calc(90vh - 250px);
  overflow-y: auto;
}

.lov-table {
  width: 100%;
  border-collapse: collapse;
}

.lov-table thead {
  background-color: white;
}

.lov-table th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #e63946;
  border-bottom: 2px solid #ddd;
}

.lov-table td {
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.lov-table tbody tr {
  cursor: pointer;
}

.lov-table tbody tr:hover {
  background-color: #f9f9f9;
}

.lov-table tbody tr.selected {
  background-color: #e0e0e0;
}

.lov-footer {
  padding: 20px 30px;
  background-color: #f9f9f9;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: center;
}

.btn-select {
  background-color: white;
  border: 2px solid #333;
  padding: 12px 40px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.btn-select:hover {
  background-color: #f5f5f5;
}

.hidden {
  display: none;
}

/* Editor Styles */
.editor-toolbar {
  display: flex;
  gap: 5px;
  padding: 8px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  flex-wrap: wrap;
}

.editor-select {
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background-color: white;
  cursor: pointer;
}

.editor-btn {
  padding: 5px 10px;
  border: 1px solid #ddd;
  background-color: white;
  cursor: pointer;
  border-radius: 3px;
  min-width: 32px;
}

.editor-btn:hover {
  background-color: #e9ecef;
}

.editor-divider {
  width: 1px;
  background-color: #ddd;
  margin: 0 5px;
}

.editor-textarea {
  border-radius: 0 0 5px 5px !important;
  border-top: none !important;
  resize: vertical;
}

/* Recruitment Flow Styles */
.flow-row {
  display: grid;
  grid-template-columns: 100px 1fr 60px;
  gap: 15px;
  margin-bottom: 15px;
  align-items: center;
}

.flow-number input {
  background-color: #f5f5f5;
}

.btn-delete-flow {
  background-color: #e63946;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.btn-delete-flow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-delete-flow:hover:not(:disabled) {
  background-color: #c1121f;
}

.btn-add-flow {
  background-color: #333;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-add-flow:hover {
  background-color: #555;
}

.btn-add-multiple {
  position: absolute;
  right: 5px;
  bottom: 5px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #333;
}

.btn-add-multiple:hover {
  color: #0066cc;
}

.multiple-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background-color: #f5f5f5;
  border-radius: 5px;
  margin-bottom: 8px;
}

.multiple-item-text {
  flex: 1;
  font-size: 14px;
}

.btn-remove-item {
  background-color: #e63946;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
}

.btn-remove-item:hover {
  background-color: #c1121f;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* JOB MANAGEMENT */
/* Tambahkan CSS ini ke style.css */

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box i {
  position: absolute;
  left: 15px;
  color: #999;
}

.search-input {
  width: 100%;
  padding: 10px 15px 10px 40px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  background-color: white;
}

.search-input:focus {
  outline: none;
  border-color: #e63946;
}

.status-badge {
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.status-active {
  background: #c8e6c9;
  color: #2e7d32;
}

.status-inactive {
  background: #ffccbc;
  color: #d84315;
}

.status-expired {
  background: #e0e0e0;
  color: #616161;
}

/* Update untuk action buttons yang lebih lebar */
.btn-action {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s;
  width: auto;
  height: auto;
  border-radius: 4px;
}

.btn-edit {
  background: #c8e030;
  color: #333;
}

.btn-edit:hover {
  background: #b5ca2b;
}

.btn-deactivate {
  background: #e31e24;
  color: white;
}

.btn-deactivate:hover {
  background: #c01a1f;
}

.btn-activate {
  background: #5472d3;
  color: white;
}

.btn-activate:hover {
  background: #4461b8;
}

.btn-repost {
  background: #9e9e9e;
  color: white;
}

.btn-repost:hover {
  background: #757575;
}
