@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&display=swap');

.ppt-converter {
    font-family: 'Sora', system-ui, sans-serif;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #E5E7EB;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.09);
    background: #fff;
}

/* ── Header ─────────────────────────────────────── */
.ppt-converter__header {
    background: linear-gradient(135deg, #D93025 0%, #A50E0E 100%);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.ppt-converter__icon {
    width: 48px; height: 48px;
    background: rgba(255,255,255,.18);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,.25);
}

.ppt-converter__title {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -.01em;
}

.ppt-converter__subtitle {
    color: rgba(255,255,255,.75);
    font-size: 12px;
    margin-top: 3px;
    font-weight: 300;
}

/* ── Body ───────────────────────────────────────── */
.ppt-converter__body {
    padding: 24px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Drop zone ──────────────────────────────────── */
.ppt-drop-zone {
    border: 2px dashed #D1D5DB;
    border-radius: 14px;
    padding: 32px 20px;
    text-align: center;
    transition: border-color .2s, background .2s;
    cursor: pointer;
    background: #FAFAFA;
    position: relative;
}

.ppt-drop-zone:hover,
.ppt-drop-zone.ppt-drag-over {
    border-color: #D93025;
    background: #FFF5F5;
}

.ppt-drop-zone.ppt-has-file {
    padding: 18px 20px;
    cursor: default;
    border-style: solid;
    border-color: #D93025;
    background: #FFF5F5;
}

.ppt-drop-zone__icon {
    color: #9CA3AF;
    margin-bottom: 14px;
    transition: color .2s;
}
.ppt-drop-zone:hover .ppt-drop-zone__icon { color: #D93025; }

.ppt-drop-zone__text {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

.ppt-drop-zone__hint {
    font-size: 11.5px;
    color: #9CA3AF;
    margin-top: 8px;
    font-weight: 300;
}

.ppt-link-btn {
    background: none;
    border: none;
    color: #D93025;
    font-weight: 600;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* File selected state */
.ppt-drop-zone__file {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.ppt-file-icon { font-size: 32px; flex-shrink: 0; }

.ppt-file-info { flex: 1; min-width: 0; }

.ppt-file-name {
    font-weight: 600;
    font-size: 13.5px;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ppt-file-size {
    font-size: 12px;
    color: #6B7280;
    margin-top: 2px;
}

.ppt-file-remove {
    background: rgba(217,48,37,.1);
    border: none;
    color: #D93025;
    cursor: pointer;
    border-radius: 8px;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    transition: background .15s;
}
.ppt-file-remove:hover { background: rgba(217,48,37,.2); }

/* ── Progress ───────────────────────────────────── */
.ppt-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ppt-progress__bar {
    width: 100%;
    height: 6px;
    background: #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
}

.ppt-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, #D93025, #FF5449);
    border-radius: 10px;
    width: 0%;
    transition: width .4s ease;
    animation: ppt-shimmer 1.5s infinite;
    background-size: 200% 100%;
}

@keyframes ppt-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.ppt-progress__label {
    font-size: 12.5px;
    color: #6B7280;
    text-align: center;
}

/* ── Convert button ─────────────────────────────── */
.ppt-convert-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #E53E35, #A50E0E);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 600;
    font-family: 'Sora', system-ui, sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform .18s, box-shadow .18s, opacity .15s;
    box-shadow: 0 4px 16px rgba(217,48,37,.35);
    letter-spacing: -.01em;
}

.ppt-convert-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(217,48,37,.45);
}

.ppt-convert-btn:active:not(:disabled) { transform: translateY(0); }

.ppt-convert-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Result ─────────────────────────────────────── */
.ppt-result {
    background: linear-gradient(135deg, #F0FDF4, #DCFCE7);
    border: 1px solid #BBF7D0;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    animation: ppt-in .3s cubic-bezier(.22,1,.36,1) both;
}

@keyframes ppt-in {
    from { opacity:0; transform: scale(.97) translateY(6px); }
    to   { opacity:1; transform: scale(1) translateY(0); }
}

.ppt-result__icon { font-size: 28px; flex-shrink: 0; }

.ppt-result__text {
    flex: 1;
    font-size: 13.5px;
    color: #166534;
    line-height: 1.5;
    min-width: 140px;
}

.ppt-download-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #16A34A;
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Sora', system-ui, sans-serif;
    transition: background .15s, transform .15s;
    white-space: nowrap;
}

.ppt-download-btn:hover { background: #15803D; transform: translateY(-1px); color: white; }

.ppt-convert-another {
    background: none;
    border: 1px solid #BBF7D0;
    color: #166534;
    font-family: 'Sora', system-ui, sans-serif;
    font-size: 12px;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s;
    width: 100%;
    margin-top: 4px;
}
.ppt-convert-another:hover { background: rgba(255,255,255,.6); }

/* ── Error ──────────────────────────────────────── */
.ppt-error {
    background: #FFF5F5;
    border: 1px solid #FED7D7;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: #C53030;
}

.ppt-error__msg { flex: 1; min-width: 160px; }

.ppt-error__retry {
    background: #C53030;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    font-family: 'Sora', system-ui, sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.ppt-error__retry:hover { background: #9B2C2C; }

/* ── Footer ─────────────────────────────────────── */
.ppt-converter__footer {
    text-align: center;
    font-size: 10.5px;
    font-weight: 300;
    color: #9CA3AF;
    padding: 10px;
    border-top: 1px solid #E5E7EB;
    background: #F9FAFB;
}

@media (max-width: 480px) {
    .ppt-converter { border-radius: 12px; }
    .ppt-converter__body { padding: 18px 16px; }
    .ppt-result { flex-direction: column; text-align: center; }
    .ppt-download-btn { width: 100%; justify-content: center; }
}
