/* pdf-to-ppt.css – clean, responsive, professional */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

body {
    background: linear-gradient(145deg, #f6f9fc 0%, #edf2f7 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.converter-container {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
}

.card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: #ffffff;
    border-radius: 36px;
    box-shadow: 0 20px 40px -12px rgba(0,20,40,0.25);
    padding: 2rem 2.2rem;
    transition: box-shadow 0.2s ease;
    border: 1px solid rgba(255,255,255,0.4);
}

.title {
    font-size: 1.9rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #0a2c3d;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.subtitle {
    color: #3c5a6a;
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid #dde7ed;
    padding-bottom: 1rem;
    font-weight: 400;
}

/* ---------- UPLOAD AREA (drag & drop) ---------- */
.upload-area {
    background: #f0f6fa;
    border: 2px dashed #a0c2cf;
    border-radius: 28px;
    padding: 2.2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
    margin-bottom: 1.2rem;
}

.upload-area:hover {
    background: #e3ecf2;
    border-color: #2e7a92;
}

.upload-area.drag-over {
    background: #d9e4ec;
    border-color: #0f5e73;
    border-width: 2px;
    transform: scale(1.01);
}

.upload-icon {
    font-size: 3.2rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: #1e5b6c;
}

.upload-text {
    color: #1e3b47;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.bold {
    font-weight: 600;
}

.fake-link {
    color: #0a6b7c;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.file-hint {
    font-size: 0.8rem;
    color: #4f6a78;
    margin-top: 0.6rem;
    letter-spacing: 0.2px;
}

/* ---------- FILE INFO PANEL ---------- */
.file-info {
    background: #eef3f7;
    border-radius: 18px;
    padding: 1.1rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #cbd8e0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.info-row {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 0.98rem;
}

.info-label {
    font-weight: 600;
    color: #1a4b5c;
}

.info-value {
    color: #0f2f3a;
    font-weight: 500;
    word-break: break-word;
    max-width: 280px;
}

/* ---------- BUTTONS ---------- */
.action-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    border: none;
    padding: 0.85rem 1.8rem;
    border-radius: 60px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: 0.15s ease;
    border: 1px solid transparent;
    flex: 1 1 auto;
}

.btn-primary {
    background: #0e5e73;
    color: white;
    box-shadow: 0 6px 14px rgba(8, 94, 117, 0.2);
}

.btn-primary:hover:not(:disabled) {
    background: #0b4d5e;
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(8, 80, 100, 0.25);
}

.btn-primary:disabled {
    background: #a3bcc6;
    box-shadow: none;
    cursor: not-allowed;
    color: #e3edf0;
}

.btn-secondary {
    background: white;
    color: #1b4f5e;
    border: 1px solid #7f9fab;
}

.btn-secondary:hover {
    background: #f2f8fc;
    border-color: #2d687a;
}

.btn-download {
    background: #1f8563;
    color: white;
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
    box-shadow: 0 6px 14px rgba(31, 133, 99, 0.2);
    text-decoration: none;
    width: 100%;
}

.btn-download:hover {
    background: #166f50;
    transform: translateY(-2px);
}

/* ---------- PROGRESS SECTION ---------- */
.progress-section {
    margin: 1.2rem 0 1.5rem;
    background: #eaf0f3;
    padding: 1.2rem 1.4rem;
    border-radius: 28px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
    color: #1f4c5a;
    font-weight: 500;
}

.progress-bar-bg {
    background: #cbd6dd;
    height: 10px;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
}

.progress-bar-fill {
    background: linear-gradient(90deg, #0f7a8c, #1da2b8);
    height: 100%;
    width: 0%;
    border-radius: 20px;
    transition: width 0.2s ease;
}

.progress-detail {
    margin-top: 0.7rem;
    font-size: 0.88rem;
    color: #215a66;
    text-align: center;
    font-weight: 450;
}

/* ---------- DOWNLOAD AREA + TRUST NOTE ---------- */
.download-area {
    margin-top: 0.8rem;
    margin-bottom: 0.6rem;
    text-align: center;
}

.trust-note {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: #2f5866;
    background: #e2ecf1;
    padding: 0.6rem 0.8rem;
    border-radius: 40px;
    display: inline-block;
    font-weight: 450;
}

.trust-footer {
    margin-top: 1.6rem;
    font-size: 0.78rem;
    color: #4c6f7a;
    text-align: center;
    border-top: 1px solid #cfe0e6;
    padding-top: 1.1rem;
    letter-spacing: 0.3px;
}

/* ---------- ERROR MESSAGE ---------- */
.error-message {
    margin-top: 1.2rem;
    background: #ffe4d9;
    border-left: 6px solid #bc4e5a;
    padding: 1rem 1.2rem;
    border-radius: 18px;
    color: #511c24;
    font-size: 0.94rem;
    font-weight: 500;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 550px) {
    .card {
        padding: 1.6rem;
    }
    .title {
        font-size: 1.7rem;
    }
    .action-bar {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
    .info-row {
        flex-wrap: wrap;
    }
}