* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  max-width: 800px;
  width: 100%;
}

.login-card {
  background: white;
  border-radius: 12px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.login-card h1 {
  font-size: 32px;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.login-card p {
  color: #666;
  margin-bottom: 32px;
  font-size: 16px;
}

.slack-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #4a154b;
  color: white;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.2s;
}

.slack-button:hover {
  background: #611f69;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 20px 30px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header h1 {
  font-size: 24px;
  color: #1a1a1a;
}

.logout-btn {
  color: #666;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.2s;
}

.logout-btn:hover {
  background: #f5f5f5;
}

.profile-section {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-profile img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
}

.user-info h2 {
  font-size: 24px;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.user-info p {
  color: #666;
  font-size: 16px;
}

.profile-fields-section {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-fields-section h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.profile-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 14px;
}

.field-input-group {
  display: flex;
  gap: 8px;
}

.field-input-group input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.field-input-group input:focus {
  outline: none;
  border-color: #667eea;
}

.field-input-group button {
  padding: 10px 20px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.field-input-group button:hover {
  background: #5568d3;
}

.field-input-group button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.manager-section {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.manager-section h2,
.manager-section h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.manager-section h3 {
  font-size: 18px;
  margin-top: 30px;
}

.current-managers {
  margin-bottom: 20px;
}

.manager-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f5f5f5;
  padding: 8px 12px;
  border-radius: 20px;
  margin-right: 8px;
  margin-bottom: 8px;
}

.manager-chip img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.manager-chip span {
  font-size: 14px;
  color: #1a1a1a;
}

.search-box {
  margin-bottom: 20px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s;
}

.search-box input:focus {
  outline: none;
  border-color: #667eea;
}

.users-list {
  max-height: 400px;
  overflow-y: auto;
}

.user-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.user-item:hover {
  background: #f5f5f5;
}

.user-item img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
}

.user-item-info {
  flex: 1;
}

.user-item-name {
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.user-item-title {
  color: #666;
  font-size: 14px;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #666;
}

.info-message {
  text-align: center;
  padding: 40px;
  color: #999;
  font-style: italic;
}

.error-message {
  text-align: center;
  padding: 40px;
  color: #d32f2f;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.modal-content p {
  color: #666;
  margin-bottom: 24px;
  font-size: 16px;
}

.profile-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 24px;
}

.profile-preview img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
}

.preview-name {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.preview-title {
  color: #666;
  font-size: 14px;
}

.mock-profile {
  margin-bottom: 24px;
}

.mock-profile h3 {
  font-size: 16px;
  color: #666;
  margin-bottom: 16px;
}

.profile-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
}

.profile-card img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
}

.profile-details {
  flex: 1;
}

.profile-name {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.profile-title {
  color: #666;
  font-size: 14px;
  margin-bottom: 12px;
}

.profile-manager {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-manager .label {
  font-size: 14px;
  color: #666;
}

.manager-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.manager-info img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.manager-info span {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn {
  padding: 12px 24px;
  border-radius: 6px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #667eea;
  color: white;
}

.btn-primary:hover {
  background: #5568d3;
}

.btn-secondary {
  background: #e0e0e0;
  color: #666;
}

.btn-secondary:hover {
  background: #d0d0d0;
}

.success-message {
  background: #4caf50;
  color: white;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}
