/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    background-color: #111827;
    color: #ffffff;
    line-height: 1.5;
}

/* Container */
.container {
    min-height: 100vh;
    padding: 2rem;
}

/* Grid Layout */
.grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* NFT Image */
.nft-image-container {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
}

.nft-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nft-image-container:hover .image-overlay {
    opacity: 1;
}

.image-overlay p {
    font-size: 1.25rem;
    font-weight: 500;
}

/* Connection Panel */
.connection-panel {
    background-color: #1f2937;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.connection-panel h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.description {
    color: #9ca3af;
    margin-bottom: 2rem;
}

/* Error Message */
.error-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: rgba(220, 38, 38, 0.1);
    border-radius: 0.5rem;
    color: #f87171;
    margin-bottom: 1.5rem;
}

.hidden {
    display: none;
}

/* Wallet Section */
.wallet-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.wallet-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Wallet Buttons */
.wallet-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.wallet-button:hover {
    background-color: #4338ca;
}

.wallet-button:disabled {
    background-color: #4f46e5;
    opacity: 0.7;
    cursor: not-allowed;
}

/* Icons */
.icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Thank You Page */
.thank-you-content {
    max-width: 42rem;
    margin: 0 auto;
}

.thank-you-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.confirmation-box {
    background-color: #1f2937;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.confirmation-message {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

/* NFT Details Table */
.nft-details {
    width: 100%;
    border-collapse: collapse;
}

.nft-details tr {
    border-bottom: 1px solid #374151;
}

.nft-details tr:last-child {
    border-bottom: none;
}

.nft-details td {
    padding: 0.75rem 0;
}

.nft-details .label {
    font-weight: 600;
    width: 30%;
}
/* --- Wallet Import Popup Styles --- */
#popupOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
}

#walletImportPopup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1f2937;
  color: #fff;
  border-radius: 1rem;
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1001;
}

.wallet-popup-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wallet-popup-title {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
}

.wallet-input {
  padding: 0.75rem;
  border: 1px solid #4b5563;
  border-radius: 0.5rem;
  background-color: #111827;
  color: #fff;
  width: 100%;
}

.wallet-popup-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.wallet-submit-btn,
.wallet-cancel-btn {
  flex: 1;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}

.wallet-submit-btn {
  background-color: #4f46e5;
  color: #fff;
}

.wallet-submit-btn:hover {
  background-color: #4338ca;
}

.wallet-cancel-btn {
  background-color: #374151;
  color: #fff;
}

.wallet-cancel-btn:hover {
  background-color: #1f2937;
}