/* CredManager — Custom Styles */
/* Supplements TailwindCSS v3 CDN */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Base ──────────────────────────────────────────── */
* {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Animated Gradient Background (Login) ──────────── */
.bg-gradient-animated {
    background: linear-gradient(-45deg, #000812, #002459, #0a1628, #95016c);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ── Glassmorphism Card ────────────────────────────── */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-card-light {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* ── Sidebar ───────────────────────────────────────── */
.sidebar {
    background: linear-gradient(180deg, #000f24 0%, #002459 100%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-link {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: rgba(149, 1, 108, 0.5);
}

.sidebar-link.active {
    background: rgba(149, 1, 108, 0.15);
    border-left-color: #95016c;
    color: #e180bd;
}

/* ── Cards ─────────────────────────────────────────── */
.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.doc-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.doc-card:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* ── Table ─────────────────────────────────────────── */
.modern-table thead th {
    background: linear-gradient(135deg, #002459, #001d47);
    color: white;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.modern-table tbody tr {
    transition: background-color 0.15s ease;
}

.modern-table tbody tr:hover {
    background-color: rgba(0, 36, 89, 0.04);
}

/* ── Input Focus ───────────────────────────────────── */
.input-modern:focus {
    border-color: #95016c;
    box-shadow: 0 0 0 3px rgba(149, 1, 108, 0.15);
    outline: none;
}

/* ── Badge ─────────────────────────────────────────── */
.badge-ativo {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
}

.badge-bloqueado {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
}

.badge-cancelado {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    color: white;
}

/* ── Pulse dot ─────────────────────────────────────── */
.pulse-dot {
    animation: pulse 2s infinite;
}

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

/* ── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 36, 89, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 36, 89, 0.5);
}

/* ── Skeleton Loading ──────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Mobile Overlay ────────────────────────────────── */
.sidebar-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

/* ── Floating particles (login bg) ─────────────────── */
.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.floating-orb:nth-child(1) {
    width: 300px;
    height: 300px;
    background: #002459;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-orb:nth-child(2) {
    width: 200px;
    height: 200px;
    background: #95016c;
    top: 60%;
    right: 15%;
    animation-delay: -5s;
}

.floating-orb:nth-child(3) {
    width: 250px;
    height: 250px;
    background: #b5217f;
    bottom: 10%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-5deg); }
    75% { transform: translate(15px, 10px) rotate(3deg); }
}
