.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-box {
  background-color: white;
  padding: 20px 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  min-width: 280px;
}

.modal-box p {
  margin-bottom: 16px;
  font-size: 16px;
  color: #333;
}
.modal-box h2 {
  margin-top: 0;
  font-size: 1.6rem;
}

.modal-box button {
  padding: 6px 12px;
  border: none;
  background-color: #0d6efd;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}
.edit-modal-box {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 700px;
  width: 100%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.edit-modal-box h2 {
  margin-top: 0;
  font-size: 1.6rem;
}

.edit-modal-box .form-group {
  margin-bottom: 1rem;
}

.edit-modal-box .modal-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.edit-modal-box .btn {
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}

.edit-modal-box .btn-primary {
  background-color: #198754;
  color: white;
}

.edit-modal-box .btn-secondary {
  background-color: #6c757d;
  color: white;
}
.edit-modal-box .btn-primary:hover {
  background-color: #157347; /* sötétebb zöld */
}

.edit-modal-box .btn-secondary:hover {
  background-color: #5c636a; /* sötétebb szürke */
}
.edit-modal-box .btn {
  transition: background-color 0.2s ease;
  cursor: pointer;
}
.success-modal-box {
  border-left: 6px solid #28a745;
  background-color: #f3fcf5;
  box-shadow: 0 0 15px rgba(40, 167, 69, 0.2);
  padding: 30px 30px 20px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
}

.success-icon-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.success-icon {
  width: 64px;
  height: 64px;
}

.modal-message {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
  color: #2f6627;
}
.spinner {
  border: 2px solid #ccc;
  border-top: 2px solid #333;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: inline-block;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.error-modal-box {
  background: #fff;
  border: 1px solid #dc3545;
  padding: 1rem 2rem;
  text-align: center;
  border-radius: 6px;
  max-width: 400px;
}

.error-icon-wrapper {
  margin-bottom: 1rem;
}

.error-icon {
  width: 48px;
  height: 48px;
}
#editRoleModal { z-index: 1000; }
#warning-modal { z-index: 1050; }
#warning-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.warning-modal-box {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  padding: 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
}

.warning-icon-wrapper {
  margin-bottom: 1rem;
}

.warning-icon {
  width: 48px;
  height: 48px;
}
.role-modal-box {
  background: #fff;
  padding: 2rem;
  max-width: 600px;
  margin: auto;
  border-radius: 8px;
}
.role-modal-content {
  font-size: 15px;
  line-height: 1.6;
}

.role-description {
  margin-bottom: 1rem;
}

.role-permissions-title {
  margin-bottom: 0.5rem;
}

.role-permission-list {
  padding-left: 1.2rem;
  list-style-type: disc;
}

.role-permission-list li.permission-item {
  margin-bottom: 4px;
}
.role-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.role-details .line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.role-details .key {
  min-width: 120px;
  font-weight: bold;
  text-align: left;
}

.role-details .value {
  flex: 1;
  text-align: left;
  word-break: break-word;
}