:root {
  --bg-color: #08090f;
  --panel-bg: rgba(18, 20, 32, 0.55);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(139, 92, 246, 0.15);
  
  --primary-color: #8b5cf6; /* Neon Purple */
  --primary-glow: rgba(139, 92, 246, 0.5);
  --primary-hover: #a78bfa;
  
  --secondary-color: #06b6d4; /* Neon Cyan */
  --secondary-glow: rgba(6, 182, 212, 0.4);
  --secondary-hover: #22d3ee;
  
  --success-color: #10b981; /* Emerald Green */
  --success-glow: rgba(16, 185, 129, 0.4);
  --error-color: #f43f5e; /* Rose Red */
  --error-glow: rgba(244, 63, 94, 0.4);
  --warning-color: #f59e0b; /* Amber */
  --warning-glow: rgba(245, 158, 11, 0.2);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Background Effects */
.stars-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  background-image: 
    radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px),
    radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px),
    radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 40px);
  background-size: 550px 550px, 350px 350px, 250px 250px;
  background-position: 0 0, 40px 60px, 130px 270px;
  opacity: 0.15;
  animation: bgMove 120s linear infinite;
}

.glowing-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -2;
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: screen;
}

.orb-purple {
  width: 500px;
  height: 500px;
  background: var(--primary-color);
  top: -100px;
  right: -100px;
  animation: orbFloat 20s ease-in-out infinite alternate;
}

.orb-cyan {
  width: 600px;
  height: 600px;
  background: var(--secondary-color);
  bottom: -150px;
  left: -150px;
  animation: orbFloat 25s ease-in-out infinite alternate-reverse;
}

@keyframes bgMove {
  from { background-position: 0 0, 40px 60px, 130px 270px; }
  to { background-position: 550px 550px, 390px 410px, 380px 820px; }
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.1); }
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: rgba(10, 11, 18, 0.5);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 10;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.logo-icon svg {
  width: 24px;
  height: 24px;
}

.logo-text h1 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #ffffff, #d1d5db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.server-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: var(--transition);
}

.server-status.connected {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--success-color);
}

.server-status.connected .status-dot {
  background-color: var(--success-color);
  box-shadow: 0 0 8px var(--success-color);
}

.server-status.disconnected {
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.2);
  color: var(--error-color);
}

.server-status.disconnected .status-dot {
  background-color: var(--error-color);
  box-shadow: 0 0 8px var(--error-color);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.5; }
}

/* Dashboard Layout */
.dashboard {
  flex: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  padding: 2.5rem 3rem;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 1100px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
}

.config-panel, .status-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Premium Glass Cards */
.card.glass {
  background: var(--panel-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.card.glass:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.8);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 0.8rem;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--secondary-color);
  background: rgba(6, 182, 212, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.card-header h2 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Input Fields and Forms */
.input-group {
  display: flex;
  gap: 0.8rem;
  width: 100%;
}

.input-group input[type="text"] {
  flex: 1;
}

input[type="text"], input[type="password"] {
  background: rgba(10, 11, 18, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
  width: 100%;
}

input[type="text"]:focus, input[type="password"]:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 12px var(--border-glow);
  background: rgba(10, 11, 18, 0.8);
}

.input-group-vertical {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.input-group-vertical label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row > * {
  flex: 1;
}

.flex-grow-2 {
  flex: 2;
}

/* Buttons */
.btn {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-secondary:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #7c3aed);
  color: white;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #9061f9, #8b5cf6);
  box-shadow: 0 4px 20px var(--primary-glow);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-glowing {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  border-radius: 10px;
  margin-top: 1rem;
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
}

.btn-glowing::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 30%;
  height: 200%;
  background: rgba(255, 255, 255, 0.13);
  transform: rotate(35deg);
  transition: all 0.6s ease;
  pointer-events: none;
}

.btn-glowing:hover:not(:disabled)::after {
  left: 130%;
}

.btn:disabled, .btn-glowing:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
}

.arrow-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.btn-glowing:hover:not(:disabled) .arrow-icon {
  transform: translateX(4px);
}

/* Feedback message */
.status-feedback {
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  border: 1px solid transparent;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-feedback.success {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.15);
  color: var(--success-color);
}

.status-feedback.error {
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.15);
  color: var(--error-color);
}

.status-feedback.info {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.15);
  color: var(--secondary-color);
}

.hidden {
  display: none !important;
}

/* Git Identity Info display */
.git-info-box {
  background: rgba(10, 11, 18, 0.4);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
}

.git-info-box p {
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.config-pairs {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.accent-text {
  color: var(--secondary-color);
  font-weight: 500;
}

/* Switches & Toggles */
.toggle-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.switch-label {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
  flex-shrink: 0;
}

.switch-label input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  transition: .3s;
  border-radius: 34px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

input:checked + .switch-slider {
  background-color: var(--primary-color);
  border-color: rgba(139, 92, 246, 0.3);
}

input:checked + .switch-slider:before {
  transform: translateX(22px);
}

.toggle-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.identity-fields {
  margin-top: 0.5rem;
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  animation: slideDown 0.3s ease;
}

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

/* Info Alert boxes */
.info-alert {
  display: flex;
  gap: 0.75rem;
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.4;
}

.alert-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.info-alert.warning {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.info-alert.info {
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.15);
  color: #67e8f9;
}

.info-alert.danger {
  background: rgba(244, 63, 94, 0.06);
  border: 1px solid rgba(244, 63, 94, 0.15);
  color: #fda4af;
}

/* PAT token input layout styling */
.label-with-help {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.help-link {
  font-size: 0.78rem;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
}

.help-link:hover {
  text-decoration: underline;
  color: var(--secondary-hover);
}

.badge {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--secondary-color);
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
  margin-left: 0.4rem;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  padding-right: 2.8rem;
}

.btn-toggle-view {
  position: absolute;
  right: 0.8rem;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-toggle-view:hover {
  color: var(--text-main);
}

.field-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Project Scan Status Grid */
.status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.status-item {
  background: rgba(10, 11, 18, 0.4);
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.status-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Stepper Component styling */
.stepper {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 1.5rem;
}

.stepper::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: rgba(255, 255, 255, 0.05);
}

.step {
  display: flex;
  gap: 1.2rem;
  padding-bottom: 1.4rem;
  position: relative;
  opacity: 0.6;
  transition: var(--transition);
}

.step:last-child {
  padding-bottom: 0;
}

.step-indicator {
  position: absolute;
  left: -24px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1f2937;
  border: 2px solid #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: var(--transition);
}

.step-icon {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: var(--transition);
}

.step-details h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.step-details p {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Step States */
.step.active {
  opacity: 1;
}

.step.active .step-indicator {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-glow);
  transform: scale(1.15);
}

.step.active .step-icon {
  background: var(--primary-color);
  animation: loaderPulse 1.2s infinite ease-in-out;
}

.step.active .step-details h3 {
  color: var(--text-main);
}

.step.success {
  opacity: 1;
}

.step.success .step-indicator {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--success-color);
  box-shadow: 0 0 8px var(--success-glow);
}

.step.success .step-icon {
  background: var(--success-color);
  width: 6px;
  height: 6px;
}

.step.success .step-details h3 {
  color: var(--success-color);
}

.step.failed {
  opacity: 1;
}

.step.failed .step-indicator {
  background: rgba(244, 63, 94, 0.1);
  border-color: var(--error-color);
  box-shadow: 0 0 8px var(--error-glow);
}

.step.failed .step-icon {
  background: var(--error-color);
  width: 6px;
  height: 6px;
}

.step.failed .step-details h3 {
  color: var(--error-color);
}

@keyframes loaderPulse {
  0% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.6); opacity: 1; }
  100% { transform: scale(1); opacity: 0.5; }
}

/* Console Terminal logs card styling */
.console-card {
  display: flex;
  flex-direction: column;
  padding: 0 !important; /* Reset standard card padding */
  overflow: hidden;
  height: 350px;
  border-color: rgba(255, 255, 255, 0.05);
}

.console-header {
  background: rgba(10, 11, 18, 0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 0;
}

.console-controls {
  display: flex;
  gap: 0.4rem;
}

.console-controls .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.console-controls .dot.red { background-color: #ff5f56; }
.console-controls .dot.yellow { background-color: #ffbd2e; }
.console-controls .dot.green { background-color: #27c93f; }

.console-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-clear {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  transition: var(--transition);
}

.btn-clear:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
}

.console-body {
  flex: 1;
  background: #030407;
  padding: 1rem;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #a7f3d0; /* Soft Terminal Green */
  line-height: 1.5;
}

.console-body pre {
  white-space: pre-wrap;
  word-break: break-all;
}

/* Custom scrollbars */
.console-body::-webkit-scrollbar, body::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.console-body::-webkit-scrollbar-track, body::-webkit-scrollbar-track {
  background: transparent;
}

.console-body::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.console-body::-webkit-scrollbar-thumb:hover, body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Modal Overlay & Card */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal.glass {
  background: rgba(15, 17, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  animation: modalScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalScaleUp {
  from { transform: scale(0.9) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-body p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.modal-body ol {
  padding-left: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-body a {
  color: var(--secondary-color);
  text-decoration: none;
}

.modal-body a:hover {
  text-decoration: underline;
}

/* Footer styling */
footer {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: auto;
  background: rgba(8, 9, 15, 0.8);
}

/* Enhancements Custom Styles */
.status-item-full {
  grid-column: span 2;
}

.changes-list {
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 120px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.change-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
}

.change-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.change-badge.modified {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.change-badge.untracked {
  background: rgba(6, 182, 212, 0.1);
  color: var(--secondary-color);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.change-badge.deleted {
  background: rgba(244, 63, 94, 0.1);
  color: var(--error-color);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.change-path {
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
  text-align: right;
}

.success-modal-card {
  max-width: 450px !important;
  text-align: center;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

.success-modal-header {
  flex-direction: column;
  gap: 0.8rem;
  border-bottom: none !important;
  padding-bottom: 0 !important;
  align-items: center !important;
}

.success-icon-badge {
  width: 60px;
  height: 60px;
  background: rgba(16, 185, 129, 0.08);
  border: 2px solid var(--success-color);
  color: var(--success-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
  margin-bottom: 0.5rem;
  animation: scaleInSuccess 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-icon-badge svg {
  width: 28px;
  height: 28px;
}

.success-modal-body {
  gap: 1.5rem !important;
  padding-top: 0.5rem !important;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.btn-github-link {
  width: 100%;
  text-decoration: none;
  background: linear-gradient(135deg, #24292e, #1b1f23);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-github-link:hover {
  background: linear-gradient(135deg, #2f363d, #24292e) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

@keyframes scaleInSuccess {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

/* Repo Auto-Creation Styling */
.create-repo-section {
  margin-top: 0.5rem;
}

.btn-text-toggle {
  background: none;
  border: none;
  color: var(--secondary-color);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
}

.btn-text-toggle:hover {
  color: var(--secondary-hover);
  text-decoration: underline;
}

.create-repo-fields {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  animation: slideDown 0.3s ease;
}

.repo-privacy-selector {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.repo-privacy-selector label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.repo-privacy-selector input[type="radio"] {
  accent-color: var(--primary-color);
  cursor: pointer;
}

/* Suggest Message Button Styling */
.btn-suggest {
  background: none;
  border: none;
  color: var(--secondary-color);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition);
}

.btn-suggest:hover {
  color: var(--secondary-hover);
}

/* App Layout & Sidebar Grid */
.app-layout {
  display: flex;
  flex: 1;
  width: 100%;
  position: relative;
}

.sidebar {
  width: 280px;
  flex-shrink: 0;
  background: rgba(10, 12, 22, 0.6);
  backdrop-filter: blur(15px);
  border-right: 1px solid var(--border-color);
  padding: 1.8rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: var(--transition);
  z-index: 5;
}

@media (max-width: 1000px) {
  .app-layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.8rem;
}

.sidebar-header h2 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text-main);
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow-y: auto;
  max-height: 50vh;
}

.project-item {
  background: rgba(10, 11, 18, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.project-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(6, 182, 212, 0.2);
}

.project-item.active {
  background: rgba(139, 92, 246, 0.08);
  border-color: var(--primary-color);
  box-shadow: 0 0 10px var(--border-glow);
}

.project-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.project-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.status-dot-mini {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot-mini.synced {
  background-color: var(--success-color);
  box-shadow: 0 0 6px var(--success-color);
}

.status-dot-mini.changed {
  background-color: var(--warning-color);
  box-shadow: 0 0 6px var(--warning-color);
}

.status-dot-mini.backup-active {
  background-color: var(--secondary-color);
  box-shadow: 0 0 6px var(--secondary-color);
  animation: pulse 1.5s infinite;
}

/* Auto-Backup Controls */
.backup-controls {
  background: rgba(10, 11, 18, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.8rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  animation: slideDown 0.3s ease;
}

.backup-status-indicator {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.backup-logs-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-top: 0.2rem;
}

.backup-logs-preview {
  background: rgba(5, 5, 10, 0.8);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.6rem;
  border-radius: 6px;
  max-height: 110px;
  overflow-y: auto;
  color: #34d399;
  border: 1px solid rgba(255, 255, 255, 0.03);
  line-height: 1.4;
  white-space: pre-wrap;
}

/* PR Button and Forms */
.btn-pr-link {
  background: linear-gradient(135deg, var(--secondary-color), #0891b2);
  color: white;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

.btn-pr-link:hover:not(:disabled) {
  background: linear-gradient(135deg, #22d3ee, var(--secondary-color));
  box-shadow: 0 4px 20px var(--secondary-glow);
  transform: translateY(-1px);
}

.textarea-field {
  background: rgba(10, 11, 18, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
  width: 100%;
  resize: vertical;
  min-height: 80px;
}

.textarea-field:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 12px var(--border-glow);
  background: rgba(10, 11, 18, 0.8);
}

/* Footer styling */
footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background: rgba(10, 11, 18, 0.6);
  backdrop-filter: blur(14px);
  color: var(--text-muted);
  font-size: 0.88rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

footer p {
  margin: 0;
}

footer .made-by {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--secondary-color);
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
  letter-spacing: 0.5px;
}
