/* File: app/static/css/admin-panel.css */
/* Styles for the User Management slide-out pane */

#user-management-pane {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 340px;
  background: #1e1e1e;
  color: #ccc;
  flex-direction: column;
  z-index: 1000;
  display: flex;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 16px rgba(0,0,0,0.5);
  overflow: hidden; /* Changed from auto - scroll handled by body */
}

#user-management-pane.visible {
  transform: translateX(0);
}

#user-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #333;
  border-bottom: 1px solid #555;
  flex-shrink: 0;
}

#user-pane-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: normal;
  color: #fff;
}

#user-pane-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
}
#user-pane-close:hover { color: #fff; }

#user-pane-body {
  overflow-y: auto;
  flex: 1;
  padding: 10px 12px;
}

/* Form elements matching tools panel style */
#user-pane-body label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  color: #aaa;
}

#user-pane-body select,
#user-pane-body input[type="text"],
#user-pane-body input[type="number"] {
  width: 100%;
  padding: 6px;
  margin-top: 4px;
  background: #2a2a2a;
  color: #ccc;
  border: 1px solid #555;
  border-radius: 3px;
  font-size: 12px;
  box-sizing: border-box;
}

#user-pane-body select:focus,
#user-pane-body input:focus {
  outline: none;
  border-color: #3a6ea8;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin: 0;
}

#user-pane-body button {
  width: 100%;
  padding: 6px;
  background: #3a6ea8;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

#user-pane-body button:hover {
  background: #4a7ec0;
}

#user-pane-body button:disabled {
  background: #555;
  cursor: not-allowed;
}

#user-fields {
  margin-top: 15px;
}

#user-pane-status {
  min-height: 16px;
  text-align: center;
  font-size: 11px;
  padding: 4px 12px;
}
#add-user-status {
  text-align: left;
  font-size: 11px;
  min-height: 14px;
}

.status-success { color: #90c090; }
.status-error   { color: #e07070; }


/* Cleanup Data Section */
.admin-section {
  background: #1e1e1e;
  color: #ccc;
  border: 1px solid #444;
  padding: 1rem 12px;
  margin-bottom: 1rem;
  border-radius: 3px;
}

.admin-section h3 {
  margin: 0 0 8px 0;
  font-size: 13px;
  font-weight: normal;
  color: #fff;
}

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

.form-group {
  flex: 1;
}

.form-group label {
  display: block;
  font-size: 12px;
  color: #aaa;
  margin-bottom: 4px;
}

.datetime-input {
  width: 100%;
  padding: 6px;
  background: #2a2a2a;
  color: #ccc;
  border: 1px solid #555;
  border-radius: 3px;
  font-size: 12px;
  font-family: monospace;
  box-sizing: border-box;
}

.datetime-input:focus {
  outline: none;
  border-color: #3a6ea8;
}

.btn-danger {
  width: 100%;
  padding: 6px;
  background: #8b2020;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 4px;
}

.btn-danger:hover {
  background: #a82828;
}

.btn-danger:disabled {
  background: #555;
  cursor: not-allowed;
  color: #999;
}

.help-text {
  font-size: 11px;
  color: #888;
  margin-bottom: 10px;
}

#cleanup-status {
  min-height: 14px;
  font-size: 11px;
  margin-top: 8px;
  padding: 4px 0;
}

#cleanup-status.success { color: #90c090; }
#cleanup-status.error   { color: #e07070; }

