.convert-it-upload-zone {
    border: 2px dashed #0058be;
    border-radius: 12px;
    padding: 48px 32px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
    cursor: pointer;
}

.convert-it-upload-zone:hover,
.convert-it-upload-zone.is-drag-over {
    border-color: #2563eb;
    background-color: rgba(255, 255, 255, 0.09);
}

.convert-it-upload-zone.is-error {
    border-color: #ef4444;
    background-color: rgba(255, 0, 0, 0.04);
}

.convert-it-upload-zone.is-success {
    border-color: #10b981;
    background-color: #ecfdf5;
}

.convert-it-upload-zone-icon {
    font-size: 48px;
    color: #0058be;
    margin-bottom: 16px;
}

.convert-it-upload-zone-text {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 500;
}

.convert-it-upload-zone-hint {
    font-size: 0.875rem;
    color: #94a3b8;
}

.convert-it-upload-preview {
    margin-top: 16px;
    text-align: center;
}

.convert-it-upload-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.convert-it-progress {
    height: 8px;
    background-color: #f1f5f9;
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 16px;
}

.convert-it-progress-bar {
    height: 100%;
    background-color: #2563eb;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 9999px;
}

@media (max-width: 767px) {
    .convert-it-upload-zone {
        padding: 32px 16px;
    }
}

/* ---- In-widget download screen (shown after a conversion) ---- */
.ci-ds {
    text-align: center;
}

.ci-ds-success-icon {
    width: 56px;
    height: 56px;
    margin: 14px auto 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.ci-ds-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px;
}

.ci-ds-subtitle {
    font-size: 13px;
    color: #94a3b8;
    margin: 0 0 24px;
}

.ci-ds-file {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 88, 190, 0.6);
    border-radius: 10px;
    margin-bottom: 24px;
}

.ci-ds-file-icon {
    display: flex;
    flex-shrink: 0;
    color: #0058be;
}

.ci-ds-file-meta {
    min-width: 0;
    flex: 1;
}

.ci-ds-file-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    word-break: break-word;
}

.ci-ds-file-sub {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.ci-ds-comparison {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 24px;
}

.ci-ds-savings {
    color: #4ade80;
    font-weight: 600;
}

.ci-ds-larger {
    color: #fbbf24;
    font-weight: 600;
}

.ci-ds-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    color: #ffffff;
    text-decoration: none;
    background: #0058be;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ci-ds-download:hover {
    background: #004a9c;
    transform: translateY(-1px);
}

.ci-ds-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    min-width: 325px;
}

.ci-ds-share,
.ci-ds-another {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 88, 190, 0.6);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.ci-ds-share:hover,
.ci-ds-another:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}

/* ---- Download page shortcode ---- */
.ci-download-screen {
    max-width: 560px;
    margin: 0 auto;
    padding: 24px 0;
}

.ci-download-card {
    background: rgb(37, 47, 74);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
}

.ci-download-card.is-empty {
    color: #94a3b8;
}

.ci-download-empty-icon {
    color: #64748b;
    margin-bottom: 12px;
}

.ci-download-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.ci-download-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px;
}

.ci-download-subtitle {
    font-size: 14px;
    color: #94a3b8;
    margin: 0 0 20px;
}

.ci-download-file {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    padding: 16px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(0, 88, 190, 0.6);
    border-radius: 10px;
    margin-bottom: 20px;
}

.ci-download-file-icon {
    flex-shrink: 0;
    color: #0058be;
}

.ci-download-file-name {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    word-break: break-word;
}

.ci-download-file-sub {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 2px;
}

.ci-download-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px 24px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    background: #0058be;
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ci-download-now:hover {
    background: #004a9c;
    transform: translateY(-1px);
}

.ci-download-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 14px;
    flex-direction: row;
    align-items: center;
}

.ci-share-button,
.ci-myfiles-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    gap: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(0, 88, 190, 0.6);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
}

.ci-share-button:hover,
.ci-myfiles-button:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}

/* ---- My Files shortcode ---- */
.ci-myfiles {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    padding: 24px 0;
}

.ci-myfiles-header {
    text-align: center;
    margin-bottom: 28px;
}

.ci-myfiles-title {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px;
}

.ci-myfiles-subtitle {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

/* Empty state (page-level + per-section). */
.ci-mf-empty {
    text-align: center;
    padding: 56px 24px;
    background: #232635;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.ci-mf-empty-icon {
    color: #475569;
    margin-bottom: 14px;
}

.ci-mf-empty-title {
    font-size: 16px;
    font-weight: 700;
    color: #e0e0e0;
    margin: 0 0 4px;
}

.ci-mf-empty-text {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

.ci-mf-empty.is-inline {
    padding: 20px;
    font-size: 14px;
    color: #64748b;
}

/* Cards. */
.ci-mf-card {
    background: rgb(37, 47, 74);
    border: 1px solid rgba(0, 88, 190, 0.6);
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
}

.ci-mf-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ci-mf-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.ci-mf-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 24px;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #a0a0a0;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 9999px;
}

/* Table grid (downloads = 5 cols, uploads = 4 cols). */
.ci-mf-table {
    padding: 4px 8px 8px;
}

.ci-mf-row {
    display: grid;
    align-items: center;
    padding: 14px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ci-mf-row:last-child {
    border-bottom: none;
}

.ci-mf-table.is-downloads .ci-mf-row {
    grid-template-columns: minmax(0, 1fr) 84px 92px 108px 150px;
    column-gap: 15px;
}

.ci-mf-table.is-uploads .ci-mf-row {
    grid-template-columns: minmax(0, 1fr) 84px 108px 150px;
    column-gap: 15px;
}

/* Header row. */
.ci-mf-thead {
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ci-mf-thead span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #64748b;
}

/* Cells. */
.ci-mf-col-name {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ci-mf-filetype {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: 8px;
    color: #ffffff;
    background: #3b82f6;
}

.ci-mf-filetype.is-image { background: #10b981; }
.ci-mf-filetype.is-doc   { background: #3b82f6; }
.ci-mf-filetype.is-sheet { background: #22c55e; }
.ci-mf-filetype.is-slide { background: #f59e0b; }
.ci-mf-filetype.is-default { background: #64748b; }

.ci-mf-file-name {
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ci-mf-col-size,
.ci-mf-col-status,
.ci-mf-col-date {
    font-size: 13px;
    color: #a0a0a0;
}

.ci-mf-col-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

/* Secure badge. */
.ci-mf-secure {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #ffffff;
    background: #10b981;
    border-radius: 6px;
}

/* Action buttons. */
.ci-mf-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background: #3b82f6;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
}

.ci-mf-btn:hover {
    background: #2563eb;
}

.ci-mf-btn.ci-mf-convert {
    background: rgba(255, 255, 255, 0.08);
}

.ci-mf-btn.ci-mf-convert:hover {
    background: rgba(255, 255, 255, 0.16);
}

/* Icon-only buttons (Share + Delete). */
.ci-mf-iconbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ci-mf-iconbtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ci-mf-convert-btn,
.ci-mf-iconbtn.ci-mf-delete{
    min-height: unset;
    width: unset;
    height: unset;
	padding: 10px
}

.ci-mf-share {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    min-height: unset;
    width: unset;
    height: unset;
    padding: 10px;
}

.ci-mf-share:hover {
    background: #3b82f6;
    color: #ffffff;
}

.ci-mf-share.is-copied {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
    color: #6ee7b7;
}

.ci-mf-delete {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.ci-mf-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ffffff;
}

/* Inline convert panel (under an upload row). */
.ci-mf-convert-panel {
    margin: 0 8px 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 10px 10px;
}

.ci-mf-convert-panel-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ci-mf-convert-label {
    font-size: 13px;
    font-weight: 600;
    color: #a0a0a0;
    margin-right: 2px;
}

.ci-mf-format {
    flex: 1 1 200px;
    min-width: 160px;
    max-width: 320px;
    padding: 9px 12px;
    font-size: 13px;
    color: #e0e0e0;
    background: #1a1d29;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    cursor: pointer;
}

.ci-mf-convert-result {
    margin-top: 14px;
}

.ci-mf-convert-result:empty {
    display: none;
}

.ci-mf-converting {
    padding: 14px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.ci-mf-error {
    margin-top: 14px;
    padding: 12px 14px;
    font-size: 13px;
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
}

/* Responsive: collapse the table into stacked cards. */
@media (max-width: 720px) {
    .ci-mf-table.is-downloads .ci-mf-row,
    .ci-mf-table.is-uploads .ci-mf-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px;
    }

    .ci-mf-thead {
        display: none;
    }

    .ci-mf-col-name {
        margin-bottom: 4px;
    }

    .ci-mf-col-size::before { content: "Size: "; color: #64748b; font-weight: 600; }
    .ci-mf-col-date::before { content: "Date: "; color: #64748b; font-weight: 600; }

    .ci-mf-col-actions {
        justify-content: flex-start;
        margin-top: 4px;
    }
}

@media (max-width: 600px) {
    .ci-ds-actions,
    .ci-download-actions {
        flex-direction: column;
    }
    .ci-ds-share,
    .ci-ds-another,
    .ci-myfiles-link {
        width: 100%;
        justify-content: center;
    }

    .ci-share-button,
    .ci-myfiles-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .ci-ds-actions,
    .ci-download-actions {
        min-width: 100%
    }
}
