* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.upload-section {
    background: #f8f9ff;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px dashed #667eea;
    transition: all 0.3s ease;
}

.upload-section:hover {
    border-color: #764ba2;
    background: #f0f4ff;
}

.file-input-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
    width: 100%;
    margin-bottom: 15px;
}

.file-input-wrapper input[type=file] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-display {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: block;
    width: 100%;
}

.file-input-display:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* 推送配置区域样式 */
.push-config-section {
    background: #e8f5e8;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 2px dashed #28a745;
    transition: all 0.3s ease;
}

.push-config-section:hover {
    border-color: #20c997;
    background: #d4f4dd;
}

.push-config-section h4 {
    color: #155724;
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.config-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.config-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.config-input:focus {
    border-color: #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.2);
}

.config-input::placeholder {
    color: #999;
    font-style: italic;
}

.config-label {
    min-width: 100px;
    font-weight: bold;
    color: #495057;
    font-size: 13px;
}

.push-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.push-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
}

.push-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.config-helper {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
    border-left: 4px solid #28a745;
    font-size: 12px;
    color: #666;
}

.config-helper h5 {
    color: #495057;
    margin-bottom: 8px;
    font-size: 13px;
}

.config-helper ul {
    margin: 0;
    padding-left: 16px;
}

.config-helper li {
    margin-bottom: 4px;
    line-height: 1.4;
}

.config-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.config-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.config-toggle label {
    cursor: pointer;
    font-weight: bold;
    color: #495057;
}

.remote-url-section {
    background: #fff9e6;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 2px dashed #f39c12;
    transition: all 0.3s ease;
}

.remote-url-section:hover {
    border-color: #e67e22;
    background: #fef5e7;
}

.remote-url-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.remote-url-input:focus {
    border-color: #f39c12;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.2);
}

.remote-url-input::placeholder {
    color: #999;
    font-style: italic;
}

.load-remote-btn {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
}

.load-remote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(243, 156, 18, 0.3);
}

.load-remote-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.upload-tabs {
    display: flex;
    margin-bottom: 20px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.upload-tab {
    flex: 1;
    padding: 15px 20px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
}

.upload-tab.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.upload-tab:hover:not(.active) {
    background: #e9ecef;
    color: #495057;
}

.upload-content {
    display: none;
}

.upload-content.active {
    display: block;
}

.quick-add-section {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.quick-add-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    outline: none;
}

.quick-add-input:focus {
    border-color: #667eea;
}

.control-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
    justify-content: space-between;
    background: #f8f9ff;
    padding: 20px;
    border-radius: 15px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

button {
    padding: 12px 20px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

button:active {
    transform: scale(0.98);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.delete-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
}

.delete-btn:hover {
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.success-btn {
    background: linear-gradient(45deg, #00b894, #00a085);
}

.warning-btn {
    background: linear-gradient(45deg, #fdcb6e, #e17055);
}

.search-input,
.filter-select {
    padding: 10px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 25px;
    outline: none;
    transition: all 0.3s ease;
    min-width: 200px;
}

.search-input:focus,
.filter-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.2);
}

.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    min-height: 200px;
}

.image-item {
    position: relative;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.image-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-item:hover img {
    transform: scale(1.05);
}

.image-info {
    padding: 15px;
    background: white;
}

.image-url {
    font-size: 12px;
    color: #666;
    word-break: break-all;
    margin-bottom: 10px;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 5px;
}

.image-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #888;
    margin-bottom: 10px;
}

.image-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
}

.status-success {
    background: #d4edda;
    color: #155724;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
}

.status-loading {
    background: #fff3cd;
    color: #856404;
}

.image-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.image-actions {
    display: flex;
    gap: 5px;
}

.image-actions button {
    padding: 5px 10px;
    font-size: 11px;
    min-width: auto;
    position: relative;
}

.copy-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    position: relative;
    overflow: hidden;
}

.copy-btn.copied {
    background: linear-gradient(45deg, #00b894, #00a085);
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.delete-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 2;
}

.select-all-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #f8f9ff;
    border-radius: 8px;
    font-weight: bold;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 11px;
    opacity: 0.9;
}

.no-images {
    display: none !important;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #667eea;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
    font-style: italic;
    background: #f8f9ff;
    border-radius: 10px;
    border: 1px dashed #d1d9e6;
}

.view-mode-toggle {
    display: flex;
    background: #ffffff;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 2px;
}

.view-mode-btn {
    padding: 10px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    border-radius: 8px;
    margin: 0 1px;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.view-mode-btn:hover {
    background: #f7fafc;
    color: #2d3748;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.view-mode-btn.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transform: none;
}

.view-mode-btn.active:hover {
    background: linear-gradient(45deg, #5a6fd8, #6b42a1);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.view-mode-btn::before {
    content: '';
    font-size: 14px;
    margin-right: 4px;
}

.view-mode-btn[data-mode="grid"]::before {
    content: '⊞';
}

.view-mode-btn[data-mode="compact"]::before {
    content: '⊡';
}

.view-mode-btn[data-mode="list"]::before {
    content: '☰';
}

.view-mode-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.grid-view {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.list-view {
    grid-template-columns: 1fr;
}

.list-view .image-item {
    display: flex;
    height: 120px;
}

.list-view .image-item img {
    width: 200px;
    height: 120px;
    flex-shrink: 0;
}

.list-view .image-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.compact-view {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.compact-view .image-item {
    height: auto;
    min-height: 200px;
    border-radius: 12px;
    overflow: visible;
    position: relative;
}

.compact-view .image-item img {
    height: 120px;
    border-radius: 8px 8px 0 0;
}

.compact-view .image-info {
    padding: 10px 8px;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.compact-view .image-url {
    font-size: 10px;
    line-height: 1.3;
    max-height: 32px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    padding: 4px 6px;
    margin-bottom: 6px;
}

.compact-view .image-meta {
    font-size: 9px;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 4px;
}

.compact-view .image-status {
    padding: 1px 6px;
    font-size: 8px;
    border-radius: 8px;
}

.compact-view .image-controls {
    margin-top: auto;
}

.compact-view .image-actions {
    gap: 3px;
    flex-wrap: wrap;
    justify-content: center;
}

.compact-view .image-actions button {
    padding: 4px 6px;
    font-size: 10px;
    min-width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compact-view .delete-checkbox {
    width: 16px;
    height: 16px;
    top: 8px;
    left: 8px;
}

.compact-view .image-item:hover {
    transform: translateY(-5px) scale(1.02);
    z-index: 10;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.compact-view .image-url:hover {
    position: relative;
    z-index: 100;
}

.compact-view .image-url::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    max-width: 300px;
    word-break: break-all;
    white-space: normal;
}

.compact-view .image-url:hover::after {
    opacity: 1;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #00b894, #00a085);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 184, 148, 0.3);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.error {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.toast.warning {
    background: linear-gradient(45deg, #fdcb6e, #e17055);
    box-shadow: 0 10px 30px rgba(253, 203, 110, 0.3);
}

.toast .icon {
    font-size: 16px;
}

.loading-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 900px;
    max-height: 90%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

.batch-operations {
    background: #e8f4f8;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.batch-operations h3 {
    margin-bottom: 10px;
    color: #333;
}

.sort-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

.confirm-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.confirm-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
    animation: scaleIn 0.3s ease forwards;
    position: relative;
    overflow: hidden;
}

.confirm-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
}

.confirm-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
    color: #ff6b6b;
    animation: bounce 0.6s ease;
}

.confirm-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.confirm-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

.confirm-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.confirm-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 100px;
    position: relative;
    overflow: hidden;
}

.confirm-btn-cancel {
    background: #e9ecef;
    color: #6c757d;
}

.confirm-btn-cancel:hover {
    background: #dee2e6;
    transform: translateY(-2px);
}

.confirm-btn-confirm {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
}

.confirm-btn-confirm:hover {
    background: linear-gradient(45deg, #ff5252, #d63031);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* URL示例样式 */
.url-examples {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #f39c12;
}

.url-examples h4 {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    font-weight: bold;
}

.url-examples ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.url-examples li {
    font-size: 11px;
    color: #777;
    margin-bottom: 3px;
    padding: 3px 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.url-examples li:hover {
    color: #f39c12;
    text-decoration: underline;
}

.url-examples li::before {
    content: "• ";
    color: #f39c12;
    margin-right: 5px;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 5px;
    }

    .control-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .control-group {
        justify-content: center;
    }

    .image-preview {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .toast {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }

    .toast.show {
        transform: translateY(0);
    }

    .confirm-content {
        padding: 25px 20px;
        margin: 20px;
    }

    .confirm-title {
        font-size: 20px;
    }

    .confirm-message {
        font-size: 14px;
    }

    .confirm-buttons {
        flex-direction: column;
    }

    .confirm-btn {
        width: 100%;
    }

    .view-mode-toggle {
        width: 100%;
        justify-content: center;
    }

    .view-mode-btn {
        flex: 1;
        min-width: 0;
        padding: 12px 8px;
        font-size: 12px;
    }

    .upload-tabs {
        flex-direction: column;
    }

    .upload-tab {
        border-radius: 0;
    }

    .upload-tab:first-child {
        border-radius: 12px 12px 0 0;
    }

    .upload-tab:last-child {
        border-radius: 0 0 12px 12px;
    }

    .config-row {
        flex-direction: column;
        align-items: stretch;
    }

    .config-label {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .compact-view {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .compact-view .image-item {
        min-height: 160px;
    }

    .compact-view .image-item img {
        height: 80px;
    }
}