/* Estilos aprimorados para Checkout PIX */

:root {
    --primary: #00D084;
    --primary-dark: #00b272;
    --accent: #F5C542;
    --info: #2D9CDB;
    --border-color: #2C3138;
    --bg-main: #0B0C10;
    --bg-surface: #1A1E23;
    --bg-surface-2: #252A30;
    --text-main: #F9FAFB;
    --text-sub: #9CA3AF;
    --error: #E11D48;
    --success: #10B981;
}

body {
    background: linear-gradient(135deg, var(--bg-main) 0%, #0F1419 100%);
    color: var(--text-main);
    font-family: 'Inter', 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
}

/* Cards */
.card-panel {
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    border-radius: 1rem;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-panel:hover {
    border-color: rgba(0, 208, 132, 0.3);
    box-shadow: 0 25px 55px rgba(0, 208, 132, 0.15);
}

/* Inputs */
.input-field {
    width: 100%;
    height: 48px;
    border-radius: 0.75rem;
    border: 1.5px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
    padding: 0 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.input-field::placeholder {
    color: var(--text-sub);
    opacity: 0.6;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 208, 132, 0.1);
    background-color: rgba(255, 255, 255, 0.04);
}

.input-field:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.input-field select {
    cursor: pointer;
}

/* Botões */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    height: 56px;
    border-radius: 0.9rem;
    border: none;
    font-size: 1.05rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg-main);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 25px rgba(0, 208, 132, 0.3);
    letter-spacing: 0.5px;
}

.btn-primary:hover:not([disabled]) {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 208, 132, 0.4);
}

.btn-primary:active:not([disabled]) {
    transform: translateY(0);
}

.btn-primary[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    border: 1.5px solid var(--border-color);
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    color: var(--text-main);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(0, 208, 132, 0.08);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.badge-warning {
    background-color: rgba(245, 197, 66, 0.15);
    color: var(--accent);
}

.badge-primary {
    background-color: rgba(0, 208, 132, 0.15);
    color: var(--primary);
}

/* Text */
.text-main { color: var(--text-main); }
.text-sub { color: var(--text-sub); }
.text-accent { color: var(--accent); }
.text-info { color: var(--info); }
.text-error { color: var(--error); }
.text-success { color: var(--success); }

/* Responsive */
@media (max-width: 768px) {
    .card-panel {
        border-radius: 0.875rem;
    }
    
    .btn-primary {
        height: 48px;
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Alert */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.875rem;
    font-size: 0.95rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-left-color: var(--success);
    color: #10B981;
}

.alert-error {
    background-color: rgba(225, 29, 72, 0.1);
    border-left-color: var(--error);
    color: var(--error);
}

.alert-warning {
    background-color: rgba(245, 197, 66, 0.1);
    border-left-color: var(--accent);
    color: var(--accent);
}

.alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.alert-text {
    opacity: 0.9;
}

/* Product Card */
.product-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-left: 4px solid var(--primary);
    background-color: rgba(0, 208, 132, 0.05);
}

.product-image {
    width: 80px;
    height: 80px;
    border-radius: 0.75rem;
    object-fit: cover;
    flex-shrink: 0;
}

.product-info h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0.25rem 0;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.product-price-current {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
}

.product-price-original {
    font-size: 0.95rem;
    text-decoration: line-through;
    color: var(--text-sub);
}

/* Textarea */
textarea.input-field {
    height: auto;
    padding: 1rem;
    resize: none;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

/* Progress */
.progress-bar {
    height: 8px;
    border-radius: 9999px;
    background-color: var(--border-color);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 9999px;
    transition: width 1s linear;
}

/* Divider */
.divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 1.5rem 0;
}
