/* GitHub Integration Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: #1a1a1a;
  margin: 5% auto;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.github-modal-content {
  max-width: 520px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  background: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.github-modal-content .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #333;
}

.github-modal-content .modal-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #fff;
  font-size: 1.3rem;
}

.github-modal-content .modal-header h2 svg {
  color: #fff;
}

.github-modal-content .close-button {
  background: none;
  border: none;
  color: #999;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.github-modal-content .close-button:hover {
  background: #333;
  color: #fff;
}

.github-modal-content .modal-body {
  padding: 16px 20px;
}

.modal-section {
  margin-bottom: 24px;
}

.modal-section h3 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.modal-section p {
  color: #ccc;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* GitHub Status */
.github-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: #2a2a2a;
  border-radius: 8px;
  margin-bottom: 16px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #666;
  transition: all 0.3s ease;
}

.status-dot.connecting {
  background: #ffa500;
  animation: pulse 1.5s ease-in-out infinite;
}

.status-dot.connected {
  background: #2563eb;
}

.status-dot.syncing {
  background: #007acc;
  animation: pulse 1.5s ease-in-out infinite;
}

.status-dot.error {
  background: #ff6b6b;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #2563eb;
}

/* Buttons */
.primary-button {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.primary-button:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.primary-button:disabled {
  background: #555;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.secondary-button {
  background: #333;
  color: #fff;
  border: 1px solid #555;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.secondary-button:hover {
  background: #444;
  border-color: #666;
}

/* Repository Actions */
.repository-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

/* Repositories List */
.repositories-list {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid #333;
  border-radius: 8px;
  background: #2a2a2a;
}

.repository-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid #333;
  transition: all 0.2s ease;
  cursor: pointer;
}

.repository-item:last-child {
  border-bottom: none;
}

.repository-item:hover {
  background: #333;
}

.repository-item.selected {
  background: #2a3a4a;
  border-left: 4px solid #2563eb;
}

.repo-info {
  flex: 1;
}

.repo-info h4 {
  color: #fff;
  margin: 0 0 5px 0;
  font-size: 1rem;
}

.repo-info p {
  color: #999;
  margin: 0 0 8px 0;
  font-size: 0.9rem;
}

.repo-meta {
  display: flex;
  gap: 15px;
  font-size: 0.8rem;
}

.repo-visibility {
  color: #ffa500;
  font-weight: 500;
}

.repo-updated {
  color: #888;
}

.select-repo-btn {
  background: #007acc;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.select-repo-btn:hover {
  background: #005a9a;
}

.repository-item.selected .select-repo-btn {
  background: #2563eb;
}

.repository-item.selected .select-repo-btn:hover {
  background: #1d4ed8;
}

/* Loading and Empty States */
.loading-spinner {
  text-align: center;
  padding: 40px;
  color: #999;
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: #999;
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  color: #fff;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
}

.form-group input[type="text"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #555;
  border-radius: 6px;
  background: #2a2a2a;
  color: #fff;
  font-size: 14px;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.form-group input[type="text"]:focus {
  border-color: #2563eb;
  outline: none;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #fff;
  font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #555;
  border-radius: 3px;
  position: relative;
  transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: #2563eb;
  border-color: #2563eb;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Sync Section */
.selected-repo-info {
  background: #2a2a2a;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  color: #fff;
  font-size: 14px;
}

.sync-settings {
  margin-bottom: 16px;
}

.help-text {
  color: #999;
  font-size: 0.9rem;
  margin-top: 5px;
}

.sync-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.sync-status-details {
  background: #2a2a2a;
  padding: 12px;
  border-radius: 8px;
}

.sync-info {
  display: flex;
  justify-content: space-between;
  color: #ccc;
  font-size: 0.85rem;
}

/* Notifications */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
}

.notification.success {
  background: #2563eb;
}

.notification.error {
  background: #ff6b6b;
}

.notification.info {
  background: #007acc;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .github-modal-content {
    width: 95%;
    margin: 20px auto;
  }
  
  .repository-actions {
    flex-direction: column;
  }
  
  .sync-actions {
    flex-direction: column;
  }
  
  .sync-info {
    flex-direction: column;
    gap: 5px;
  }
  
  .form-actions {
    flex-direction: column;
  }
} 