File: /var/www/html/web-custom-tools/assets/style.css
* {
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
margin: 0;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
}
.container {
max-width: 900px;
margin: 0 auto;
background: white;
border-radius: 16px;
/* box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); */
padding: 40px;
}
h1 {
margin: 0 0 10px 0;
color: #2d3748;
font-size: 32px;
}
.subtitle {
color: #718096;
margin-bottom: 30px;
font-size: 14px;
}
.reality-box {
background: #fef3c7;
border-left: 4px solid #f59e0b;
padding: 20px;
border-radius: 8px;
margin-bottom: 20px;
font-size: 14px;
line-height: 1.6;
}
.reality-box h3 {
margin: 0 0 10px 0;
color: #92400e;
font-size: 16px;
}
.reality-box ul {
margin: 10px 0;
padding-left: 20px;
}
.reality-box li {
margin: 6px 0;
color: #78350f;
}
.upload-zone {
border: 3px dashed #cbd5e0;
border-radius: 12px;
padding: 40px;
text-align: center;
background: #f7fafc;
transition: all 0.3s;
cursor: pointer;
}
.upload-zone:hover {
border-color: #667eea;
background: #edf2f7;
}
.upload-zone.dragover {
border-color: #667eea;
background: #e6fffa;
}
.upload-icon {
font-size: 48px;
margin-bottom: 16px;
}
input[type="file"] {
display: none;
}
.settings {
margin: 30px 0;
padding: 24px;
background: #f7fafc;
border-radius: 12px;
border: 1px solid #e2e8f0;
}
.settings h3 {
margin: 0 0 20px 0;
color: #2d3748;
font-size: 18px;
}
.setting-row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
margin-bottom: 16px;
}
.setting-group {
display: flex;
flex-direction: column;
}
label {
font-size: 13px;
font-weight: 600;
color: #4a5568;
margin-bottom: 6px;
}
input[type="number"],
select {
padding: 10px 12px;
border: 2px solid #e2e8f0;
border-radius: 8px;
font-size: 14px;
transition: border-color 0.2s;
}
input[type="number"]:focus,
select:focus {
outline: none;
border-color: #667eea;
}
.compress-btn {
width: 100%;
padding: 16px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
border-radius: 10px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
margin-top: 20px;
}
.compress-btn:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}
.compress-btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.alternatives {
margin-top: 30px;
padding: 24px;
background: #eff6ff;
border-radius: 12px;
border: 2px solid #3b82f6;
}
.alternatives h3 {
margin: 0 0 16px 0;
color: #1e40af;
font-size: 18px;
}
.alternative-option {
background: white;
padding: 16px;
border-radius: 8px;
margin-bottom: 12px;
border-left: 4px solid #3b82f6;
}
.alternative-option h4 {
margin: 0 0 8px 0;
color: #1e40af;
font-size: 15px;
}
.alternative-option p {
margin: 0;
font-size: 13px;
color: #475569;
line-height: 1.5;
}
.cmd-box {
background: #1e293b;
color: #e2e8f0;
padding: 12px;
border-radius: 6px;
font-family: 'Courier New', monospace;
font-size: 12px;
margin-top: 8px;
overflow-x: auto;
}
.results {
margin-top: 30px;
}
.file-card {
background: white;
border: 2px solid #e2e8f0;
border-radius: 12px;
padding: 20px;
margin-bottom: 16px;
}
.file-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12px;
flex-wrap: wrap;
gap: 8px;
}
.file-name {
font-weight: 600;
color: #2d3748;
font-size: 16px;
flex: 1;
word-break: break-word;
}
.file-status {
padding: 4px 12px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
}
.status-processing {
background: #fef3c7;
color: #92400e;
}
.status-success {
background: #d1fae5;
color: #065f46;
}
.status-nochange {
background: #e5e7eb;
color: #374151;
}
.status-error {
background: #fee2e2;
color: #991b1b;
}
.progress-bar {
width: 100%;
height: 6px;
background: #e2e8f0;
border-radius: 10px;
overflow: hidden;
margin: 12px 0;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
width: 0%;
transition: width 0.3s;
}
.file-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 12px;
margin: 16px 0;
}
.stat {
padding: 12px;
background: #f7fafc;
border-radius: 8px;
text-align: center;
}
.stat-label {
font-size: 11px;
color: #718096;
text-transform: uppercase;
font-weight: 600;
margin-bottom: 4px;
}
.stat-value {
font-size: 16px;
font-weight: 700;
color: #2d3748;
}
.savings {
color: #059669;
}
.download-btn {
display: inline-block;
padding: 12px 24px;
background: #10b981;
color: white;
text-decoration: none;
border-radius: 8px;
font-weight: 600;
transition: all 0.2s;
margin-top: 8px;
}
.download-btn:hover {
background: #059669;
transform: translateY(-1px);
}
.analysis-info {
font-size: 13px;
color: #6b7280;
margin-top: 12px;
padding: 12px;
background: #f9fafb;
border-radius: 6px;
line-height: 1.6;
}