/* =========================================================
   ImagoPDF - Rotate Uploader (Refatorado)
   Usa base de main.css + file-uploader.css
   ========================================================= */

.rotate-section-header {
    margin-bottom: 20px;
}

.rotate-section-header p {
    text-align: left;
    max-width: none;
}

/* GRID */

.rotate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    width: 100%;
}

/* CARD */

.rotate-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.25s ease;
}

.rotate-card:hover {
    transform: translateY(-3px);
    border-color: rgba(107, 78, 255, 0.35);
    background: var(--card-hover);
}

.rotate-card.rotated {
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.15) inset;
}

/* THUMB */

.rotate-thumb-wrap {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 14px;
}

.rotate-thumb {
    max-width: 100%;
    max-height: 180px;
    border-radius: 8px;
    transition: transform 0.35s ease;
    transform-origin: center;
}

/* TEXTO */

.rotate-page-title {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.rotate-page-status {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 14px;
    min-height: 20px;
}

.rotate-card.rotated .rotate-page-status {
    color: var(--success);
    font-weight: 700;
}

/* BOTÃO */

.rotate-card .btn-primary {
    width: 100%;
    justify-content: center;
}

/* AÇÕES */

.rotate-actions-panel {
    margin-top: 24px;
}

.rotate-actions-top {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.rotate-count-text {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 16px;
}

/* LIGHT MODE */

body.theme-light .rotate-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .rotate-thumb-wrap {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.08);
}

/* RESPONSIVO */

@media (max-width: 768px) {
    .rotate-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 560px) {
    .rotate-grid {
        grid-template-columns: 1fr;
    }
}