/* Tabela de produtos */
.products-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.products-table thead {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.products-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.products-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.products-table tbody tr:hover {
    background: #f9fafb;
}

.products-table tbody tr:last-child td {
    border-bottom: none;
}

/* Colunas */
.col-product {
    min-width: 200px;
    width: 25%;
}

.col-acquired {
    min-width: 150px;
    width: 20%;
}

.col-status {
    min-width: 100px;
    width: 15%;
}

.col-access {
    min-width: 150px;
    width: 25%;
}

.col-action {
    min-width: 100px;
    width: 15%;
    text-align: center;
    vertical-align: middle;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.col-action .save-btn {
    margin: 0;
    display: inline-flex;
    align-self: center;
}

/* Título do produto */
.product-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

/* Status */
.status-text {
    font-size: 12px;
    color: #10b981;
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-badge.expired {
    background: #ef4444;
    color: white;
}

.status-badge.expiring-soon {
    background: #f59e0b;
    color: white;
}

.status-badge.active {
    background: #10b981;
    color: white;
}

/* Campo de acesso */
.access-field {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.access-input {
    width: 100%;
    max-width: 160px;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px !important;
    font-size: 14px;
    color: #374151;
    background: white;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1.4;
    height: 44px;
    box-sizing: border-box;
    font-weight: 500;
}

.access-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    background: #f8fafc;
    transform: translateY(-1px);
}

.access-input:hover {
    border-color: #d1d5db;
    background: #f9fafb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.access-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
    filter: invert(0.4);
    width: 18px;
    height: 18px;
}

.access-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    filter: invert(0.6);
    transform: scale(1.1);
}

.save-btn {
    padding: 10px 18px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 85px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.save-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.save-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.save-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Estado vazio para produtos - CSS específico para sobrescrever conflitos */
.filament-forms-section .products-empty-state {
    text-align: center !important;
    padding: 48px 0;
}

.filament-forms-section .products-empty-icon {
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto 16px !important;
    background-color: #f3f4f6 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 64px !important;
    max-height: 64px !important;
    overflow: hidden !important;
}

.filament-forms-section .products-empty-icon svg {
    width: 32px !important;
    height: 32px !important;
    color: #9ca3af !important;
    max-width: 32px !important;
    max-height: 32px !important;
}

.filament-forms-section .products-empty-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 8px !important;
    text-align: center !important;
}

.filament-forms-section .products-empty-description {
    color: #6b7280 !important;
    font-size: 14px !important;
    text-align: center !important;
}

/* Estado vazio para produtos */
.products-empty-state {
    text-align: center !important;
    padding: 48px 0;
}

.products-empty-icon {
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto 16px !important;
    background-color: #f3f4f6 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.products-empty-icon svg {
    width: 32px !important;
    height: 32px !important;
    color: #9ca3af !important;
}

.products-empty-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 8px !important;
    text-align: center !important;
}

.products-empty-description {
    color: #6b7280 !important;
    font-size: 14px !important;
    text-align: center !important;
}

/* Mensagem de feedback */
.feedback-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.feedback-message.show {
    opacity: 1;
    transform: translateY(0);
}

.feedback-message.success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.feedback-message.error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

/* Responsividade */
@media (max-width: 768px) {
    .products-table {
        display: block;
        overflow-x: auto;
    }
    
    .products-table th,
    .products-table td {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .access-input {
        width: 120px;
        font-size: 12px;
        padding: 5px 8px;
    }
    
    .save-btn {
        font-size: 11px;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .products-table th,
    .products-table td {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .product-title {
        font-size: 13px;
    }
    
    .access-input {
        width: 100px;
        font-size: 11px;
        padding: 4px 6px;
    }
    
    .save-btn {
        font-size: 10px;
        padding: 4px 8px;
    }
} 