/* Drop Zone */
.compress-pdf-main #drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 0.75rem;
    padding: 2.5rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.compress-pdf-main #drop-zone:hover,
.compress-pdf-main .dragover {
    border-color: #3b82f6;
    background-color: #f8fafc;
}
.compress-pdf-main #drop-zone .flex-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.compress-pdf-main #drop-zone svg {
    width: 4rem;
    height: 4rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}
.compress-pdf-main #drop-zone .text-lg { font-size: 1.125rem; }
.compress-pdf-main #drop-zone .font-semibold { font-weight: 600; }
.compress-pdf-main #drop-zone .mt-1 { margin-top: 0.25rem; }

/* Buttons */
.compress-pdf-main .btn {
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    width: 100%;
    text-align: center;
    text-decoration: none;
}
.compress-pdf-main .btn:hover { transform: scale(1.02); }
.compress-pdf-main #browse-btn {
    margin-top: 1rem;
    background-color: #2563eb;
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    width: auto;
}
.compress-pdf-main #browse-btn:hover { background-color: #1d4ed8; }
.compress-pdf-main #compress-btn {
    margin-top: 1.5rem;
}

.compress-pdf-main #download-btn {
    background-color: #2563eb;
    color: #ffffff;
    display: block;
}
.compress-pdf-main #download-btn:hover { background-color: #1d4ed8; }
.compress-pdf-main #start-over-btn {
    background-color: #e2e8f0;
    color: #334155;
}
.compress-pdf-main #start-over-btn:hover { background-color: #cbd5e1; }

/* File Info & Quality Options */
.compress-pdf-main #file-info {
    margin-top: 1.5rem;
    text-align: left;
    background-color: #f1f5f9;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #90b2d5;
}
.compress-pdf-main #file-info p {
        margin-bottom: 0;
}
.compress-pdf-main #file-info .font-medium { font-weight: 500; }
.compress-pdf-main #file-info .text-sm { font-size: 0.875rem; }
.compress-pdf-main #file-info .truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.compress-pdf-main #quality-options {
    margin-top: 1.5rem;
}
.compress-pdf-main .quality-grid {
    display: grid;
    gap: 1rem;
}
.compress-pdf-main .quality-option input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
.compress-pdf-main .quality-option label {
    display: block;
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    color: #475569;
    transition: all 0.2s ease-in-out;
}
.compress-pdf-main .quality-option label .block { display: block; }
.compress-pdf-main .quality-option label .font-bold { font-weight: 700; }
.compress-pdf-main .quality-option label .text-xs { font-size: 0.75rem; }
.compress-pdf-main .quality-option input[type="radio"]:checked + label {
    border-color: #2563eb;
    background-color: #eff6ff;
    color: #1e40af;
}
.compress-pdf-main .quality-option input[type="radio"]:checked + label .text-slate-500 {
    color: #2563eb;
}

/* Loader & Progress */
.compress-pdf-main .loader {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.compress-pdf-main #compressing-state .flex-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 16rem;
}
.compress-pdf-main #compressing-state .text-xl { font-size: 1.25rem; }
.compress-pdf-main #compressing-state .font-semibold { font-weight: 600; }
.compress-pdf-main #compressing-state .mt-6 { margin-top: 1.5rem; }

/* Result State */
.compress-pdf-main #result-state .bg-slate-100 {
    background-color: #f1f5f9;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.compress-pdf-main #result-state .result-grid {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}
.compress-pdf-main #result-state .result-grid .text-sm { font-size: 0.875rem; }
.compress-pdf-main #result-state .result-grid .text-2xl { font-size: 1.5rem; }
.compress-pdf-main #result-state .result-grid .font-bold { font-weight: 700; }
.compress-pdf-main #result-state .result-grid .text-slate-800 { color: #1e293b; }
.compress-pdf-main #result-state .result-grid .text-green-700 { color: #15803d; }
.compress-pdf-main #result-state .result-grid .mb-4 { margin-bottom: 1rem; }
.compress-pdf-main #result-state .result-grid svg {
    width: 2rem;
    height: 2rem;
    color: #22c55e;
    display: none;
}
.compress-pdf-main #result-state .result-grid .divider {
    width: 50%;
    border-bottom: 1px solid #e2e8f0;
    margin: 0.5rem 0;
}
.compress-pdf-main #size-reduction {
    margin-top: 1rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: #16a34a;
}
.compress-pdf-main .button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Utility */
.compress-pdf-main .hidden { display: none; }

/* Responsive */
@media (min-width: 640px) {
    .compress-pdf-main .container {
        padding: 1.5rem;
    }
    .compress-pdf-main .quality-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .compress-pdf-main #result-state .result-grid {
        flex-direction: row;
    }
    .compress-pdf-main #result-state .result-grid .mb-4 {
        margin-bottom: 0;
    }
    .compress-pdf-main #result-state .result-grid svg {
        display: block;
    }
    .compress-pdf-main #result-state .result-grid .divider {
        display: none;
    }
    .compress-pdf-main .button-group {
        flex-direction: row;
    }
}
@media (min-width: 1024px) {
    .compress-pdf-main .container {
        padding: 2rem;
    }
}
