:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --danger-gradient: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --light-bg: #f8f9fc;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --card-shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.12);
}

* {
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--light-bg);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Header Moderno */
.pdv-header {
    background: var(--primary-gradient);
    color: white;
    padding: 1.25rem 0;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.pdv-header .badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    animation: slideInDown 0.5s ease;
}

.pdv-header h4 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.pdv-header .btn-light {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.pdv-header .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Container Principal */
.pdv-container {
    height: calc(100vh - 80px);
    overflow: hidden;
}

.pdv-produtos-section {
    height: 100%;
    overflow-y: auto;
    padding: 2rem;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fc 100%);
}

.pdv-carrinho-section {
    height: 100%;
    padding: 0;
    background: white;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.05);
}

/* Formulário de Abertura de Caixa - Moderno */
.abrir-caixa-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.abrir-caixa-container::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: float 6s ease-in-out infinite;
}

.abrir-caixa-container::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
    animation: float 8s ease-in-out infinite reverse;
}

.abrir-caixa-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.6s ease;
    position: relative;
    z-index: 10;
}

.abrir-caixa-card .icon-box {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.abrir-caixa-card .icon-box i {
    font-size: 2.5rem;
    color: white;
}

.abrir-caixa-card h2 {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    text-align: center;
}

.abrir-caixa-card .subtitle {
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 2rem;
}

.abrir-caixa-card .form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.abrir-caixa-card .form-control,
.abrir-caixa-card .input-group {
    border-radius: 12px;
    border: 2px solid #e8ecef;
    transition: all 0.3s ease;
}

.abrir-caixa-card .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.abrir-caixa-card .form-control.is-invalid {
    border-color: #dc3545;
}

.abrir-caixa-card .form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

.abrir-caixa-card .alert {
    border: none;
    animation: slideInDown 0.3s ease;
}

.abrir-caixa-card .input-group-text {
    background: #f8f9fc;
    border: 2px solid #e8ecef;
    border-right: none;
    font-weight: 600;
    color: #2c3e50;
    border-radius: 12px 0 0 12px;
}

.abrir-caixa-card .input-group .form-control {
    border-left: none;
    border-radius: 0 12px 12px 0;
}

.abrir-caixa-card .btn-primary {
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.abrir-caixa-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.abrir-caixa-card .info-badge {
    background: #e3f2fd;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #2196f3;
}

.abrir-caixa-card .info-item {
    background: #f8f9fc;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.abrir-caixa-card .info-item i {
    color: #667eea;
    margin-right: 0.5rem;
}

/* Scrollbar Customizada */
.pdv-produtos-section::-webkit-scrollbar,
.carrinho-itens::-webkit-scrollbar {
    width: 6px;
}

.pdv-produtos-section::-webkit-scrollbar-track,
.carrinho-itens::-webkit-scrollbar-track {
    background: transparent;
}

.pdv-produtos-section::-webkit-scrollbar-thumb,
.carrinho-itens::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 10px;
}

.pdv-produtos-section::-webkit-scrollbar-thumb:hover,
.carrinho-itens::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .pdv-container {
        height: auto;
    }

    .pdv-carrinho-section {
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    }

    .abrir-caixa-card {
        margin: 1rem;
        padding: 2rem;
    }

    .pdv-header h4 {
        font-size: 1.2rem;
    }
}
