#currentImage {
    overflow: hidden;
    position: relative;
    background-color: #f3f4f6;
    height: 24rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading 动画相关样式 */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid #f3f4f6;
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 1s linear infinite;
    z-index: 5;
}

.loading-text {
    position: absolute;
    top: calc(50% + 35px);
    left: 50%;
    transform: translateX(-50%);
    color: #6b7280;
    font-size: 0.875rem;
    z-index: 5;
}

.image-loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 进度条相关样式 */
#progressContainer {
    border-left: 4px solid #3b82f6;
    animation: fadeIn 0.3s ease-in-out;
}

#progressBar {
    transition: width 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

#cancelProcessing {
    transition: all 0.2s ease;
}

#cancelProcessing:hover {
    transform: scale(1.05);
}

#preview {
    scrollbar-width: thin;
    scrollbar-color: rgba(156, 163, 175, 0.5) transparent;
}

#preview::-webkit-scrollbar {
    width: 6px;
}

#preview::-webkit-scrollbar-track {
    background: transparent;
}

#preview::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.5);
    border-radius: 3px;
}

.aspect-w-3 {
    position: relative;
    padding-bottom: 66.666667%;
}

.aspect-w-3 > * {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

#preview > div {
    transition: all 0.2s ease-in-out;
}

#preview > div:hover {
    transform: scale(1.02);
}

#preview > div.ring-2 {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

#preview img {
    transition: opacity 0.2s ease;
}

#preview img:hover {
    opacity: 0.8;
}

.image-container {
    width: 100%;
    height: 100%;
    transform-origin: center;
}

.viewer-container {
    background-color: transparent !important;
}

#currentImage button {
    z-index: 10;
    transition: background-color 0.2s ease;
    font-size: 1.2rem;
    line-height: 1;
    width: 32px;
    height: 32px;
}

#previewImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.viewer-canvas {
    background-color: #f3f4f6;
}

#imageModal {
    cursor: pointer;
}

#imageModal > div {
    cursor: default;
}

#modalImage {
    cursor: zoom-in;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hover\:text-red-400:hover {
    color: #f87171;
}

select.border-red-500 {
    border-color: #ef4444;
}

select:focus {
    border-color: #3b82f6;
    outline: none;
    ring: 2px;
    ring-color: rgba(59, 130, 246, 0.5);
}

.editable-input {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    padding: 0.5rem;
    padding-right: 2.5rem;
    border-radius: 0.375rem;
    width: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
}

.editable-input:hover {
    border-color: #93c5fd;
    box-shadow: 0 0 0 1px rgba(147, 197, 253, 0.1);
}

.editable-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    outline: none;
    background-color: white;
}

.editable-select {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    padding: 0.5rem;
    padding-right: 2.5rem;
    border-radius: 0.375rem;
    width: 100%;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
}

.editable-select:hover {
    border-color: #93c5fd;
    box-shadow: 0 0 0 1px rgba(147, 197, 253, 0.1);
}

.editable-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    outline: none;
    background-color: white;
}

/* 添加图片查看器的自定义样式 */
.viewer-toolbar > ul > li {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    margin: 2px;
}

.viewer-toolbar > ul > li:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.viewer-toolbar > ul > li::before {
    margin: 2px;
}

/* 确保所有输入框和选择框有相同的高度 */
.editable-input,
.editable-select {
    height: 2.5rem;
    line-height: 1.25;
}

/* Toast 通知样式 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 16px 24px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
    transition: all 0.3s ease;
}

.toast.warning {
    border-left: 4px solid #f59e0b;
}

.toast-icon {
    margin-right: 12px;
    flex-shrink: 0;
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #1f2937;
}

.toast-message {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.4;
}

.toast-close {
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    margin: -4px;
    margin-left: 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.toast-close:hover {
    color: #6b7280;
    background-color: #f3f4f6;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
} 