.keyword-container {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
  max-width: 950px;
  margin: 40px auto;
}

.keyword-title {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.filter-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

#categoryFilter, #categorySelect {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 14px;
}

.add-keyword-toggle-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.add-keyword-toggle-btn:hover {
  background-color: #0056b3;
}

.keyword-form {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.form-group input, .form-group select {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.form-buttons {
  text-align: right;
}

.save-btn {
  background-color: #199A8E;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.cancel-btn {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  margin-left: 10px;
  cursor: pointer;
}

.keyword-table {
  width: 100%;
  border-collapse: collapse;
}

.keyword-table th, .keyword-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
  font-size: 14px;
}

.keyword-table th {
  background-color: #f8f9fa;
}

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.action-btn.edit { color: #199A8E; }
.action-btn.delete { color: #f44336; }

.loading-cell {
  text-align: center;
  font-style: italic;
  color: #666;
  padding: 20px;
}

/* ============================= */
/* 🔹 Chiroyli Edit Modal Dizayni */
/* ============================= */
.edit-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  animation: fadeIn 0.3s ease-in-out;
}

.edit-modal-content {
  background: #ffffff;
  width: 500px;
  max-width: 90%;
  border-radius: 16px;
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s ease;
}

.edit-modal-content h3 {
  text-align: center;
  margin-bottom: 5px;
  font-size: 22px;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.edit-modal-content input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
  transition: 0.2s;
}

.edit-modal-content input:focus {
  border-color: #199a8e;
  box-shadow: 0 0 5px rgba(25, 154, 142, 0.4);
  outline: none;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.modal-buttons .save-btn {
  background-color: #199a8e;
  color: white;
  font-weight: 600;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.25s;
}

.modal-buttons .save-btn:hover {
  background-color: #12796f;
}

.modal-buttons .cancel-btn {
  background-color: #f44336;
  color: white;
  font-weight: 600;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.25s;
}

.modal-buttons .cancel-btn:hover {
  background-color: #c92c24;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}


/* ============================= */
/* 🔹 Delete Modal Dizayni */
/* ============================= */
.logout-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none; /* default yopiq */
  justify-content: center;
  align-items: center;
  z-index: 3000;
  animation: fadeIn 0.3s ease-in-out;
}

.logout-modal-content {
  background: #ffffff;
  width: 400px;
  max-width: 90%;
  border-radius: 16px;
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
  text-align: center;
  animation: slideUp 0.3s ease;
}

.logout-modal-content span {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.logout-modal-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.logout-modal-btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}

.logout-modal-btn.yes {
  background-color: #f44336;
  color: white;
}

.logout-modal-btn.yes:hover {
  background-color: #c92c24;
}

.logout-modal-btn.no {
  background-color: #199a8e;
  color: white;
}

.logout-modal-btn.no:hover {
  background-color: #12796f;
}

