/* Secret Management Styles */

.access-management-section {
  margin-top: 3rem;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.section-header {
  margin-bottom: 2rem;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 1rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #212529;
}

.current-access-box {
  margin-bottom: 2.5rem;
  background-color: white;
  padding: 1.5rem;
  border-radius: 6px;
  border: 1px solid #dee2e6;
}

.current-access-box h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #495057;
}

.access-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.access-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #007bff;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.user-name {
  font-weight: 600;
  color: #212529;
}

.user-name a {
  color: #007bff;
  text-decoration: none;
}

.user-name a:hover {
  text-decoration: underline;
}

.user-email {
  font-size: 0.9rem;
  color: #6c757d;
}

.access-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.role-badge {
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.role-badge.editor {
  background-color: #fff3cd;
  color: #856404;
}

.role-badge.viewer {
  background-color: #d1ecf1;
  color: #0c5460;
}

.role-form {
  display: inline-flex;
  align-items: center;
}

.role-select {
  padding: 0.35rem 0.5rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background-color: white;
  font-size: 0.85rem;
}

.grant-access-box {
  background-color: white;
  padding: 1.5rem;
  border-radius: 6px;
  border: 1px solid #dee2e6;
  border-left: 4px solid #28a745;
}

.grant-access-box h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #495057;
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-control {
  width: 100%;
  padding: 0.575rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 1rem;
}

.form-control:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn {
  padding: 0.575rem 1rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background-color: #007bff;
  color: white;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
}

.btn-danger:hover {
  background-color: #c82333;
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
}

.badge {
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-info {
  background-color: #17a2b8;
  color: white;
}

.badge-success {
  background-color: #28a745;
  color: white;
}

.modal-header .btn-close {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.text-muted {
  color: #6c757d;
}

/* Inline form styles */
.inline-form {
  display: inline;
}

.secret-access-form {
  display: inline;
}
