/* Estilos Modernos para Dashboard */

.modern-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.modern-card .card-body {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.modern-card:hover .card-overlay {
    opacity: 1;
}

/* Card Vendas */
.card-vendas {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.card-vendas .card-overlay {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.card-vendas .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 24px;
    backdrop-filter: blur(10px);
}

/* Card Produtos */
.card-produtos {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.card-produtos .card-overlay {
    background: linear-gradient(135deg, #e084f0 0%, #e04a5f 100%);
}

.card-produtos .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 24px;
    backdrop-filter: blur(10px);
}

/* Card Clientes */
.card-clientes {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.card-clientes .card-overlay {
    background: linear-gradient(135deg, #3d8bfe 0%, #00d4fe 100%);
}

.card-clientes .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 24px;
    backdrop-filter: blur(10px);
}

/* Conteúdo dos Cards */
.card-content {
    flex: 1;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0;
    font-weight: 500;
}

/* Cards de Gráficos */
.chart-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.chart-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
    border-radius: 16px 16px 0 0;
}

.chart-card .card-header .card-title {
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: none;
}

.chart-card .card-body {
    padding: 1.5rem;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-card {
    animation: fadeInUp 0.6s ease;
}

.modern-card:nth-child(1) { animation-delay: 0.1s; }
.modern-card:nth-child(2) { animation-delay: 0.2s; }
.modern-card:nth-child(3) { animation-delay: 0.3s; }

/* Responsividade */
@media (max-width: 768px) {
    .modern-card .card-body {
        padding: 1.5rem;
    }
    
    .card-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
        margin-right: 1rem !important;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    .card-subtitle {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .modern-card .card-body {
        padding: 1.25rem;
        flex-direction: column;
        text-align: center;
    }
    
    .card-icon {
        margin-right: 0 !important;
        margin-bottom: 1rem !important;
    }
}