:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --bg-light: #f8fafc;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

body {
    background-color: var(--bg-light);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #334155;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card {
    border-left: 4px solid var(--primary-color);
}

.metric-card.success {
    border-left-color: #10b981;
}

.metric-card.warning {
    border-left-color: #f59e0b;
}

.metric-card.info {
    border-left-color: #06b6d4;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
}

.metric-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: #64748b;
}

.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
    background-color: #f1f5f9;
}

.badge-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-completed {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-refunded {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-active {
    background-color: #dcfce7;
    color: #166534;
}

.badge-inactive {
    background-color: #f3f4f6;
    color: #4b5563;
}

.webhook-code {
    background-color: #1e293b;
    color: #38bdf8;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* ========================================== */
/* ANIMAÇÃO PROFISSIONAL DE LOGIN (ROCKAPP) */
/* ========================================== */

.login-body {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    overflow: hidden;
    position: relative;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
    position: relative;
    z-index: 10;
    animation: loginCardPop 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.login-header-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
    animation: pulseIcon 3s infinite ease-in-out;
}

.login-input {
    border-radius: 12px;
    padding: 0.75rem 1.2rem;
    font-size: 0.95rem;
    border: 1.5px solid #e2e8f0;
    transition: all 0.3s ease;
}

.login-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.btn-login-animated {
    border-radius: 12px;
    padding: 0.85rem;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-login-animated:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

/* Modal / Overlay de Sucesso no Login */
.login-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.login-success-overlay.active {
    opacity: 1;
    visibility: visible;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    animation: checkmarkScale 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* KEYFRAMES ANIMAÇÕES */
@keyframes loginCardPop {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulseIcon {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 15px 30px rgba(79, 70, 229, 0.5);
    }
}

@keyframes checkmarkScale {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.shake-card {
    animation: cardShake 0.4s ease-in-out;
}

@keyframes cardShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}
