/* 🎨 MAIN WEBSITE HEADER FIX */
header img, .logo img, .site-header img { 
    max-height: 55px !important; 
    width: auto !important; 
    height: 55px !important;
    display: inline-block !important;
}
header nav, header ul { 
    display: flex !important; 
    align-items: center !important; 
    gap: 20px !important; 
    flex-wrap: nowrap !important; 
}
header nav a, header ul li a { 
    white-space: nowrap !important; 
}/* Core Layout & Typography */
main.container {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    color: #1e293b !important;
    background-color: #f8fafc;
    padding: 40px 15px !important;
    border-radius: 16px;
}

.resizer-hero {
    text-align: center;
    margin-bottom: 35px;
}
.resizer-title-main {
    font-size: 2.2rem !important;
    font-weight: 850 !important;
    color: #0f172a !important;
    letter-spacing: -1px !important;
    margin-bottom: 10px !important;
}
.resizer-subtitle-main {
    font-size: 16px !important;
    color: #64748b !important;
    font-weight: 500 !important;
}

.resizer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .resizer-grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

.resizer-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.control-label {
    font-weight: 700 !important;
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Drag and Drop Zone Styles */
.drop-zone {
    border: 2px dashed #cbd5e0;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}
.drop-zone:hover, .drop-zone.drag-over {
    border-color: #0ea5e9;
    background: #f0f9ff;
}
.drop-zone-text {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}
.browse-btn {
    color: #0ea5e9;
    text-decoration: underline;
    font-weight: 700;
}
.file-input {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Preset Button Grid */
.preset-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}
.preset-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13.5px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}
.preset-btn:hover {
    background: #e2e8f0;
}
.preset-btn.active {
    background: #0ea5e9;
    color: white;
    border-color: #0ea5e9;
}

.pro-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    outline: none;
    box-sizing: border-box;
}
.pro-input:focus {
    border-color: #0ea5e9;
}

.cc-flex-row {
    display: flex;
    gap: 15px;
    margin-bottom: 22px;
}
.cc-flex-col { flex: 1; }

.resizer-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700 !important;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
    transition: all 0.2s;
}
.resizer-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
}
.resizer-btn:disabled {
    background: #cbd5e0;
    box-shadow: none;
    cursor: not-allowed;
}
.resizer-btn.download-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    display: inline-block;
    text-decoration: none;
    margin-top: 15px;
}

/* Results Card styling */
.result-card {
    background: #ffffff;
    border: 2px dashed #cbd5e0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
    padding: 30px;
    box-sizing: border-box;
    border-radius: 16px;
}
.empty-state-text {
    text-align: center;
    color: #64748b;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.6;
}

.section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}
.preview-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 12px;
    max-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.preview-box img {
    max-width: 100%;
    max-height: 260px;
    object-fit: contain;
    border-radius: 6px;
}
.image-meta {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 15px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0ea5e9;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: none;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* FAQ Styles */
.faq-section {
    max-width: 850px;
    margin: 60px auto 30px auto;
}
.faq-main-title {
    font-size: 24px !important;
    font-weight: 850 !important;
    color: #0f172a;
    margin-bottom: 30px;
    text-align: center;
}
.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 16px;
}
.faq-question {
    font-size: 16.5px !important;
    font-weight: 750 !important;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 10px;
}
.faq-answer {
    font-size: 14.5px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}