/* Berechtigungen Seite Styles */

/* Allgemeine Stile */
.empty-state {
  text-align: center;
  padding: 2rem;
  color: #7f8c8d;
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.error-state {
  text-align: center;
  padding: 2rem;
  color: #e74c3c;
}

.error-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

/* Tabellen-Stile */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.data-table th,
.data-table td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.data-table th {
  background-color: #f5f7fa;
  font-weight: 600;
  color: #34495e;
}

.data-table tr:hover {
  background-color: #f8f9fa;
}

.data-table .actions-cell {
  text-align: right;
  white-space: nowrap;
}

/* Aktions-Buttons */
.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  margin-left: 0.3rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.action-btn:hover {
  background-color: #f0f0f0;
}

.action-btn i {
  font-size: 0.9rem;
}

.edit-btn i, .edit-user-roles-btn i {
  color: #2c3e50;
}

.delete-btn i {
  color: #e74c3c;
}

.action-btn.delete-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f8f9fa;
}

.action-btn.delete-btn[disabled]:hover {
  background-color: #f8f9fa;
  color: #dc3545;
}

/* Modal Stile */
.rolle-modal {
  min-width: 600px;
  max-width: 800px;
}

.rolle-modal .modal-body {
  padding: 1.5rem;
  max-height: 70vh;
  overflow-y: auto;
}

/* Rolle-Badge und Benutzer-Rollen-Styling */
.role-badge {
  display: inline-block;
  background-color: #0079C7;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-right: 4px;
  margin-bottom: 4px;
}

.no-roles {
  color: #7f8c8d;
  font-style: italic;
}

/* Benutzer-Rollen-Modal */
.benutzer-rollen-modal {
  min-width: 400px;
  max-width: 600px;
}

.rollen-checkboxes {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1rem;
  margin-top: 1rem;
  background-color: #f9f9f9;
}

.rolle-checkbox {
  display: flex;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.rolle-checkbox:last-child {
  border-bottom: none;
}

.rolle-checkbox input[type="checkbox"] {
  margin-right: 10px;
}

.rolle-checkbox label {
  font-weight: 500;
  margin-bottom: 0;
}

/* Formular-Stile */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #34495e;
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
  border-color: #0079C7;
  outline: none;
}

/* Checkboxen für Seiten */
.checkboxes-container {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1rem;
  background-color: #f9f9f9;
}

.seite-container {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.seite-container:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.hauptseite-checkbox {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hauptseite-checkbox input[type="checkbox"] {
  margin-right: 8px;
}

.subseiten-container {
  margin-left: 1.8rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.7rem;
}

.subseite-checkbox {
  display: flex;
  align-items: center;
}

.subseite-checkbox input[type="checkbox"] {
  margin-right: 8px;
}

/* Checkbox-Styling */
input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
}

/* Buttons */
.btn {
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.1s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: #0079C7;
  color: white;
}

.btn-primary:hover {
  background-color: #2980b9;
}

.btn-secondary {
  background-color: #7f8c8d;
  color: white;
}

.btn-secondary:hover {
  background-color: #6c7a7d;
}

.btn-small {
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .subseiten-container {
    grid-template-columns: 1fr;
  }
  
  .rolle-modal, .benutzer-rollen-modal {
    min-width: 95%;
  }
}

/* Administrator-Rolle-Hinweis */
.admin-role-hint {
  background-color: #f8f9fa;
  border-left: 4px solid #0079C7;
  padding: 10px 15px;
  margin-bottom: 15px;
  border-radius: 4px;
}

.admin-role-hint p {
  margin: 0;
  color: #2c3e50;
  display: flex;
  align-items: center;
}

.admin-role-hint i {
  color: #2c3e50;
  margin-right: 10px;
  font-size: 1.2rem;
}

.disabled-checkbox {
  opacity: 0.7;
  position: relative;
}

.disabled-checkbox:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(249, 249, 249, 0.5);
  pointer-events: none;
}

.subseiten-header {
  margin-left: 1.8rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.select-all-subseiten {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  background-color: #f5f7fa;
  color: #2c3e50;
  border: 1px solid #e0e0e0;
}

.select-all-subseiten:hover {
  background-color: #edf0f7;
}

.disabled-button {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
} 