.primary-btn {
    background: #ec008c;
    border: 1px solid black;
    border-radius: 6px;
    display: inline-block;
    color: white;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    box-shadow: 4px 4px 0 0 black;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.primary-btn.btn-xs {
    font-size: 12px;
    padding: 0.25rem 0.5rem;
}

.primary-btn.btn-sm {
    font-size: 14px;
    padding: 0.35rem 0.6rem;
}

.primary-btn.btn-md {
    font-size: 18px;
    padding: 0.5rem 0.75rem;
}

.primary-btn.btn-lg {
    font-size: 20px;
    padding: 0.65rem 1rem;
}

.primary-btn.btn-xs.btn-full {
    width: 100%;
}

.primary-btn.btn-sm.btn-full {
    width: 100%;
}

.primary-btn.btn-md.btn-full {
    width: 100%;
}

.primary-btn.btn-lg.btn-full {
    width: 100%;
}

.primary-btn:hover {
    transform: translateX(4px) translateY(4px);
    color: white;
    box-shadow: none;
    text-decoration: none;
}

.secondary-btn {
    border: 1px solid black;
    border-radius: 6px;
    display: inline-block;
    background: white;
    color: black !important;
    font-size: 18px;
    font-weight: 500 !important;
    text-transform: uppercase;
    text-wrap: nowrap;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    box-shadow: 4px 4px 0 0 black;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.secondary-btn.btn-xs {
    font-size: 12px;
    padding: 0.25rem 0.5rem;
}

.secondary-btn.btn-sm {
    font-size: 14px;
    padding: 0.35rem 0.6rem;
}

.secondary-btn.btn-md {
    font-size: 18px;
    padding: 0.5rem 0.75rem;
}

.secondary-btn.btn-lg {
    font-size: 20px;
    padding: 0.65rem 1rem;
}

.secondary-btn.btn-xs.btn-full {
    width: 100%;
}

.secondary-btn.btn-sm.btn-full {
    width: 100%;
}

.secondary-btn.btn-md.btn-full {
    width: 100%;
}

.secondary-btn.btn-lg.btn-full {
    width: 100%;
}

.secondary-btn:hover {
    transform: translate(4px, 4px);
    box-shadow: none;
    text-decoration: none;
}

.info-trigger {
    border: 1px solid rgb(0, 0, 0, 0.7) !important;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.info-trigger svg {
    width: 12px;
    height: 12px;
    fill: rgb(0, 0, 0, 0.7);
}

.image-preview {
    position: relative;
    background: white;
    padding: 4px 4px 20px 4px;
    border: 2px solid black;
    min-width: 60px;
    max-width: 80px;
    height: 80px;
    /* border-radius: 6px; */
    object-fit: cover;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.image-preview:hover{
    cursor: pointer;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-preview:hover {
    transform: rotate(-5deg);
    box-shadow: none;
}

.image-preview.sm {
    min-width: 40px;
    max-width: 50px;
    height: 50px;
    padding: 2px 2px 10px 2px;
}

.deletable-preview {
    position: relative;
}

.deletable-preview .delete-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 28px;
    height: 28px;
    background: #ec008c;
    border: 2px solid black;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 2px 2px 0 0 black;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    padding: 0;
    line-height: 1;
    z-index: 10;
}

.deletable-preview .delete-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.image-preview-name {
    position: absolute;
    bottom: 0;
    left: 4px;
    right: 4px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    /* backdrop-filter: blur(2px); */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.confirm-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.confirm-modal {
    background: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    box-shadow: 4px 4px 0px 0px #000;
    width: 90%;
    max-width: 400px;
    padding: 24px;
    text-align: left;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    position: relative;
}

.confirm-modal-overlay.show .confirm-modal {
    transform: translateY(0);
}

.confirm-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #000;
    line-height: 1;
    transition: transform 0.1s ease;
}

.confirm-modal-close:hover {
    transform: scale(1.1);
}

.confirm-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.confirm-modal-body {
    font-size: 1rem;
    color: #000;
    margin-bottom: 24px;
    line-height: 1.5;
    font-weight: 500;
}

.confirm-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.throbber {
    position: relative !important;
    pointer-events: none !important;
    color: transparent !important;
}

.throbber>* {
    opacity: 0 !important;
    pointer-events: none !important;
}

.throbber::after {
    content: "";
    position: absolute;
    top: calc(50% - 8px);
    left: calc(50% - 8px);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-top-color: #ec008c;
    border-radius: 50%;
    animation: global-spin 0.6s linear infinite;
    box-sizing: border-box;
}

@keyframes global-spin {
    to {
        transform: rotate(360deg);
    }
}

.switch-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.switch-text {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 999px;
    box-shadow: 2px 2px 0px 0px #000;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.switch .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: #000;
    border: 2px solid #000;
    border-radius: 50%;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.switch input:checked + .slider {
    background-color: #ec008c;
    box-shadow: 2px 2px 0px 0px #000;
}

.switch input:checked + .slider:before {
    transform: translateX(20px);
    background-color: #fff;
}

.switch input:focus-visible + .slider {
    outline: 2px solid #ec008c;
    outline-offset: 2px;
}

.file-preview {
    position: relative;
    background: white;
    border: 2px solid black;
    width: 80px;
    height: 80px;
    padding: 4px;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: black;
    cursor: pointer;
}

.file-preview:hover {
    transform: rotate(-5deg);
    box-shadow: none;
}

.file-preview::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: black;
    box-shadow: 0 8px 0 0 black, 0 16px 0 0 black, 0 24px 0 0 black, 0 32px 0 0 black;
    opacity: 0.15;
    z-index: 0;
}

.file-preview::after {
    content: "";
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: linear-gradient(to top right, white calc(50% - 1px), black calc(50% - 1px), black calc(50% + 1px), white calc(50% + 1px));
    background-origin: border-box;
    background-clip: border-box;
    border-left: 2px solid black;
    border-bottom: 2px solid black;
    z-index: 1;
}

.file-preview-ext {
    position: relative;
    z-index: 2;
    background: #ec008c;
    color: white;
    padding: 2px 6px;
    border: 2px solid black;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 2px 2px 0 0 black;
}

.file-preview.sm {
    width: 50px;
    height: 50px;
    padding: 2px;
}
.file-preview.sm::after {
    width: 12px;
    height: 12px;
}
.file-preview.sm .file-preview-ext {
    font-size: 9px;
    padding: 1px 4px;
}

.tab-selector {
    background-color: white !important;
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.25rem;
    border: 2px solid black;
    border-radius: 8px;
}

.tab-selector.tab-sm {
    padding: 0.15rem;
    gap: 0.35rem;
}

.tab-btn {
    background-color: white;
    color: black;
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 0.25rem 0.75rem;
    font-family: Inter;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.tab-sm {
    padding: 0.15rem 0.5rem;
    font-size: 0.85rem;
}

.tab-btn:hover {
    border-color: black;
}

.tab-btn.active {
    background-color: #ec008c;
    border-color: black;
    color: white;
    font-weight: 600;
}