/* CSS específico para produtos */

/* ===== LAYOUT PRINCIPAL ===== */
.container-fluid {
    padding: 20px;
}

.page-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ===== CARDS ===== */
.card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #d4af37;
    border-radius: 12px 12px 0 0 !important;
}

.card-title {
    color: #333;
    font-weight: 600;
    margin: 0;
}

/* ===== BOTÕES ===== */
.btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e6c547 0%, #d4af37 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-outline-primary {
    border: 2px solid #d4af37;
    color: #d4af37;
    background: transparent;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #d4af37;
    color: white;
    transform: translateY(-1px);
}

.btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    background: transparent;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-1px);
}

.btn-outline-warning {
    border: 2px solid #ffc107;
    color: #ffc107;
    background: transparent;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-warning:hover {
    background: #ffc107;
    color: #333;
    transform: translateY(-1px);
}

.btn-outline-danger {
    border: 2px solid #dc3545;
    color: #dc3545;
    background: transparent;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-1px);
}

/* ===== TABELA ===== */
.table-produtos {
    font-size: 0.9rem;
}

.table-produtos th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #d4af37;
    font-weight: 600;
    color: #333;
    padding: 12px;
}

.table-produtos td {
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
    padding: 12px;
}

.table-produtos tr:hover {
    background-color: #f8f9fa;
}

.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

/* ===== BADGES ===== */
.badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

/* ===== FORMULÁRIOS ===== */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* ===== MODAIS ===== */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #d4af37;
    border-radius: 12px 12px 0 0;
}

.modal-title {
    color: #333;
    font-weight: 600;
}

.modal-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 12px 12px;
}

/* ===== ÍCONES ===== */
.fas {
    transition: all 0.3s ease;
}

.fas:hover {
    transform: scale(1.1);
}

.page-title .fas,
.card-title .fas,
.modal-title .fas {
    color: #d4af37;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .container-fluid {
        padding: 15px;
    }
    
    .page-title {
        font-size: 1.5rem !important;
    }
    
    .table-produtos {
        font-size: 0.8rem;
    }
    
    .table-produtos th,
    .table-produtos td {
        padding: 8px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding: 10px;
    }
    
    .page-title {
        font-size: 1.25rem !important;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .table-produtos th,
    .table-produtos td {
        padding: 6px;
        font-size: 0.75rem;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* ===== ESTADOS DE LOADING ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* ===== ALERTAS ===== */
.alert {
    border: none;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

/* ===== FILTROS ===== */
.filtros-produtos {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

/* ===== BOTÕES DE AÇÃO ===== */
.btn-action {
    border: none;
    background: transparent;
    border-radius: 6px;
    padding: 6px 10px;
    margin: 0 2px;
    transition: all 0.3s ease;
}

.btn-action:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-action .fas {
    font-size: 0.9rem;
}

/* ===== INFORMAÇÕES DO PRODUTO ===== */
.info-item {
    margin-bottom: 1.5rem;
}

.info-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.info-value {
    color: #212529;
    font-size: 1rem;
    margin-bottom: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.info-value:last-child {
    border-bottom: none;
}

.info-value .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.info-value i {
    color: #d4af37;
}