/*
 * Gaya halaman Dashboard.
 *
 * Diekstrak dari blok <style> pada
 * ticketing-v1/resources/views/dashboard/index.blade.php agar tampilan
 * dashboard React identik dengan aplikasi Laravel.
 *
 * Di Laravel berkas ini di-push hanya untuk halaman dashboard. Pada SPA
 * stylesheet dimuat global, jadi setiap selector dilingkupi
 * #dashboard-wrapper supaya cakupannya setara dan tidak mengubah layar
 * lain (aturan .card dan .meter di dalamnya bertabrakan jika global).
 */

/* Responsive Dashboard (Mobile) */
@media (max-width: 575.98px) {
#dashboard-wrapper .grid-compact>[class^='col-'],
#dashboard-wrapper .grid-compact>[class*=' col-'] {
    flex: 0 0 100%;
    max-width: 100%;
}
#dashboard-wrapper .stat-card,
#dashboard-wrapper .status-card {
    min-width: 0;
    margin-bottom: 1rem;
}
#dashboard-wrapper .status-card .card-body,
#dashboard-wrapper .stat-card .card-body {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
}
#dashboard-wrapper .status-card .card-body>.flex-grow-1,
#dashboard-wrapper .stat-card .card-body>.flex-grow-1 {
    width: 100%;
}
#dashboard-wrapper .meter {
    height: 8px;
}
#dashboard-wrapper .table-responsive {
    overflow-x: auto;
}
#dashboard-wrapper table.table {
    font-size: 0.95rem;
}
#dashboard-wrapper .hero-card .card-body {
    padding: 1.2rem !important;
}
#dashboard-wrapper .hero-illus {
    max-width: 80vw;
    height: auto;
}
#dashboard-wrapper .rating-reminder-section {
    padding: 2rem 0 !important;
}
}

/* Custom shadow for status cards only */
#dashboard-wrapper .status-card {
    box-shadow: 0 4px 24px 0 rgba(25, 118, 210, 0.18), 0 1.5px 6px 0 rgba(13, 71, 161, 0.10);
    border-radius: 18px;
    background: #fff;
}

/* FORCE LIGHT LOOK — cards putih, hero tetap gradient */
#dashboard-wrapper {
    --hero-start: #5563d6;
    --hero-end: #4fb7c9;
    --surface: #fff;
    --surface-2: rgba(0, 0, 0, .02);
    --card-radius: 16px;
    --ring: rgba(108, 117, 125, .25);
    color-scheme: light;
    /* indigo halus */
    /* cyan halus */
}

/* Modern animated background - HANYA untuk dashboard content area */
#dashboard-wrapper .page-content,
#dashboard-wrapper .container-fluid {
    background: linear-gradient(-45deg, #e8f1ff, #f0f7ff, #e3f2fd, #e1f5fe) !important;
    background-size: 400% 400% !important;
    animation: gradientShift 15s ease infinite;
    color: #212529 !important;
    position: relative;
}
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}
#dashboard-wrapper .page-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
    radial-gradient(circle at 20% 30%, rgba(85, 99, 214, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(79, 183, 201, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(102, 126, 234, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Hero: glassmorphism dengan floating effect */
#dashboard-wrapper .hero-card {
    background: linear-gradient(135deg,
    rgba(85, 99, 214, 0.95) 0%,
    rgba(79, 183, 201, 0.9) 100%) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
    0 30px 90px rgba(85, 99, 214, .4),
    0 15px 40px rgba(79, 183, 201, .25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: #fff;
    position: relative;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
}
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotateX(0deg);
    }

    50% {
        transform: translateY(-10px) rotateX(2deg);
    }
}
#dashboard-wrapper .hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background:
    radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite, rotate 20s linear infinite;
}
#dashboard-wrapper .hero-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%);
    transform: translateX(-100%);
    animation: shimmerHero 3s infinite;
}
@keyframes pulse {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(-5%, -5%) scale(1.05);
        opacity: 0.8;
    }
}
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
@keyframes shimmerHero {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(200%);
    }
}
#dashboard-wrapper .hero-card .text-white,
#dashboard-wrapper .hero-card .text-white-50,
#dashboard-wrapper .hero-card .text-white-75 {
    color: #fff !important;
}
#dashboard-wrapper .hero-illus {
    max-height: 150px;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .25));
}
#dashboard-wrapper .shape {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 24px;
    opacity: .15;
    filter: blur(12px);
}
#dashboard-wrapper .shape-1 {
    right: -30px;
    bottom: -30px;
    background: #fff;
}
#dashboard-wrapper .shape-2 {
    left: -40px;
    top: -40px;
    background: rgba(255, 255, 255, .6);
}
#dashboard-wrapper .text-white-75 {
    color: rgba(255, 255, 255, .9);
}

/* Tombol outline di hero supaya jelas di gradient */
#dashboard-wrapper .hero-card .btn-outline-light {
    border-color: rgba(255, 255, 255, .8) !important;
    color: #fff !important;
    background: transparent;
}
#dashboard-wrapper .hero-card .btn-outline-light:hover {
    background: rgba(255, 255, 255, .15) !important;
}

/* Cards: Glassmorphism dengan 3D depth */
#dashboard-wrapper .card-plain,
#dashboard-wrapper .stat-card,
#dashboard-wrapper .status-card {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 24px;
    transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    /* box-shadow dihapus agar flat */
}
#dashboard-wrapper .card-plain::before,
#dashboard-wrapper .stat-card::before,
#dashboard-wrapper .status-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, .08) 0%, transparent 70%);
    opacity: 0;
    transition: all .5s ease;
    transform: translate(0, 0);
}
#dashboard-wrapper .card-plain::after,
#dashboard-wrapper .stat-card::after,
#dashboard-wrapper .status-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent);
    transition: left .6s ease;
}

/* Hapus animasi hover pada card-plain, stat-card, status-card */
/* Hapus efek animasi hover pada before pseudo-element */
/* Hapus efek animasi hover pada after pseudo-element */
@media (prefers-reduced-motion:reduce) {
#dashboard-wrapper .card-plain,
#dashboard-wrapper .stat-card,
#dashboard-wrapper .status-card {
    transition: none;
}
}

/* Stat (Ticket Type) - Neon glow effect */
#dashboard-wrapper .icon-wrap {
    font-size: 28px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background:
    linear-gradient(135deg, #2196F3 0%, #0D47A1 100%);
    color: #fff !important;
    border-radius: 18px;
    box-shadow:
    0 0 30px rgba(33, 150, 243, .5),
    0 0 60px rgba(13, 71, 161, .3),
    0 8px 24px rgba(33, 150, 243, .4),
    inset 0 1px 0 rgba(255, 255, 255, .3) !important;
    position: relative;
    overflow: hidden;
    animation: iconFloat 3s ease-in-out infinite, neonPulse 2s ease-in-out infinite;
}
@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-5px) rotate(5deg);
    }
}
@keyframes neonPulse {

    0%,
    100% {
        box-shadow:
            0 0 30px rgba(33, 150, 243, .5),
            0 0 60px rgba(13, 71, 161, .3),
            0 8px 24px rgba(33, 150, 243, .4),
            inset 0 1px 0 rgba(255, 255, 255, .3);
    }

    50% {
        box-shadow:
            0 0 40px rgba(33, 150, 243, .7),
            0 0 60px rgba(13, 71, 161, .5),
            0 12px 32px rgba(33, 150, 243, .6),
            inset 0 1px 0 rgba(255, 255, 255, .5);
    }
}
#dashboard-wrapper .icon-wrap::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, .3), transparent);
    transform: translateX(-100%) rotate(45deg);
    animation: shineIcon 2s infinite;
}
@keyframes shineIcon {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(200%) rotate(45deg);
    }
}
#dashboard-wrapper .stat-card:hover .icon-wrap {
    animation: iconFloat 3s ease-in-out infinite, neonPulse 2s ease-in-out infinite, iconSpin 0.5s ease-out;
}
@keyframes iconSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Status Cards */
#dashboard-wrapper .status-side {
    display: grid;
    place-items: center;
    min-width: 64px;
    height: 64px;
    border-radius: 18px;
    padding: .25rem .5rem;
    background: linear-gradient(135deg, #1976D2 0%, #0D47A1 100%) !important;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(25, 118, 210, .3), 0 4px 8px rgba(13, 71, 161, .2) !important;
    position: relative;
    overflow: hidden;
}
#dashboard-wrapper .status-side::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, .1) 50%, transparent 70%);
    animation: slide 3s infinite;
}
@keyframes slide {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}
#dashboard-wrapper .trend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff !important;
    margin-bottom: .25rem;
}
#dashboard-wrapper .mini-indicator {
    font-size: .7rem;
    line-height: 1;
    color: #fff !important;
}
#dashboard-wrapper .status-text {
    color: var(--bs-info) !important;
}
#dashboard-wrapper .status-dot .trend-dot {
    background: var(--bs-border-color);
}

/* Progress Thin */
#dashboard-wrapper .progress-thin {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(13, 110, 253, .12) !important;
    border: 1px solid rgba(13, 110, 253, .25) !important;
}
#dashboard-wrapper .progress-thin .progress-bar {
    background: var(--bs-info) !important;
}

/* Badges - Neon pill design */
#dashboard-wrapper .badge-soft {
    background:
    linear-gradient(135deg,
    rgba(33, 150, 243, .15) 0%,
    rgba(13, 71, 161, .15) 100%) !important;
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(33, 150, 243, .4) !important;
    color: #1976D2 !important;
    padding: .4em .9em;
    font-weight: 700;
    letter-spacing: .5px;
    font-size: .7rem;
    text-transform: uppercase;
    transition: all .3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    /* box-shadow dihapus agar flat */
}
#dashboard-wrapper .badge-soft::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent);
    transition: left .4s ease;
}
#dashboard-wrapper .badge-soft:hover {
    background:
    linear-gradient(135deg,
    rgba(33, 150, 243, .25) 0%,
    rgba(13, 71, 161, .25) 100%) !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow:
    0 0 25px rgba(33, 150, 243, .4),
    0 6px 18px rgba(33, 150, 243, .25),
    inset 0 1px 0 rgba(255, 255, 255, .7);
    border-color: rgba(33, 150, 243, .6) !important;
}
#dashboard-wrapper .badge-soft:hover::before {
    left: 100%;
}

/* DataTable */
#dashboard-wrapper table.dataTable>thead {
    background-color: #f8f9fa !important;
}
#dashboard-wrapper table.dataTable tbody tr:hover {
    background-color: rgba(13, 110, 253, .05);
}

/* ONLY for Type & Status cards (non-link) */
#dashboard-wrapper .card.is-clickable {
    cursor: pointer;
    border-radius: 16px;
    padding: .35rem;
    transition: all .2s ease;
    /* bigger tap target */
}
#dashboard-wrapper .card.is-clickable .card-body {
    padding: 1rem 1.1rem;
}
#dashboard-wrapper .card.is-clickable:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
}

/* Hapus animasi hover pada .card.is-clickable */
/* Hapus animasi active pada .card.is-clickable */
/* Typography kecil di dalam stat/status card */
#dashboard-wrapper .stat-card .label,
#dashboard-wrapper .status-card .label {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .2px;
}
#dashboard-wrapper .stat-card .h2,
#dashboard-wrapper .status-card .h2 {
    line-height: 1;
    background: linear-gradient(135deg,
    #2196F3 0%,
    #1976D2 50%,
    #0D47A1 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    animation: textShine 3s linear infinite;
    filter: drop-shadow(0 2px 4px rgba(33, 150, 243, .2));
    position: relative;
}
@keyframes textShine {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}
#dashboard-wrapper .stat-card .meta,
#dashboard-wrapper .status-card .meta {
    display: flex;
    gap: .5rem;
    align-items: center;
}
#dashboard-wrapper .stat-card .meta .dot,
#dashboard-wrapper .status-card .meta .dot {
    width: .55rem;
    height: .55rem;
    border-radius: 999px;
    background: var(--bs-border-color);
}

/* unified icon wrap - Particle burst effect */
#dashboard-wrapper .card-accent {
    width: 64px;
    min-width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background:
    linear-gradient(135deg, #00BCD4 0%, #0097A7 100%) !important;
    color: #fff !important;
    box-shadow:
    0 0 25px rgba(0, 188, 212, .4),
    0 8px 24px rgba(0, 151, 167, .3),
    inset 0 1px 0 rgba(255, 255, 255, .4) !important;
    font-size: 26px;
    position: relative;
    overflow: visible;
    transition: all .4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: accentFloat 4s ease-in-out infinite;
}
@keyframes accentFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}
#dashboard-wrapper .card-accent::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 22px;
    padding: 3px;
    background: linear-gradient(45deg, #2196F3, #00BCD4, #03A9F4, #00E5FF);
    background-size: 300% 300%;
    animation: borderGlow 3s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .4s ease;
}
@keyframes borderGlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}
#dashboard-wrapper .card-accent::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .6) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all .5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
#dashboard-wrapper .stat-card:hover .card-accent::before,
#dashboard-wrapper .status-card:hover .card-accent::before {
    opacity: 1;
}
#dashboard-wrapper .stat-card:hover .card-accent::after,
#dashboard-wrapper .status-card:hover .card-accent::after {
    width: 150px;
    height: 150px;
    opacity: 0;
}
#dashboard-wrapper .stat-card:hover .card-accent,
#dashboard-wrapper .status-card:hover .card-accent {
    transform: rotate(360deg) scale(1.15);
    box-shadow:
    0 0 40px rgba(0, 188, 212, .6),
    0 0 60px rgba(0, 151, 167, .4),
    0 12px 32px rgba(0, 151, 167, .4),
    inset 0 1px 0 rgba(255, 255, 255, .6);
}

/* progress - Liquid gradient with glow */
#dashboard-wrapper .meter {
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(33, 150, 243, .08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(33, 150, 243, .2);
    box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, .08),
    0 0 15px rgba(33, 150, 243, .1);
    position: relative;
}
#dashboard-wrapper .meter>span {
    display: block;
    height: 100%;
    background:
    linear-gradient(90deg,
    #2196F3 0%,
    #1976D2 25%,
    #00BCD4 50%,
    #0097A7 75%,
    #4FC3F7 100%);
    background-size: 300% 100%;
    animation: liquidFlow 4s ease infinite;
    box-shadow:
    0 0 20px rgba(33, 150, 243, .5),
    0 4px 12px rgba(25, 118, 210, .3);
    position: relative;
    border-radius: 999px;
}
@keyframes liquidFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}
#dashboard-wrapper .meter>span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, .4) 0%, transparent 100%);
    border-radius: 999px 999px 0 0;
}
#dashboard-wrapper .meter>span::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
    animation: glideShimmer 2.5s infinite;
    filter: blur(2px);
}
@keyframes glideShimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

/* active filter visual */
#dashboard-wrapper a.card-filter-active .card {
    border-color: var(--bs-info) !important;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .15);
}

/* compact grid layout */
#dashboard-wrapper .grid-compact>[class*="col-"] {
    padding-right: .6rem;
    padding-left: .6rem;
}
@media (max-width:575.98px) {
#dashboard-wrapper .grid-compact>[class*="col-"] {
    padding-right: .5rem;
    padding-left: .5rem;
}
#dashboard-wrapper .card.is-clickable .card-body {
    padding: .9rem .95rem;
}
}

/* status-side kecil: lebih ringkas */
#dashboard-wrapper .status-side-mini {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--surface-2);
    border: 1px dashed var(--bs-border-color);
    color: var(--bs-info-color);
    font-size: .68rem;
    line-height: 1;
    opacity: .85;
}
