/* ==================== MELHORIAS PROFISSIONAIS ==================== */

/* Header do Cliente - Mais Profissional */
.client-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    padding: 20px 0 !important;
}

.logo {
    color: white !important;
    -webkit-text-fill-color: white !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.logo i {
    color: white !important;
    -webkit-text-fill-color: white !important;
}

.user-info span {
    color: white !important;
    font-weight: 600 !important;
    background: rgba(255,255,255,0.15);
    padding: 10px 18px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.btn-logout {
    background: white !important;
    color: #1e40af !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
}

/* Área do Cliente - Melhor Contraste */
.client-area {
    background: #f8fafc;
    min-height: calc(100vh - 100px);
    padding: 30px 20px;
}

.welcome-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.welcome-section h1 {
    color: #1e293b !important;
    font-size: 2em;
    margin-bottom: 10px;
    font-weight: 700;
}

.welcome-section p {
    color: #64748b !important;
    font-size: 1.1em;
    font-weight: 500;
}

/* Stats Cards - Mais Modernos */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.stat-card.pending .stat-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.stat-card.completed .stat-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.stat-card.total .stat-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.stat-info h3 {
    font-size: 2.2em !important;
    color: #1e293b !important;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-info p {
    color: #64748b !important;
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Orders Section - Melhor Visibilidade */
.orders-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.orders-section h2 {
    color: #1e293b !important;
    font-size: 1.8em;
    margin-bottom: 25px;
    font-weight: 700;
}

/* Filter Buttons - Mais Claros */
.filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    background: #f1f5f9;
    color: #475569 !important;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1em;
}

.filter-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Order Cards - Melhor Design */
.order-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.order-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.order-id {
    font-size: 1.3em !important;
    font-weight: 700 !important;
    color: #1e293b !important;
}

.order-status {
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-status.pendente,
.order-status.pending {
    background: #fef3c7;
    color: #92400e !important;
}

.order-status.concluido,
.order-status.completed {
    background: #d1fae5;
    color: #065f46 !important;
}

.order-status.cancelado {
    background: #fee2e2;
    color: #991b1b !important;
}

.order-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.order-info strong {
    color: #64748b !important;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.order-info span {
    color: #1e293b !important;
    font-size: 1.1em;
    font-weight: 600;
}

/* Empty State - Mais Amigável */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.empty-state i {
    font-size: 5em;
    margin-bottom: 20px;
    color: #cbd5e1;
}

.empty-state h3 {
    font-size: 1.5em;
    color: #475569 !important;
    margin-bottom: 10px;
    font-weight: 600;
}

.empty-state p {
    font-size: 1.1em;
    color: #64748b !important;
}

/* Botão Solicitar Nova Recarga */
.btn-new-order {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white !important;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    margin-top: 20px;
}

.btn-new-order:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

/* WhatsApp Button - Mais Visível */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    transition: all 0.3s ease;
    z-index: 999;
    text-decoration: none;
}

.whatsapp-button:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

/* Responsive - Mobile First */
@media (max-width: 768px) {
    .client-header {
        padding: 15px 0 !important;
    }
    
    .logo {
        font-size: 1.3em;
    }
    
    .user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .welcome-section h1 {
        font-size: 1.5em;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .order-body {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
        text-align: center;
    }
    
    .whatsapp-button {
        width: 55px;
        height: 55px;
        font-size: 1.7em;
        bottom: 20px;
        right: 20px;
    }
}

/* Animações Suaves */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.order-card,
.stat-card,
.welcome-section,
.orders-section {
    animation: fadeIn 0.5s ease;
}

/* Loading States */
.loading-cell {
    padding: 40px !important;
    text-align: center;
    color: #64748b !important;
    font-size: 1.1em;
    font-weight: 500;
}

/* Melhor Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
}
