.base64-container {
    width: 100%;
    margin-bottom: 2rem;
  }

  .base64-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-base);
    border-radius: 20px;

    --card-shadow: rgba(0, 0, 0, 0.04);
    --card-shadow-blur: 20px;
    --card-shadow-y: 4px;

    box-shadow: 0 var(--card-shadow-y) var(--card-shadow-blur) var(--card-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  @media (min-width: 800px) {
    .base64-card {
      flex-direction: row;
      min-height: 550px;
    }

    .upload-section {
      width: 40%;
      border-right: 1px solid var(--border-base);
      background: var(--bg-muted);
      padding: 3rem 2rem;
    }

    .result-section {
      flex: 1;
      padding: 3rem 2rem;
      display: flex;
      flex-direction: column;
      gap: 2rem;
    }
  }

  .upload-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
  }

  .result-section {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .drop-zone {
    position: relative;
    border: 2px dashed var(--border-base);
    border-radius: 16px;
    background: var(--bg-surface);
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    height: 100%;
  }

  .drop-zone:hover {
    border-color: var(--accent);
    background: var(--bg-muted);
  }

  .drop-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
  }

  .upload-icon {
    width: 40px;
    height: 40px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
  }

  .drop-content h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-base);
  }

  .drop-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
  }

  .file-input-native {
    margin-top: 1.5rem;
    padding: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-surface);
    border: 1px solid var(--border-base);
    border-radius: 8px;
    max-width: 100%;
    cursor: pointer;
  }

  .drop-zone .file-input-native {
    pointer-events: auto;
  }

  .preview-container {
    position: absolute;
    inset: 0;
    background: var(--bg-surface);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
  }

  .preview-container.hidden {
    display: none;
  }

  #b64-image-preview {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 8px;
  }

  .clear-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-base);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
  }

  .image-info {
    position: absolute;
    bottom: 1rem;
    display: flex;
    background: var(--bg-muted);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--border-base);
  }

  .info-pill {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
  }

  .name-pill {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 0.5rem;
  }

  .size-pill {
    color: var(--accent);
    padding-left: 0.5rem;
    border-left: 1px solid var(--border-base);
  }

  .output-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .output-header label {
    font-weight: 700;
    color: var(--text-base);
    font-size: 0.95rem;
  }

  .copy-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-base);
    color: var(--text-base);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
  }

  .copy-btn:hover {
    background: var(--accent);
    color: var(--text-on-primary);
  }

  .code-wrapper {
    background: var(--bg-muted);
    border: 1px solid var(--border-base);
    border-radius: 12px;
    padding: 1rem;
  }

  textarea {
    width: 100%;
    min-height: 120px;
    background: transparent;
    border: none;
    color: var(--text-base);
    font-size: 0.85rem;
    line-height: 1.5;
    resize: none;
    outline: none;
    word-break: break-all;
  }

  .toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--text-base);
    color: var(--bg-surface);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;

    --toast-shadow: rgba(0, 0, 0, 0.2);
    --toast-shadow-y: 10px;
    --toast-shadow-blur: 30px;

    box-shadow: 0 var(--toast-shadow-y) var(--toast-shadow-blur) var(--toast-shadow);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s;
    z-index: 100;
  }

  .toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  @media (max-width: 600px) {
    .card-section {
      padding: 1rem;
    }

    .drop-zone {
      min-height: 280px;
    }
  }

  @media (max-width: 768px) {
    .card-section {
      padding: 1.5rem;
    }

    .drop-zone {
      min-height: 250px;
    }

    textarea {
      height: 120px;
    }
  }