/**
 * Circloud GUI - Button Styles
 * All button variants
 */

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

button.login-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 25px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

button.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102,126,234,0.4);
}

button.login-btn:active {
  transform: translateY(0);
}

.logout-btn {
  padding: 8px 16px;
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  color: #c7d2fe;
}

/* Delete buttons */
.delete-btn {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 4px 8px;
  font-size: 14px;
  font-weight: normal;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
  border-radius: 6px;
}

.delete-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}

.delete-btn:active {
  background: rgba(239, 68, 68, 0.3);
}

.delete-btn-small {
  background: transparent;
  color: #f87171;
  border: none;
  padding: 4px 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
  border-radius: 0;
  opacity: 0.7;
}

.delete-btn-small:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  opacity: 1;
}

.delete-btn-small:active {
  background: rgba(239, 68, 68, 0.25);
}

/* Action button for table rows */
.action-btn {
  background: transparent;
  color: #60a5fa;
  border: none;
  padding: 4px 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
  border-radius: 0;
  opacity: 0.7;
}

.action-btn:hover {
  background: rgba(96, 165, 250, 0.15);
  color: #93c5fd;
  opacity: 1;
}

.action-btn:active {
  background: rgba(96, 165, 250, 0.25);
}

.action-btn.stop-btn {
  color: #f87171;
}

.action-btn.start-btn {
  color: #34d399;
}

.action-icon {
  display: inline-block;
  vertical-align: middle;
}

.action-icon-stop {
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 2px;
}

.action-icon-start {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #22c55e;
  margin-left: 1px;
}

.replica-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 4px;
}

.replica-btn {
  background: transparent;
  color: #38bdf8;
  border: none;
  padding: 4px 6px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
  border-radius: 0;
  opacity: 0.75;
}

.replica-btn.replica-remove {
  color: #fbbf24;
}

.replica-btn:hover:not(:disabled) {
  background: rgba(14, 165, 233, 0.15);
  opacity: 1;
}

.replica-btn.replica-remove:hover:not(:disabled) {
  background: rgba(251, 191, 36, 0.18);
  color: #f59e0b;
}

.replica-btn:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

/* Console button */
.console-btn {
  background: transparent;
  color: #34d399;
  border: none;
  padding: 4px 8px;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
  border-radius: 4px;
  opacity: 0.8;
}

.console-btn:hover {
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
  opacity: 1;
  transform: scale(1.1);
}

.console-btn:active {
  background: rgba(52, 211, 153, 0.25);
}

.console-btn-disabled {
  color: #666;
  font-size: 16px;
  opacity: 0.4;
  cursor: not-allowed;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.console-cell {
  text-align: center;
  width: 60px;
}

/* Add tenant button */
.add-tenant-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  margin-bottom: 8px;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

.add-tenant-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

/* Submit and cancel buttons */
.btn-submit {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.btn-submit:disabled {
  background: #30363d;
  color: #484f58;
  cursor: not-allowed;
}

.btn-cancel {
  background: transparent;
  color: #8b949e;
  border: 1px solid #30363d;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-cancel:hover {
  background: #21262d;
  color: #e6edf3;
  border-color: #484f58;
}

/* Copy button */
.copy-btn {
  background: transparent;
  border: none;
  color: #4a90e2;
  cursor: pointer;
  padding: 4px 6px;
  margin-left: 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.copy-btn:hover {
  background: rgba(74, 144, 226, 0.1);
  color: #6db3ff;
}

.copy-btn:active {
  transform: scale(0.95);
}

.copy-btn svg {
  display: block;
}

/* Header actions container */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
