/* Reset e configurações gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.admin-btn {
    background: #4f46e5;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-btn:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.add-promotion-btn {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    width: 100%;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.add-promotion-btn:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.add-promotion-btn:active {
    transform: translateY(0);
}



/* Kanban Container */
.kanban-container {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    padding-bottom: 4rem;
    overflow-x: auto;
    min-height: calc(100vh - 140px);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.kanban-container::-webkit-scrollbar {
    display: none;
}

/* Barra de rolagem flutuante */
.floating-scrollbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 -8px 16px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e2e8f0;
    z-index: 1000;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(79, 70, 229, 0.4) transparent;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.floating-scrollbar.visible {
    opacity: 1;
    visibility: visible;
}

.floating-scrollbar::-webkit-scrollbar {
    height: 6px;
}

.floating-scrollbar::-webkit-scrollbar-track {
    background: rgba(79, 70, 229, 0.1);
    border-radius: 3px;
}

.floating-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(79, 70, 229, 0.4);
    border-radius: 3px;
}

.floating-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 70, 229, 0.6);
}

.floating-scrollbar-content {
    height: 1px;
    background: transparent;
    pointer-events: none;
}

/* Colunas do Kanban */
.kanban-column {
    min-width: 280px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.kanban-column h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    text-align: center;
}

.stage-desc {
    font-size: 0.8rem;
    color: #718096;
    text-align: center;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #e2e8f0;
}

.stage-responsible {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.4rem 0.6rem;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(79, 70, 229, 0.1);
    font-weight: normal;
}

.responsible-label {
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.3rem;
}

.responsible-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4f46e5;
    display: block;
}

.stage-responsible.no-assignee .responsible-name {
    color: #ef4444;
    font-style: italic;
}

.stage-responsible.has-assignee {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
}

.stage-responsible.has-assignee .responsible-name {
    color: #10b981;
}

.cards-container {
    min-height: 400px;
    border-radius: 8px;
    background: rgba(247, 250, 252, 0.5);
    padding: 0.5rem;
    border: 2px dashed #e2e8f0;
    transition: all 0.3s ease;
}

.cards-container.drag-over {
    border-color: #4f46e5;
    background: rgba(79, 70, 229, 0.1);
}

/* Cards das Promoções */
.promotion-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    cursor: grab;
    transition: all 0.2s ease;
    position: relative;
}

.promotion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.promotion-card:active {
    cursor: grabbing;
}

.promotion-card.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.card-date {
    font-size: 0.85rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.card-date::before {
    content: "📅";
    font-size: 0.8rem;
}

.card-description {
    font-size: 0.8rem;
    color: #718096;
    line-height: 1.4;
}

/* Lista de produtos nos cards */
.card-products-list {
    margin-top: 0.5rem;
    max-height: 120px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.card-products-list::-webkit-scrollbar {
    width: 3px;
}

.card-products-list::-webkit-scrollbar-track {
    background: transparent;
}

.card-products-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.card-product-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.2rem;
    font-size: 0.65rem;
    line-height: 1.2;
    padding: 0.15rem 0;
}

.card-product-item .product-type-icon {
    font-size: 0.7rem;
    flex-shrink: 0;
    width: 12px;
    text-align: center;
}

.card-product-item .product-code {
    font-weight: 600;
    color: #4a5568;
    min-width: 35px;
    flex-shrink: 0;
    font-size: 0.6rem;
}

.card-product-item .product-name {
    color: #2d3748;
    font-weight: 500;
    text-transform: uppercase;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.65rem;
}

.card-product-item .product-prices {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.6rem;
    flex-shrink: 0;
    margin-left: auto;
}

.card-product-item .price-current {
    color: #718096;
    text-decoration: line-through;
    font-weight: 400;
}

.card-product-item .price-arrow {
    color: #48bb78;
    font-weight: 600;
}

.card-product-item .price-promo {
    color: #48bb78;
    font-weight: 700;
}

.card-products-empty {
    font-size: 0.7rem;
    color: #a0aec0;
    font-style: italic;
    text-align: center;
    padding: 0.5rem 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 0.5rem;
}

.card-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    gap: 0.3rem;
}

.promotion-card:hover .card-actions {
    opacity: 1;
}

.duplicate-btn {
    background: #10b981;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.duplicate-btn:hover {
    background: #059669;
    transform: scale(1.1);
}

.delete-btn {
    background: #ef4444;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delete-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    max-height: 90vh;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.modal-large {
    max-width: 95vw;
    width: 95vw;
    max-height: 95vh;
    margin: 2.5vh auto;
    padding: 2.5rem;
}

.modal-large h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1rem;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 1rem;
    top: 1rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: #333;
}

.modal h2 {
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 -8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    border-top: 1px solid #e2e8f0;
}

/* Ajustar modal para dar espaço aos botões fixos */
.modal-content {
    padding-bottom: 80px;
}

/* Ajustar especificamente para modal grande */
.modal-large .form-actions {
    padding: 1.5rem 2.5rem;
}

.btn-cancel,
.btn-save {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel {
    background: #f3f4f6;
    color: #374151;
}

.btn-cancel:hover {
    background: #e5e7eb;
}

.btn-save {
    background: #10b981;
    color: white;
}

.btn-save:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Layout aprimorado para modal grande */
.modal-large .form-group {
    margin-bottom: 1.8rem;
}

.modal-large .form-group:last-of-type {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modal-large .rich-editor {
    flex: 1;
    min-height: 500px;
}

.modal-large .date-range {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

/* Responsividade */
@media (max-width: 768px) {
    .kanban-container {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .kanban-column {
        min-width: 250px;
    }
    
    header {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .top-scrollbar-container {
        padding: 0 1rem;
    }
    
    .top-scrollbar-container::before {
        font-size: 0.7rem;
        padding: 0.3rem 0;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
    }
    
    .modal-large {
        width: 98vw;
        max-width: 98vw;
        margin: 1vh auto;
        max-height: 98vh;
        padding: 1rem;
    }
    
    .modal-large .date-range {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 0.5rem;
        text-align: center;
    }
    
    .modal-large .rich-editor {
        min-height: 400px;
    }
}

/* Seção de Produtos */
.products-section {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    background: #f8fafc;
}

.products-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.add-product-btn {
    background: #059669;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.add-product-btn:hover {
    background: #047857;
    transform: translateY(-1px);
}

.products-container {
    min-height: 60px;
}

.products-table-header {
    display: grid;
    grid-template-columns: 80px 100px 80px 1fr 140px 100px 100px 60px;
    gap: 0.5rem;
    background: #e2e8f0;
    padding: 0.75rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.product-header-cell {
    text-align: center;
    padding: 0 0.5rem;
}

.product-row {
    display: grid;
    grid-template-columns: 80px 100px 80px 1fr 140px 100px 100px 60px;
    gap: 0.5rem;
    padding: 0.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    align-items: center;
    transition: all 0.2s ease;
}

.product-row:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-row input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: border-color 0.2s ease;
}

.product-row input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.product-row input[type="number"] {
    text-align: right;
}

.product-row .product-name {
    text-transform: uppercase;
    font-weight: 500;
}

.product-row select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: border-color 0.2s ease;
    background: white;
    cursor: pointer;
}

.product-row select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

/* Cores dos tipos de produto */
.product-row.produto-chama {
    background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 10%, #fef3c7 100%);
    border-left: 4px solid #f59e0b;
}

.product-row.produto-baixo-giro {
    background: linear-gradient(135deg, #dbeafe 0%, #60a5fa 10%, #dbeafe 100%);
    border-left: 4px solid #3b82f6;
}

.product-row.produto-novo {
    background: linear-gradient(135deg, #dcfce7 0%, #4ade80 10%, #dcfce7 100%);
    border-left: 4px solid #22c55e;
}

/* Destaque para o select com base no tipo selecionado */
.product-row.produto-chama select {
    border-color: #f59e0b;
    background: #fffbeb;
    font-weight: 600;
    color: #92400e;
}

.product-row.produto-baixo-giro select {
    border-color: #3b82f6;
    background: #eff6ff;
    font-weight: 600;
    color: #1d4ed8;
}

.product-row.produto-novo select {
    border-color: #22c55e;
    background: #f0fdf4;
    font-weight: 600;
    color: #166534;
}

.remove-product-btn {
    background: #ef4444;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.remove-product-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.confirm-product-btn {
    background: #10b981;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-weight: bold;
}

.confirm-product-btn:hover {
    background: #059669;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Estilos para checkboxes de aprovação e aquisição */
.product-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin: 0 auto;
    accent-color: #4f46e5;
    transform: scale(1.2);
}

.product-checkbox:checked {
    accent-color: #059669;
}

.checkbox-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.checkbox-container.aprovado {
    background: rgba(16, 185, 129, 0.1);
    border-radius: 4px;
}

.checkbox-container.adquirir {
    background: rgba(245, 158, 11, 0.1);
    border-radius: 4px;
}

.product-row.has-aprovado {
    border-left: 3px solid #10b981;
}

.product-row.has-adquirir {
    border-right: 3px solid #f59e0b;
}

.product-row.has-aprovado.has-adquirir {
    border-left: 3px solid #10b981;
    border-right: 3px solid #f59e0b;
}

.products-container:empty .products-table-header {
    display: none;
}

.products-container:has(.product-row) .products-table-header {
    display: grid;
}

/* Estados vazios */
.cards-container:empty::after {
    content: "Arraste um card aqui";
    display: block;
    text-align: center;
    color: #a0aec0;
    font-style: italic;
    padding: 2rem 0;
}

/* Responsividade para seção de produtos */
@media (max-width: 768px) {
    .products-table-header,
    .product-row {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }
    
    .product-header-cell {
        display: none;
    }
    
    .product-row input,
    .product-row select {
        margin-bottom: 0.3rem;
    }
    
    .product-row input::placeholder {
        font-size: 0.8rem;
    }
    
    .checkbox-container {
        margin-bottom: 0.3rem;
        padding: 0.5rem;
        border: 1px solid #e2e8f0;
        border-radius: 4px;
    }
    
    .checkbox-container::before {
        content: attr(data-label);
        font-size: 0.8rem;
        color: #6b7280;
        margin-right: 0.5rem;
    }
    
    .remove-product-btn {
        width: 100%;
        border-radius: 4px;
        margin-top: 0.5rem;
    }
    
    /* Lista de produtos nos cards - mobile */
    .card-products-list {
        max-height: 80px;
    }
    
    .card-product-item {
        font-size: 0.6rem;
        gap: 0.2rem;
        margin-bottom: 0.15rem;
    }
    
    .card-product-item .product-type-icon {
        font-size: 0.65rem;
        width: 10px;
    }
    
    .card-product-item .product-code {
        font-size: 0.55rem;
        min-width: 25px;
    }
    
    .card-product-item .product-name {
        font-size: 0.6rem;
    }
    
    .card-product-item .product-prices {
        font-size: 0.55rem;
        gap: 0.2rem;
    }
}

/* Name and Empresas Row Layout */
.name-empresas-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.name-empresas-row input[type="text"] {
    flex: 1;
    min-width: 250px;
}

.empresas-selection-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    min-width: 200px;
}

/* Estilos para seleção de empresas - Layout compacto */
.empresas-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.empresa-compact-item {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.empresa-compact-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.empresa-compact-item label {
    font-size: 0.9rem;
    color: #4a5568;
    cursor: pointer;
    margin: 0;
}

.empresa-compact-item input[type="checkbox"]:checked + label {
    font-weight: 500;
    color: #059669;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .name-empresas-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .name-empresas-row input[type="text"] {
        min-width: 100%;
    }
    
    .empresas-selection-inline {
        min-width: 100%;
    }
}

/* Empresas no card */
.card-empresas {
    margin: 0.5rem 0;
    padding: 0.25rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.card-empresas-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.card-empresa-tag {
    background: #4f46e5;
    color: white;
    padding: 0.15rem 0.4rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid #4338ca;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .empresas-grid {
        grid-template-columns: 1fr;
    }
    
    .empresas-selection-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .card-empresa-tag {
        font-size: 0.65rem;
        padding: 0.1rem 0.3rem;
    }
}

/* Estilos para Upload de Imagem */
.image-upload-section {
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.image-upload-section:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.upload-area {
    cursor: pointer;
    text-align: center;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.upload-icon {
    font-size: 3rem;
    opacity: 0.6;
}

.upload-text {
    font-weight: 500;
    color: #374151;
    font-size: 1rem;
}

.upload-hint {
    font-size: 0.85rem;
    color: #6b7280;
}

.image-preview-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.image-preview {
    max-width: 200px;
    max-height: 280px; /* Proporção A4 retrato (200x280) */
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.remove-image-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.remove-image-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Miniatura da imagem no card do kanban */
.card-image-thumbnail {
    width: 60px;
    height: 84px; /* Proporção A4 retrato (60x84) */
    object-fit: cover;
    border-radius: 4px;
    margin-top: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.card-image-thumbnail:hover {
    transform: scale(1.05);
}

/* Estilo para imagens com erro (não encontradas) */
.card-image-thumbnail.image-error {
    opacity: 0.7;
    border: 2px dashed #ef4444;
    background: #fef2f2;
}

.card-image-thumbnail.image-error:hover {
    transform: none;
    opacity: 0.9;
}

.card-image-container {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}
