/* Sistema Comercial - Design Moderno com Animações */
:root {
    --primary-color: #4facfe;
    --secondary-color: #00f2fe;
    --accent-color: #B3E5FC;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8fafc;
    position: relative;
    overflow-x: hidden;
}

/* Elementos decorativos de fundo */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-color);
    opacity: 0.1;
    animation: float 8s ease-in-out infinite;
}

.bg-circle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: -100px;
    animation-delay: 0s;
}

.bg-circle-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: -50px;
    animation-delay: 3s;
}

.bg-circle-3 {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 5%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.02);
    }
}

/* Navbar */
.navbar-brand { 
    font-weight: 700; 
    color: var(--primary-color) !important; 
    font-size: 1.3rem;
}
.navbar-brand i { font-size: 1.2em; }

/* Cards */
.card { 
    border: none; 
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover { 
    transform: translateY(-8px) scale(1.02); 
    box-shadow: 0 20px 50px rgba(0,0,0,0.15); 
}

/* Stats Cards */
.stats-card { 
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); 
    color: white; 
    border-radius: 24px;
}
.stats-card .card-body { padding: 2rem; }
.stats-number { font-size: 3rem; font-weight: 700; margin-bottom: 0.5rem; }
.stats-label { font-size: 1rem; opacity: 0.9; }
.stats-icon { font-size: 2.5rem; opacity: 0.8; }

/* Botões */
.btn-primary-custom { 
    background: var(--primary-color); 
    border: none; 
    color: white; 
    font-weight: 600; 
    padding: 0.75rem 1.5rem; 
    border-radius: 50px; 
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary-custom:hover::before {
    width: 200px;
    height: 200px;
}

.btn-primary-custom:hover { 
    background: #3d8bfe; 
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
}

.btn-outline-primary-custom { 
    border: 2px solid var(--primary-color); 
    color: var(--primary-color); 
    font-weight: 600; 
    padding: 0.75rem 1.5rem; 
    border-radius: 50px; 
    transition: all 0.3s ease;
}
.btn-outline-primary-custom:hover { 
    background: var(--primary-color); 
    color: white; 
    transform: translateY(-2px);
}

/* Badges */
.badge-status { font-size: 0.75rem; padding: 0.4rem 0.8rem; border-radius: 20px; }

/* Tabelas */
.table-responsive { border-radius: 15px; overflow: hidden; }
.table { margin-bottom: 0; }
.table th { background: #f8fafc; font-weight: 600; border: none; padding: 1.25rem; }
.table td { border: none; padding: 1.25rem; vertical-align: middle; }
.table tbody tr { border-bottom: 1px solid #f1f5f9; transition: all 0.3s ease; }
.table tbody tr:hover { background: #f0f8ff; transform: scale(1.01); }

/* Formulários */
.form-control { 
    border: 2px solid #e9ecef; 
    padding: 0.875rem 1rem; 
    border-radius: 12px; 
    transition: all 0.3s ease;
}
.form-control:focus { 
    border-color: var(--primary-color); 
    box-shadow: 0 0 0 0.2rem rgba(79, 172, 254, 0.15); 
    transform: translateY(-2px);
}

.form-select { 
    border: 2px solid #e9ecef; 
    padding: 0.875rem 1rem; 
    border-radius: 12px; 
    transition: all 0.3s ease;
}
.form-select:focus { 
    border-color: var(--primary-color); 
    box-shadow: 0 0 0 0.2rem rgba(79, 172, 254, 0.15); 
    transform: translateY(-2px);
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Container */
.container-fluid {
    position: relative;
    z-index: 1;
}

/* Animações */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .stats-number { font-size: 2.5rem; }
    .stats-icon { font-size: 2rem; }
    .card-body { padding: 1.5rem; }
    .table th, .table td { padding: 1rem 0.75rem; font-size: 0.9rem; }
    .btn-primary-custom, .btn-outline-primary-custom { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
    .bg-circle-1 { width: 200px; height: 200px; }
    .bg-circle-2 { width: 150px; height: 150px; }
    .bg-circle-3 { width: 100px; height: 100px; }
}

@media (max-width: 576px) {
    .stats-number { font-size: 2rem; }
    .stats-card .card-body { padding: 1.5rem; }
    .card { border-radius: 15px; }
}
