/* Estilos para a tabela de pedidos */
.orders-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.orders-table thead {
    background: linear-gradient(135deg, #FF5722 0%, #E65100 100%);
    color: white;
}

.orders-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
}

.orders-table tbody tr {
    border-bottom: 1px solid #F1F5F9;
    transition: background-color 0.3s ease;
}

.orders-table tbody tr:hover {
    background-color: #F8FAFC;
}

.orders-table td {
    padding: 1rem;
    vertical-align: middle;
    border: none;
}

.orders-table td:first-child {
    font-weight: 600;
    color: #FF5722;
}

/* Status badges */
.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
}

.status-confirmed {
    background: #CCFBF1;
    color: #0891B2;
    border: 1px solid #67E8F9;
}

.status-preparing {
    background: #FFF7ED;
    color: #F59E0B;
    border: 1px solid #F6AD55;
}

.status-ready {
    background: #DCFCE7;
    color: #059669;
    border: 1px solid #10B981;
}

.status-delivering {
    background: #ECFEFF;
    color: #0E7490;
    border: 1px solid #A5F3FC;
}

.status-delivered {
    background: #D1FAE5;
    color: #059669;
    border: 1px solid #10B981;
}

.status-cancelled {
    background: #FEE2E2;
    color: #EF4444;
    border: 1px solid #F06A6A;
}

/* Botões de ação */
.btn-action {
    background: #FF5722;
    color: white;
    border: none;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 0.3rem;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    position: relative;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 87, 34, 0.3);
}

.btn-action:last-child {
    margin-right: 0;
}

/* Botões desabilitados */
.btn-action.disabled {
    background: #64748B !important;
    color: #94A3B8 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    transform: none !important;
    box-shadow: none !important;
}

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

.btn-action.btn-print {
    background: linear-gradient(135deg, #64748B 0%, #334155 100%);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-action.btn-print:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(100, 116, 139, 0.3);
}

.btn-action.btn-print:active {
    transform: translateY(0);
}

.btn-action.btn-print.disabled {
    background: #64748B !important;
    color: #94A3B8 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    transform: none !important;
    box-shadow: none !important;
}

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

.btn-action.btn-print.disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

/* Botão Confirmado */
.btn-confirm {
    background: linear-gradient(135deg, #0891B2 0%, #67E8F9 100%);
    color: white;
}

.btn-confirm:hover {
    background: linear-gradient(135deg, #67E8F9 0%, #0891B2 100%);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.4);
}

.btn-confirm.disabled {
    background: #64748B !important;
    color: #94A3B8 !important;
}

/* Botão Saiu para Entrega */
.btn-delivering {
    background: linear-gradient(135deg, #F59E0B 0%, #F6AD55 100%);
    color: white;
}

.btn-delivering:hover {
    background: linear-gradient(135deg, #F6AD55 0%, #F59E0B 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-delivering.disabled {
    background: #64748B !important;
    color: #94A3B8 !important;
}

/* Botão Entregue */
.btn-delivered {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    color: white;
}

.btn-delivered:hover {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-delivered.disabled {
    background: #64748B !important;
    color: #94A3B8 !important;
}

/* Botão Cancelado */
.btn-cancel {
    background: linear-gradient(135deg, #EF4444 0%, #F06A6A 100%);
    color: white;
}

.btn-cancel:hover {
    background: linear-gradient(135deg, #F06A6A 0%, #EF4444 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-cancel.disabled {
    background: #64748B !important;
    color: #94A3B8 !important;
}

/* Botão de notificação especial */
.btn-notification {
    background: linear-gradient(135deg, #FFAB00 0%, #F94F6F 100%);
    color: white;
    border: none;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 0.3rem;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-notification:hover {
    background: linear-gradient(135deg, #F94F6F 0%, #FFAB00 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(249, 79, 111, 0.4);
}

.btn-notification:active {
    transform: translateY(0) scale(0.98);
}

.btn-notification i {
    animation: pulse 2s infinite;
}

.btn-notification.disabled {
    background: #64748B !important;
    color: #94A3B8 !important;
    cursor: not-allowed !important;
    animation: none !important;
}

.btn-notification.disabled i {
    animation: none !important;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Responsivo para botões */
@media (max-width: 1200px) {
    .btn-action {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
        margin-right: 0.2rem;
    }
    
    .btn-action span {
        display: none;
    }
}

@media (max-width: 768px) {
    .btn-action {
        padding: 0.3rem 0.5rem;
        font-size: 0.65rem;
        margin-right: 0.1rem;
    }
    
    .btn-action i {
        font-size: 0.8rem;
    }
}
