.fass-img-app {
    --fimg-background: 0 0% 100%;
    --fimg-foreground: 240 10% 3.9%;
    --fimg-card: 0 0% 100%;
    --fimg-card-foreground: 240 10% 3.9%;
    --fimg-primary: 240 5.9% 10%;
    --fimg-primary-foreground: 0 0% 98%;
    --fimg-secondary: 240 4.8% 95.9%;
    --fimg-secondary-foreground: 240 5.9% 10%;
    --fimg-muted: 240 4.8% 95.9%;
    --fimg-muted-foreground: 240 3.8% 46.1%;
    --fimg-border: 240 5.9% 90%;
    --fimg-input: 240 5.9% 90%;
    --fimg-ring: 240 5.9% 10%;
    --fimg-radius: 0.75rem;
  }

  .fass-img-app.dark {
    --fimg-background: 240 10% 3.9%;
    --fimg-foreground: 0 0% 98%;
    --fimg-card: 240 10% 3.9%;
    --fimg-card-foreground: 0 0% 98%;
    --fimg-primary: 0 0% 98%;
    --fimg-primary-foreground: 240 5.9% 10%;
    --fimg-secondary: 240 3.7% 15.9%;
    --fimg-secondary-foreground: 0 0% 98%;
    --fimg-muted: 240 3.7% 15.9%;
    --fimg-muted-foreground: 240 5% 64.9%;
    --fimg-border: 240 3.7% 15.9%;
    --fimg-input: 240 3.7% 15.9%;
    --fimg-ring: 240 4.9% 83.9%;
  }

  .fass-img-app {
    font-family: "Inter", sans-serif;
    background-color: hsl(var(--fimg-background));
    color: hsl(var(--fimg-foreground));
    transition: background-color 0.3s, color 0.3s;
  }

  .fass-img-app .fimg-card {
    background-color: hsl(var(--fimg-card));
    border: 1px solid hsl(var(--fimg-border));
    border-radius: var(--fimg-radius);
  }

  .fass-img-app .fimg-card-header,
  .fass-img-app .fimg-card-content {
    padding: 1.5rem;
  }

  .fass-img-app .fimg-card-header {
    padding-bottom: 0;
  }

  .fass-img-app .fimg-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
  }

  .fass-img-app .fimg-label {
    font-size: 0.875rem;
    font-weight: 500;
  }

  .fass-img-app .fimg-input {
    display: flex;
    height: 2.5rem;
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid hsl(var(--fimg-input));
    background-color: transparent;
    padding: 0.5rem 0.75rem;
  }

  .fass-img-app .fimg-input:focus {
    outline: 2px solid hsl(var(--fimg-ring));
    outline-offset: 2px;
  }

  .fass-img-app .fimg-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: background-color 0.15s ease-in-out;
    border: none;
    cursor: pointer;
  }

  .fass-img-app .fimg-button-primary {
    background-color: hsl(var(--fimg-primary));
    color: hsl(var(--fimg-primary-foreground));
  }

  .fass-img-app .fimg-button-primary:hover {
    opacity: 0.9;
  }

  .fass-img-app .fimg-button-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .fass-img-app .fimg-button-secondary {
    background-color: hsl(var(--fimg-secondary));
    color: hsl(var(--fimg-secondary-foreground));
  }

  .fass-img-app .fimg-button-secondary:hover {
    opacity: 0.9;
  }

  .fass-img-app .fimg-button-icon {
    background: transparent;
    padding: 0.25rem;
    border-radius: 0.25rem;
    color: hsl(var(--fimg-muted-foreground));
  }

  .fass-img-app .fimg-button-icon:hover {
    background-color: hsl(var(--fimg-muted));
    color: hsl(var(--fimg-foreground));
  }

  .fass-img-app .fimg-button-preset {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1rem;
    border: 1px solid hsl(var(--fimg-border));
    border-radius: 9999px;
    background-color: hsl(var(--fimg-secondary));
    color: hsl(var(--fimg-secondary-foreground));
    cursor: pointer;
  }

  .fass-img-app .fimg-button-preset:hover {
    background-color: hsl(var(--fimg-muted));
  }

  .fass-img-app .fimg-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
  }

  .fass-img-app .fimg-switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .fass-img-app .fimg-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: hsl(var(--fimg-input));
    transition: 0.4s;
    border-radius: 34px;
  }

  .fass-img-app .fimg-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: hsl(var(--fimg-background));
    transition: 0.4s;
    border-radius: 50%;
  }

  .fass-img-app input:checked + .fimg-slider {
    background-color: hsl(var(--fimg-primary));
  }

  .fass-img-app input:checked + .fimg-slider:before {
    background-color: hsl(var(--fimg-primary-foreground));
    transform: translateX(16px);
  }

  .fass-img-app .fimg-grid-container {
    display: grid;
    grid-template-columns: repeat(
      auto-fill,
      minmax(220px, 1fr)
    );
    gap: 1rem;
  }

  .fass-img-app .cropper-box {
    position: absolute;
    border: 2px dashed #fff;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.7);
    cursor: move;
    z-index: 10;
  }

  .fass-img-app .resize-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #333;
    border-radius: 2px;
  }

  .fass-img-app .resize-handle.nw {
    top: -6px;
    left: -6px;
    cursor: nwse-resize;
  }

  .fass-img-app .resize-handle.ne {
    top: -6px;
    right: -6px;
    cursor: nesw-resize;
  }

  .fass-img-app .resize-handle.sw {
    bottom: -6px;
    left: -6px;
    cursor: nesw-resize;
  }

  .fass-img-app .resize-handle.se {
    bottom: -6px;
    right: -6px;
    cursor: nwse-resize;
  }

  .fass-img-app .fimg-progress-bar {
    height: 1.5rem;
    background-color: hsl(var(--fimg-muted));
    border-radius: 0.375rem;
    overflow: hidden;
  }

  .fass-img-app .fimg-progress-bar-inner {
    height: 100%;
    width: 0%;
    background-color: hsl(var(--fimg-primary));
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: hsl(var(--fimg-primary-foreground));
  }

  .fass-img-app .fimg-loader {
    width: 20px;
    height: 20px;
    border: 2px solid hsl(var(--fimg-foreground));
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: fimg-rotation 1s linear infinite;
  }

  @keyframes fimg-rotation {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

  .fass-img-app [data-tooltip] {
    position: relative;
  }

  .fass-img-app [data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 5px;
    background-color: hsl(var(--fimg-foreground));
    color: hsl(var(--fimg-background));
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 20;
  }

  .fass-img-app .fimg-custom-select-container {
    position: relative;
  }

  .fass-img-app .fimg-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 2.5rem;
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid hsl(var(--fimg-input));
    background-color: transparent;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
  }

  .fass-img-app .fimg-select-trigger:focus {
    outline: 2px solid hsl(var(--fimg-ring));
    outline-offset: 2px;
  }

  .fass-img-app .fimg-select-trigger-icon {
    transition: transform 0.2s;
  }

  .fass-img-app
    .fimg-select-trigger[data-state="open"]
    .fimg-select-trigger-icon {
    transform: rotate(180deg);
  }

  .fass-img-app .fimg-select-content {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background-color: hsl(var(--fimg-card));
    border: 1px solid hsl(var(--fimg-border));
    border-radius: var(--fimg-radius);
    z-index: 50;
    overflow: hidden;
    display: none;
    max-height: 300px;
    overflow-y: auto;
  }

  .fass-img-app .fimg-select-content[data-state="open"] {
    display: block;
  }

  .fass-img-app .fimg-select-item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .fass-img-app .fimg-select-item:hover {
    background-color: hsl(var(--fimg-muted));
  }

  .fass-img-app .fimg-select-item[data-selected="true"] {
    font-weight: 600;
  }

  .fass-img-app .fimg-select-item.is-indented {
    padding-left: 2rem;
  }

  .fass-img-app .fimg-select-header {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--fimg-muted-foreground));
  }

  .fass-img-app
    .fimg-custom-select-container.is-small
    .fimg-select-trigger {
    height: 2rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }

  .fass-img-app
    .fimg-custom-select-container.is-small
    .fimg-select-item {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  .fass-img-app
    .fimg-custom-select-container.is-small
    .fimg-select-header {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  /* Restricted option styles */
  .fass-img-app .fimg-select-item.is-restricted {
    opacity: 0.5;
    cursor: not-allowed;
    color: hsl(var(--fimg-muted-foreground));
    position: relative;
  }

  .fass-img-app .fimg-select-item.is-restricted:hover {
    background-color: hsl(var(--fimg-muted) / 0.5);
  }

  .fass-img-app .fimg-select-item.is-restricted .lock-icon {
    margin-left: 4px;
    color: hsl(var(--fimg-muted-foreground));
  }

  /* Tooltip styles */
  .fass-img-app .fimg-select-item[data-tooltip] {
    position: relative;
  }

  .fass-img-app
    .fimg-select-item[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: hsl(var(--fimg-foreground));
    color: hsl(var(--fimg-background));
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 0.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
      0 2px 4px -1px rgba(0, 0, 0, 0.06);
  }

  .fass-img-app
    .fimg-select-item[data-tooltip]:hover::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: hsl(var(--fimg-foreground));
    z-index: 1000;
  }

  /* Restricted button styles */
  .fass-img-app .fimg-button.is-restricted {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
  }

  .fass-img-app .fimg-button.is-restricted:hover {
    opacity: 0.6;
  }

  /* Button tooltip styles */
  .fass-img-app .fimg-button[data-tooltip] {
    position: relative;
  }

  .fass-img-app .fimg-button[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: hsl(var(--fimg-foreground));
    color: hsl(var(--fimg-background));
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
      0 2px 4px -1px rgba(0, 0, 0, 0.06);
  }

  .fass-img-app .fimg-button[data-tooltip]:hover::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: hsl(var(--fimg-foreground));
    z-index: 1000;
    margin-bottom: -0.5rem;
  }