@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

body {
    font-family: 'Inter', 'Segoe UI', system-ui;
    background: transparent !important;
}

/* wrapper AdminLTE */
.wrapper, .content-wrapper {
    background: transparent !important;
}

/* Override background image dari header template */
.bg-image,
.beranda-wrapper {
    background-image: none !important;
    background-color: transparent !important;
    background: transparent !important;
    position: relative;
}

.bg-image::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(99,102,241,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(59,130,246,0.15) 0%, transparent 55%),
        radial-gradient(ellipse 70% 60% at 60% 80%, rgba(139,92,246,0.12) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 10% 70%, rgba(16,185,129,0.08) 0%, transparent 50%),
        linear-gradient(160deg, #f0f4ff 0%, #e8eef8 40%, #ede9fe 70%, #f0fdf4 100%);
    animation: bgShift 12s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0%   { filter: hue-rotate(0deg) brightness(1); }
    50%  { filter: hue-rotate(8deg) brightness(1.02); }
    100% { filter: hue-rotate(-5deg) brightness(0.98); }
}

/* dot grid overlay */
.bg-image::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(circle, rgba(99,102,241,0.12) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* APP LINK */
.app-link {
    text-decoration: none;
    display: block;
}

/* CARD */
.app-card {
    border: none;
    border-radius: 18px;
    padding: 24px 16px 18px;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(30,64,175,0.08), 0 1px 3px rgba(0,0,0,0.06);
    transition: all .3s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Accent bar top */
.app-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border-radius: 18px 18px 0 0;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(37,99,235,0.18), 0 2px 8px rgba(0,0,0,0.08);
}

/* ICON WRAPPER */
.app-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #eff6ff, #eef2ff);
    border: 1.5px solid #c7d2fe;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
}

.app-card:hover .app-icon {
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    border-color: #818cf8;
    box-shadow: 0 4px 16px rgba(99,102,241,0.2);
    transform: scale(1.06);
}

.app-img {
    max-width: 42px;
    max-height: 42px;
    object-fit: contain;
    transition: transform .3s ease;
}

.app-card:hover .app-img {
    transform: scale(1.1);
}

/* TITLE */
.app-title {
    font-weight: 700;
    font-size: 13px;
    color: #1e293b;
    letter-spacing: .2px;
    line-height: 1.4;
}

/* VERSION BADGE */
.app-version {
    display: inline-block;
    margin-top: 7px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    letter-spacing: .4px;
}

/* HEADER CARD */
.card.shadow.bg-favorite {
    background: linear-gradient(135deg, #1e40af, #3730a3) !important;
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(30,64,175,0.35) !important;
}

/* SIGADIS HERO BANNER */
.sigadis-hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 45%, #7c3aed 100%);
    box-shadow: 0 12px 40px rgba(67,56,202,0.4), 0 2px 8px rgba(0,0,0,0.1);
    padding: 0;
    margin-bottom: 8px;
}

/* animated shimmer sweep */
.sigadis-hero::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
    animation: heroShimmer 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes heroShimmer {
    0%   { left: -100%; }
    60%  { left: 150%; }
    100% { left: 150%; }
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.hero-circle-1 { width: 260px; height: 260px; top: -100px; right: -70px; }
.hero-circle-2 { width: 160px; height: 160px; bottom: -60px; left: 40px; background: rgba(255,255,255,0.04); }
.hero-circle-3 { width: 90px;  height: 90px;  top: 8px; left: 220px; background: rgba(255,255,255,0.05); }
.hero-circle-4 { width: 50px;  height: 50px;  bottom: 12px; right: 180px; background: rgba(255,255,255,0.06); }

.hero-body {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 26px 32px;
}

.hero-emblem {
    flex-shrink: 0;
    width: 64px; height: 64px;
    background: rgba(255,255,255,0.14);
    border: 1.5px solid rgba(255,255,255,0.28);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
    animation: emblemFloat 3s ease-in-out infinite;
}
@keyframes emblemFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-4px); }
}

.hero-text { flex: 1; }

.hero-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 3px;
}

.hero-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1.5px;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 12.5px;
    color: rgba(255,255,255,0.72);
    margin-top: 5px;
    font-weight: 400;
    max-width: 420px;
}

.hero-badge {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 14px;
    padding: 12px 18px;
    text-align: center;
    backdrop-filter: blur(4px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}

.hero-badge span {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.92);
    letter-spacing: .5px;
    text-transform: uppercase;
    line-height: 1.5;
}

@media (max-width: 576px) {
    .hero-badge { display: none; }
    .hero-title { font-size: 22px; }
    .hero-body  { padding: 20px 18px; gap: 14px; }
}

/* FADE UP ANIMATION */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .45s ease, transform .45s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: .05s; }
.delay-2 { transition-delay: .1s; }
.delay-3 { transition-delay: .15s; }
.delay-4 { transition-delay: .2s; }
