/* Component styles for the extension installation guide */

/* Cards and sections */
.extension-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}

.extension-icon {
  margin-right: 20px;
}

.extension-icon img {
  width: 128px;
  height: 128px;
}

.extension-info {
  flex: 1;
}

.extension-info h2 {
  color: #333;
  margin-bottom: 10px;
}

.extension-info p {
  margin-bottom: 20px;
  color: #666;
}

.extension-header {
  display: flex;
  margin-bottom: 20px;
  align-items: center;
}

.header-card {
  border-left: 4px solid #4285f4;
}

/* Buttons and actions */
.action-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4285f4;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  margin: 10px 0;
  transition: background-color 0.3s;
}

.action-button:hover {
  background-color: #3367d6;
}

.action-button.secondary {
  background-color: #34a853;
}

.action-button.danger {
  background-color: #ea4335;
}

.action-button.danger:hover {
  background-color: #d33426;
}

/* Ensure anchor buttons look the same as regular buttons */
a.action-button {
  text-decoration: none;
  display: inline-block;
  padding: 10px 20px;
  background-color: #4285f4;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  margin: 10px 0;
  transition: background-color 0.3s;
  text-align: center;
}

a.action-button:hover {
  background-color: #3367d6;
}

/* Success and notification messages */
.alert {
  padding: 12px 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  background-color: #fff3cd;
  color: #856404;
  border-left: 4px solid #ffeeba;
}

.notification {
  background-color: #e8f0fe;
  border-left: 4px solid #4285f4;
  color: #4285f4;
  padding: 12px 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-weight: bold;
}

.success-message {
  padding: 20px;
  background-color: #e6f4ea;
  border-radius: 8px;
  border-left: 4px solid #34a853;
  margin-top: 20px;
}

.success-message h3 {
  color: #137333;
  margin-bottom: 10px;
}

/* Quick-reference styles */
.path-display {
  padding: 8px 12px;
  background-color: #f1f3f4;
  border-radius: 4px;
  font-family: monospace;
  margin: 10px 0;
  word-break: break-all;
}

.guide-image {
  max-width: 100%;
  height: auto;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.hidden {
  display: none;
}

.address-copy {
  display: flex;
  background-color: #f1f3f4;
  padding: 8px 12px;
  border-radius: 4px;
  align-items: center;
  margin: 10px 0;
}

.address-copy code {
  font-family: monospace;
  flex-grow: 1;
  padding: 4px 0;
  overflow-wrap: break-word;
}

.copy-button {
  background: #4285f4;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  margin-left: 10px;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.copy-button:hover {
  background: #3367d6;
}

.small-note {
  font-size: 12px;
  color: #666;
  font-style: italic;
  margin-top: 5px;
}

.flash-message {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  animation: fadeOut 2s forwards;
  z-index: 9999;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Manual copy fallback */
.manual-copy-area {
  margin: 10px 0;
  padding: 8px;
  background-color: #f8f9fa;
  border-radius: 4px;
  border-left: 4px solid #4285f4;
}

.manual-copy-input {
  width: 100%;
  padding: 8px;
  font-family: monospace;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 5px;
  background-color: #fff;
  font-size: 14px;
}

.manual-copy-input:focus {
  outline: 2px solid #4285f4;
  border-color: #4285f4;
}

/* API Key Management Styles */
.api-key-container {
  margin: 15px 0;
}

.input-group {
  margin-bottom: 15px;
}

.input-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.api-key-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: monospace;
  box-sizing: border-box;
  font-size: 14px;
}

.api-key-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

.api-key-actions button {
  flex: 1;
  padding: 10px 12px;
  font-size: 13px;
}

.message {
  margin-top: 10px;
  padding: 8px;
  border-radius: 4px;
}

.success {
  background-color: #e6f4ea;
  color: #137333;
}

.error {
  background-color: #fce8e6;
  color: #c5221f;
}

.button-group {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}

.button-group button {
  flex: 1;
}

.username-container {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.server-actions {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.server-status {
  font-size: 12px;
  margin-top: 5px;
  color: #666;
  font-style: italic;
}
