 :root {
            --primary-color: #198754;
            --secondary-color: #f8f9fa;
            --bottom-nav-height: 75px;
            --card-radius: 20px;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f0f2f5;
            margin: 0;
            padding: 0;
            overflow-x: hidden;
            -webkit-tap-highlight-color: transparent;
        }

        /* Page Management */
        .page {
            display: none;
            min-height: 100vh;
            width: 100%;
        }

        .active-page {
            display: block;
        }

        /* Hero Section Welcome Screen */
        .hero-welcome {
            background: linear-gradient(135deg, #198754 0%, #0f5132 100%);
            padding: 60px 20px;
            text-align: center;
            color: white;
            border-bottom-left-radius: 40px;
            border-bottom-right-radius: 40px;
        }

        /* Navigation Welcome */
        .nav-welcome {
            background: white;
            margin: -30px 20px 20px 20px;
            padding: 15px;
            border-radius: 20px;
            display: flex;
            justify-content: space-around;
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
            position: relative;
            z-index: 10;
        }

        .nav-welcome-item {
            text-align: center;
            color: #6c757d;
            text-decoration: none;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .nav-welcome-item i {
            display: block;
            font-size: 1.4rem;
            margin-bottom: 5px;
            color: var(--primary-color);
        }

        .nav-welcome-item.active {
            color: var(--primary-color);
        }

        /* Header / Top Bar */
        .top-bar {
            height: 65px;
            background: white;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        /* Bottom Navigation */
        .bottom-nav {
            height: var(--bottom-nav-height);
            background: white;
            position: fixed;
            bottom: 0;
            width: 100%;
            display: flex;
            justify-content: space-around;
            align-items: center;
            box-shadow: 0 -4px 15px rgba(0,0,0,0.08);
            z-index: 1000;
            border-top-left-radius: 25px;
            border-top-right-radius: 25px;
        }

        .nav-item {
            text-align: center;
            color: #adb5bd;
            text-decoration: none;
            font-size: 0.7rem;
            flex: 1;
            padding-top: 10px;
        }

        .nav-item i {
            font-size: 1.3rem;
            display: block;
            margin-bottom: 2px;
        }

        .nav-item.active {
            color: var(--primary-color);
            font-weight: bold;
        }

        /* Center Home Button */
        .nav-item-center {
            position: relative;
            top: -20px;
            background: var(--primary-color);
            width: 58px;
            height: 58px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            color: white !important;
            box-shadow: 0 8px 15px rgba(25, 135, 84, 0.3);
            border: 4px solid white;
        }

        .nav-item-center i {
            font-size: 1.5rem;
            margin: 0;
        }

        .main-content {
            padding-bottom: 110px;
            padding-top: 20px;
        }

        /* Klinik & Service Card Styling */
        .klinik-card, .service-card {
            border: none;
            border-radius: var(--card-radius);
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            margin-bottom: 20px;
            background: white;
        }

        .card-header-custom {
            background-color: #f8fffb;
            padding: 15px 20px;
            border-bottom: 1px dashed #e0eadd;
        }

        .doctor-box, .info-box {
            display: flex;
            align-items: center;
            gap: 12px;
            background: #f1f8f4;
            padding: 12px;
            border-radius: 15px;
            margin-top: 10px;
        }

        .icon-circle {
            width: 40px;
            height: 40px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-color);
            border: 1px solid #dee2e6;
        }

        .btn-action {
            border-radius: 12px;
            font-size: 0.85rem;
            padding: 10px;
            font-weight: 600;
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-decoration: none;
        }

         /* History Detail Styling */
        .history-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            background: #f8f9fa;
            padding: 10px;
            border-radius: 12px;
            margin: 10px 0;
        }
        .history-item-label {
            font-size: 0.65rem;
            color: #6c757d;
            text-transform: uppercase;
            font-weight: bold;
        }
        .history-item-value {
            font-size: 0.8rem;
            font-weight: 600;
            color: #333;
        }
        .history-section-title {
            font-size: 0.75rem;
            font-weight: 800;
            color: var(--primary-color);
            margin-top: 12px;
            border-left: 3px solid var(--primary-color);
            padding-left: 8px;
        }
        .history-text-content {
            font-size: 0.8rem;
            color: #495057;
            margin-bottom: 8px;
            line-height: 1.4;
        }

          /* Cards & Components */
        .custom-card {
            border: none; border-radius: var(--card-radius); overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05); margin-bottom: 20px; background: white;
        }

        .stat-badge {
            padding: 15px; border-radius: 15px; color: white; margin-bottom: 15px;
            display: flex; align-items: center; justify-content: space-between;
        }

         /* Desain Baru Tanpa Horizontal Scroll */
        .animal-stat-container {
            display: grid;
            grid-template-columns: repeat(3, 1fr); /* Default 3 kolom di mobile */
            gap: 10px;
            margin-bottom: 25px;
        }

        @media (min-width: 768px) {
            .animal-stat-container {
                grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); /* Fleksibel di desktop */
            }
        }

        .animal-stat-card {
            background: white; border-radius: 18px; padding: 10px 5px;
            text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.04);
            border: 1px solid rgba(0,0,0,0.05);
            transition: transform 0.2s;
        }
        .animal-stat-card:active { transform: scale(0.95); }
        .animal-stat-card i { font-size: 1.2rem; margin-bottom: 6px; display: block; }
        .animal-stat-card .count { font-weight: 800; font-size: 1.1rem; display: block; color: #333; }
        .animal-stat-card .label { font-size: 0.65rem; color: #888; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }



        /* Filter Box */
        .filter-box {
            background: white; padding: 15px; border-radius: 15px; margin-bottom: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid #edf2f7;
        }

        /* Filter Styling */
        .filter-container {
            background: white;
            padding: 15px;
            border-radius: 15px;
            margin-bottom: 20px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.03);
        }

        /* Pet Card Styling */
        .pet-card {
            background: white;
            border-radius: var(--card-radius);
            padding: 15px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 15px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.03);
            border-left: 6px solid var(--primary-color);
        }

        .pet-img {
            width: 60px;
            height: 60px;
            background: #e9ecef;
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: var(--primary-color);
        }

        .status-pill {
            font-size: 0.7rem;
            padding: 4px 12px;
            border-radius: 20px;
            font-weight: 600;
        }
        .status-vax { background: #e3f2fd; color: #0d6efd; }
        .status-health { background: #e8f5e9; color: #2e7d32; }

        /* List Styling for Services */
        .service-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .service-list li {
            padding: 10px 0;
            border-bottom: 1px solid #f1f1f1;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.9rem;
        }
        .service-list li:last-child {
            border-bottom: none;
        }
        .service-list i {
            color: var(--primary-color);
            width: 20px;
            text-align: center;
        }

        .service-text-wrapper {
            display: flex;
            flex-direction: column;
        }
        .service-title {
            font-weight: 700;
            font-size: 0.9rem;
            color: #333;
            margin-bottom: 2px;
        }
        .service-desc {
            font-size: 0.75rem;
            color: #6c757d;
            line-height: 1.3;
        }

        .category-box {
            padding: 12px;
            border-radius: 15px;
            background: #f8f9fa;
            border: 1px solid #eee;
            margin-bottom: 10px;
        }

        .chart-container {
            position: relative;
        }
        .visitChartLoader {
            z-index: 10;
        }


.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#app.fade-out {
    opacity: 0;
}

#app.fade-in {
    opacity: 1;
}
