.compressor-tool-wrapper {
padding: 2rem 0 4rem;
background-color: var(--color-bg, #f8fafc);
min-height: calc(100vh - 200px);
}
.comp-page-header {
margin-bottom: 2rem;
text-align: left;
}
.comp-page-badge {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.35rem 0.85rem;
background-color: rgba(37, 99, 235, 0.08);
color: var(--color-accent-600, #2563EB);
border: 1px solid rgba(37, 99, 235, 0.18);
border-radius: 9999px;
font-size: 0.8125rem;
font-weight: 700;
margin-bottom: 0.85rem;
letter-spacing: 0.02em;
max-width: 100%;
white-space: normal;
word-break: break-word;
box-sizing: border-box;
}
.comp-page-badge svg {
width: 14px;
height: 14px;
flex-shrink: 0;
}
.comp-page-title {
font-size: clamp(1.75rem, 4vw, 2.65rem);
color: var(--color-primary-900, #0A2540);
margin: 0 0 0.65rem 0;
font-weight: 800;
line-height: 1.2;
letter-spacing: -0.025em;
word-break: break-word;
overflow-wrap: break-word;
}
.comp-page-subtitle {
font-size: 1.05rem;
color: var(--color-text-muted, #475569);
max-width: 780px;
line-height: 1.6;
margin: 0;
word-break: break-word;
overflow-wrap: break-word;
}
.comp-privacy-banner {
display: flex;
align-items: center;
gap: 0.85rem;
background: #f0fdf4;
border: 1px solid #bbf7d0;
border-radius: var(--radius-lg, 12px);
padding: 0.85rem 1.25rem;
margin-top: 1.5rem;
margin-bottom: 2rem;
color: #166534;
max-width: 100%;
box-sizing: border-box;
box-shadow: 0 1px 3px rgba(22, 101, 52, 0.05);
}
.comp-privacy-icon {
width: 24px;
height: 24px;
flex-shrink: 0;
color: #16a34a;
}
.comp-privacy-text {
font-size: 0.9375rem;
font-weight: 600;
line-height: 1.45;
margin: 0;
color: #15803d;
}
.comp-global-alert {
padding: 0.85rem 1.25rem;
background-color: #fef2f2;
border: 1px solid #fee2e2;
border-left: 4px solid #ef4444;
border-radius: var(--radius-md, 8px);
color: #991b1b;
font-size: 0.875rem;
margin-bottom: 1.5rem;
}
.comp-dropzone {
position: relative;
border: 2px dashed #93c5fd;
border-radius: 16px;
background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
padding: 3rem 1.5rem;
text-align: center;
transition: all var(--transition-fast, 0.2s) ease;
cursor: pointer;
margin-bottom: 2rem;
box-shadow: 0 4px 16px -2px rgba(10, 37, 64, 0.04);
}
.comp-dropzone:hover,
.comp-dropzone:focus-visible,
.comp-dropzone.is-dragover {
border-color: var(--color-accent-600, #2563EB);
background: #eff6ff;
box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), 0 8px 24px -4px rgba(37, 99, 235, 0.08);
outline: none;
}
.comp-dropzone-icon-wrap {
width: 68px;
height: 68px;
border-radius: 50%;
background: #eff6ff;
border: 1px solid #dbeafe;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1.25rem;
color: var(--color-accent-600, #2563EB);
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
transition: transform var(--transition-fast, 0.2s) ease;
}
.comp-dropzone:hover .comp-dropzone-icon-wrap,
.comp-dropzone.is-dragover .comp-dropzone-icon-wrap {
transform: translateY(-2px) scale(1.05);
}
.comp-dropzone-icon {
width: 32px;
height: 32px;
}
.comp-dropzone-title {
font-size: 1.35rem;
font-weight: 700;
color: var(--color-primary-900, #0A2540);
margin: 0 0 0.5rem 0;
letter-spacing: -0.01em;
}
.comp-dropzone-or {
font-size: 0.8125rem;
font-weight: 600;
color: var(--color-text-subtle, #94a3b8);
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 0.85rem;
}
.comp-dropzone-formats {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
margin-top: 1.25rem;
flex-wrap: wrap;
}
.comp-format-pill {
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.04em;
color: #3b82f6;
background-color: #eff6ff;
border: 1px solid #dbeafe;
padding: 0.2rem 0.6rem;
border-radius: 6px;
}
.comp-dropzone-hint {
font-size: 0.875rem;
color: var(--color-text-muted, #475569);
margin-top: 0.75rem;
margin-bottom: 0;
}
.comp-card {
background-color: #ffffff;
border: 1px solid var(--color-border, #DCE4EF);
border-radius: 16px;
padding: 1.75rem;
box-shadow: 0 4px 16px -2px rgba(10, 37, 64, 0.05);
margin-bottom: 2rem;
}
.comp-card-header {
display: flex;
align-items: center;
gap: 0.75rem;
padding-bottom: 1.25rem;
margin-bottom: 1.5rem;
border-bottom: 1px solid var(--color-border, #e2e8f0);
}
.comp-card-icon-wrap {
width: 36px;
height: 36px;
border-radius: 8px;
background-color: #eff6ff;
color: var(--color-accent-600, #2563EB);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.comp-card-title {
font-size: 1.2rem;
font-weight: 700;
color: var(--color-primary-900, #0A2540);
margin: 0;
letter-spacing: -0.01em;
}
.comp-controls-grid {
display: grid;
grid-template-columns: 1fr;
gap: 1.5rem;
}
@media (min-width: 768px) {
.comp-controls-grid {
grid-template-columns: 1fr 1fr;
}
}
.comp-form-group {
margin-bottom: 1.25rem;
}
.comp-form-group:last-child {
margin-bottom: 0;
}
.comp-label-row {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.5rem;
}
.comp-label {
font-size: 0.875rem;
font-weight: 600;
color: var(--color-primary-900, #0A2540);
}
.comp-badge-val {
font-size: 0.8125rem;
font-weight: 700;
padding: 0.25rem 0.65rem;
background-color: var(--color-accent-50, #eff6ff);
color: var(--color-accent-700, #1d4ed8);
border: 1px solid #bfdbfe;
border-radius: 6px;
font-variant-numeric: tabular-nums;
}
.comp-slider {
width: 100%;
height: 8px;
background: var(--color-border, #e2e8f0);
border-radius: 9999px;
outline: none;
cursor: pointer;
accent-color: var(--color-accent-600, #2563EB);
margin-top: 0.35rem;
}
.comp-select,
.comp-input {
width: 100%;
padding: 0.7rem 0.9rem;
border: 1px solid var(--color-border, #cbd5e1);
border-radius: var(--radius-md, 8px);
font-size: 0.9375rem;
color: var(--color-primary-900, #0A2540);
background-color: #ffffff;
outline: none;
transition: border-color var(--transition-fast, 0.2s), box-shadow var(--transition-fast, 0.2s);
}
.comp-select:focus,
.comp-input:focus {
border-color: var(--color-accent-600, #2563EB);
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.comp-help-text {
font-size: 0.8125rem;
color: var(--color-text-muted, #64748b);
margin-top: 0.45rem;
line-height: 1.45;
margin-bottom: 0;
}
.comp-note-banner {
background-color: #eff6ff;
border: 1px solid #dbeafe;
border-left: 4px solid var(--color-accent-600, #2563EB);
border-radius: var(--radius-md, 8px);
padding: 0.75rem 1rem;
font-size: 0.8125rem;
color: #1e40af;
margin-top: 0.75rem;
line-height: 1.5;
}
.comp-warn-banner {
background-color: #fffbeb;
border: 1px solid #fef3c7;
border-left: 4px solid #f59e0b;
border-radius: var(--radius-md, 8px);
padding: 0.75rem 1rem;
font-size: 0.8125rem;
color: #92400e;
margin-top: 0.75rem;
line-height: 1.5;
}
.comp-toggle-row {
display: inline-flex;
align-items: center;
gap: 0.75rem;
cursor: pointer;
user-select: none;
}
.comp-checkbox {
width: 1.25rem;
height: 1.25rem;
accent-color: var(--color-accent-600, #2563EB);
cursor: pointer;
}
.comp-resize-panel {
display: grid;
grid-template-columns: 1fr;
gap: 1rem;
padding: 1.25rem;
background-color: #f8fafc;
border: 1px solid var(--color-border, #e2e8f0);
border-radius: 12px;
margin-top: 1rem;
}
@media (min-width: 640px) {
.comp-resize-panel {
grid-template-columns: 1fr 1fr;
}
}
.comp-batch-bar {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 1.25rem;
background: linear-gradient(135deg, #0A2540 0%, #17375E 100%);
color: #ffffff;
border-radius: 14px;
padding: 1.15rem 1.65rem;
margin-bottom: 2rem;
box-shadow: 0 10px 25px -5px rgba(10, 37, 64, 0.25);
}
.comp-batch-summary {
font-size: 1rem;
font-weight: 700;
margin: 0;
letter-spacing: -0.01em;
}
.comp-batch-actions {
display: flex;
align-items: center;
gap: 0.75rem;
flex-wrap: wrap;
}
.comp-progress-wrap {
width: 100%;
margin-top: 0.75rem;
}
.comp-progress-bar-bg {
width: 100%;
height: 8px;
background-color: rgba(255, 255, 255, 0.2);
border-radius: 9999px;
overflow: hidden;
}
.comp-progress-bar-fill {
height: 100%;
background: linear-gradient(90deg, #22c55e 0%, #4ade80 100%);
width: 0%;
transition: width 0.3s ease;
}
.comp-progress-text {
font-size: 0.8125rem;
color: #cbd5e1;
margin-top: 0.4rem;
margin-bottom: 0;
}
.comp-items-container {
display: flex;
flex-direction: column;
gap: 1.5rem;
margin-bottom: 2.5rem;
}
.comp-item-card {
background-color: #ffffff;
border: 1px solid var(--color-border, #DCE4EF);
border-radius: 14px;
overflow: hidden;
box-shadow: 0 4px 16px -2px rgba(10, 37, 64, 0.05);
transition: all var(--transition-fast, 0.2s) ease;
}
.comp-item-card:hover {
box-shadow: 0 10px 25px -5px rgba(10, 37, 64, 0.1);
border-color: #cbd5e1;
}
.comp-item-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.95rem 1.35rem;
background-color: #f8fafc;
border-bottom: 1px solid var(--color-border, #e2e8f0);
gap: 0.75rem;
}
.comp-item-name {
font-size: 0.95rem;
font-weight: 700;
color: var(--color-primary-900, #0A2540);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 60%;
}
.comp-item-meta {
display: flex;
align-items: center;
gap: 0.65rem;
}
.comp-status-badge {
font-size: 0.75rem;
font-weight: 700;
padding: 0.25rem 0.65rem;
border-radius: 9999px;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.comp-status-badge.waiting {
background-color: #f1f5f9;
color: #475569;
}
.comp-status-badge.processing {
background-color: #dbeafe;
color: #1d4ed8;
}
.comp-status-badge.done {
background-color: #dcfce7;
color: #15803d;
}
.comp-status-badge.failed {
background-color: #fee2e2;
color: #b91c1c;
}
.comp-btn-icon-remove {
background: none;
border: none;
color: #94a3b8;
cursor: pointer;
padding: 0.35rem;
border-radius: 6px;
display: inline-flex;
align-items: center;
justify-content: center;
transition: all var(--transition-fast, 0.2s);
}
.comp-btn-icon-remove:hover {
background-color: #fee2e2;
color: #ef4444;
}
.comp-item-body {
padding: 1.35rem;
display: grid;
grid-template-columns: 1fr;
gap: 1.25rem;
}
@media (min-width: 640px) {
.comp-item-body {
grid-template-columns: 1fr 1fr;
}
}
.comp-side-panel {
display: flex;
flex-direction: column;
background-color: #f8fafc;
border: 1px solid var(--color-border, #e2e8f0);
border-radius: 10px;
padding: 1rem;
}
.comp-side-title {
font-size: 0.8125rem;
font-weight: 700;
color: var(--color-text-subtle, #64748b);
text-transform: uppercase;
letter-spacing: 0.06em;
margin-bottom: 0.65rem;
}
.comp-thumb-wrap {
width: 100%;
height: 150px;
background-color: #ffffff;
background-image: linear-gradient(45deg, #f1f5f9 25%, transparent 25%),
linear-gradient(-45deg, #f1f5f9 25%, transparent 25%),
linear-gradient(45deg, transparent 75%, #f1f5f9 75%),
linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
background-size: 16px 16px;
background-position: 0 0, 0 8px, 8px -8px, -8px 0;
border: 1px solid #e2e8f0;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
margin-bottom: 0.85rem;
}
.comp-thumb-img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
.comp-side-stats {
font-size: 0.8125rem;
color: var(--color-text-main, #334155);
line-height: 1.6;
margin: 0;
}
.comp-side-stats span {
font-weight: 700;
color: var(--color-primary-900, #0A2540);
font-variant-numeric: tabular-nums;
}
.comp-savings-badge {
display: inline-flex;
align-items: center;
gap: 0.4rem;
padding: 0.4rem 0.75rem;
border-radius: 9999px;
font-size: 0.8125rem;
font-weight: 700;
margin-top: 0.65rem;
font-variant-numeric: tabular-nums;
}
.comp-savings-badge.saved {
background-color: #dcfce7;
color: #15803d;
border: 1px solid #bbf7d0;
}
.comp-savings-badge.larger {
background-color: #fffbeb;
color: #b45309;
border: 1px solid #fde68a;
}
.comp-savings-badge.no-change {
background-color: #f1f5f9;
color: #475569;
border: 1px solid #e2e8f0;
}
.comp-item-footer {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 0.75rem;
padding: 0.95rem 1.35rem;
background-color: #ffffff;
border-top: 1px solid var(--color-border, #e2e8f0);
flex-wrap: wrap;
}
.comp-item-error {
padding: 1rem 1.25rem;
background-color: #fef2f2;
color: #991b1b;
font-size: 0.875rem;
border-top: 1px solid #fee2e2;
}
.comp-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
font-size: 0.875rem;
font-weight: 600;
padding: 0.55rem 1.15rem;
border-radius: var(--radius-md, 8px);
cursor: pointer;
transition: all var(--transition-fast, 0.2s) ease;
text-decoration: none;
border: 1px solid transparent;
line-height: 1.4;
}
.comp-btn-lg {
padding: 0.75rem 1.5rem;
font-size: 1rem;
border-radius: 10px;
}
.comp-btn-primary {
background-color: var(--color-accent-600, #2563EB);
color: #ffffff;
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}
.comp-btn-primary:hover {
background-color: var(--color-accent-700, #1d4ed8);
box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
color: #ffffff;
}
.comp-btn-success {
background-color: #16a34a;
color: #ffffff;
box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
}
.comp-btn-success:hover {
background-color: #15803d;
box-shadow: 0 4px 10px rgba(22, 163, 74, 0.35);
color: #ffffff;
}
.comp-btn-secondary {
background-color: #ffffff;
color: #334155;
border-color: #cbd5e1;
}
.comp-btn-secondary:hover {
background-color: #f8fafc;
border-color: #94a3b8;
}
.comp-btn-danger {
background-color: #fee2e2;
color: #991b1b;
border-color: #fecaca;
}
.comp-btn-danger:hover {
background-color: #ef4444;
color: #ffffff;
border-color: #ef4444;
}
.comp-btn:disabled {
opacity: 0.6;
cursor: not-allowed;
box-shadow: none;
}
.comp-info-section {
margin-top: 3.5rem;
}
.comp-info-card {
display: flex;
align-items: flex-start;
gap: 1.25rem;
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
border: 1px solid var(--color-border, #DCE4EF);
border-radius: 16px;
padding: 1.5rem 1.75rem;
margin-bottom: 2.75rem;
box-shadow: 0 4px 12px rgba(10, 37, 64, 0.03);
}
.comp-info-icon-wrap {
width: 48px;
height: 48px;
border-radius: 12px;
background: #ffffff;
border: 1px solid #dbeafe;
color: var(--color-accent-600, #2563EB);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}
.comp-info-icon {
width: 26px;
height: 26px;
}
.comp-info-title {
font-size: 1.25rem;
font-weight: 700;
color: var(--color-primary-900, #0A2540);
margin: 0 0 0.5rem 0;
letter-spacing: -0.01em;
}
.comp-info-desc {
margin: 0;
font-size: 0.9375rem;
line-height: 1.6;
color: var(--color-text-muted, #475569);
}
.comp-faq-heading {
font-size: 1.35rem;
font-weight: 700;
color: var(--color-primary-900, #0A2540);
margin: 0 0 1.25rem 0;
letter-spacing: -0.01em;
}
.comp-faq-grid {
display: grid;
grid-template-columns: 1fr;
gap: 1.25rem;
}
@media (min-width: 768px) {
.comp-faq-grid {
grid-template-columns: 1fr 1fr;
}
}
.comp-faq-card {
background-color: #ffffff;
border: 1px solid var(--color-border, #DCE4EF);
border-radius: 12px;
padding: 1.35rem 1.5rem;
box-shadow: 0 2px 8px rgba(10, 37, 64, 0.03);
transition: transform var(--transition-fast, 0.2s), box-shadow var(--transition-fast, 0.2s);
}
.comp-faq-card:hover {
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(10, 37, 64, 0.06);
border-color: #cbd5e1;
}
.comp-faq-q {
font-size: 0.95rem;
font-weight: 700;
color: var(--color-primary-900, #0A2540);
margin: 0 0 0.5rem 0;
line-height: 1.4;
}
.comp-faq-a {
font-size: 0.875rem;
color: var(--color-text-muted, #475569);
line-height: 1.6;
margin: 0;
}
@media (max-width: 639px) {
.compressor-tool-wrapper {
padding: 1.25rem 0 2.5rem;
}
.comp-page-header {
margin-bottom: 1.5rem;
}
.comp-card {
padding: 1.25rem 1rem;
border-radius: 12px;
}
.comp-privacy-banner {
padding: 0.75rem 0.85rem;
gap: 0.65rem;
}
.comp-dropzone {
padding: 2rem 1rem;
border-radius: 12px;
}
.comp-page-badge {
font-size: 0.75rem;
padding: 0.25rem 0.65rem;
}
.comp-dropzone-icon-wrap {
width: 54px;
height: 54px;
margin-bottom: 1rem;
}
.comp-dropzone-icon {
width: 26px;
height: 26px;
}
.comp-batch-bar {
flex-direction: column;
align-items: stretch;
text-align: center;
padding: 1rem;
}
.comp-batch-actions {
justify-content: center;
}
.comp-batch-actions .comp-btn {
width: 100%;
}
.comp-item-header {
flex-direction: column;
align-items: flex-start;
}
.comp-item-name {
max-width: 100%;
}
.comp-item-meta {
width: 100%;
justify-content: space-between;
}
.comp-item-footer {
justify-content: stretch;
}
.comp-item-footer .comp-btn {
width: 100%;
}
.comp-info-card {
flex-direction: column;
padding: 1.25rem 1rem;
}
}
