/* ------------------- MÓDULO DE GESTOR E CONVERSOR DE ARQUIVOS ------------------- */
.conversor-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.conversor-banner {
    background: linear-gradient(135deg, #7f1d1d, #b91c1c);
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.banner-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.banner-text p {
    font-size: 0.875rem;
    color: #e0f2fe;
    max-width: 700px;
    margin-top: 0.4rem;
    line-height: 1.4;
}

.banner-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 0.6rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.tools-selector {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tool-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.25rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.tool-btn:hover {
    border-color: var(--primary-light);
    transform: translateY(-1px);
}

.tool-btn.active {
    background: #eff6ff;
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 2px rgba(13, 71, 161, 0.15);
}

.tool-icon {
    font-size: 1.15rem;
}

.converter-box {
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}

.converter-box.dragover {
    border-color: var(--primary);
    background: #eff6ff;
}

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.upload-icon-pulse {
    font-size: 3rem;
    animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.upload-area h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.upload-area p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hidden-input {
    display: none;
}

.file-preview-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid #cbd5e1;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.file-size {
    font-weight: 400;
    color: var(--text-muted);
}

.options-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-convert-action {
    margin-top: 1.5rem;
    padding: 0.85rem 2rem;
    background: var(--success);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
    transition: all 0.2s;
}

.btn-convert-action:hover {
    background: #059669;
    transform: translateY(-1px);
}

.conversion-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(13, 71, 161, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.conversion-history-box {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.conversion-history-box h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.converted-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.converted-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    border: 1px solid #f1f5f9;
}

.converted-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.btn-download-converted {
    padding: 0.4rem 0.85rem;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-download-converted:hover {
    background: var(--primary-light);
}

/* ------------------- PAINEL ADMIN GRID ------------------- */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.admin-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

.admin-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.admin-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.admin-inline-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.admin-inline-form input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.admin-items-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 280px;
    overflow-y: auto;
}

.admin-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.btn-item-delete {
    background: transparent;
    color: var(--danger);
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
}
