@font-face {
    font-family: 'Digitalt';
    src: url('Digitalt.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Rubik';
    src: url('Rubik-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

:root {
    --primary: #6366f1;
    --bg: #f8f9fa;
    --card-bg: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --radius: 12px;
}
* { box-sizing: border-box; margin:0;padding:0;font-family: 'Inter', sans-serif; }
body { background: var(--bg); color: var(--text); line-height: 1.5; }
.container { max-width: 1200px; margin: auto; padding: 24px; }
h1 { font-family: 'Digitalt', 'Inter', sans-serif; font-weight: 800; font-size: 2rem; }
.header { text-align:center; margin-bottom:32px; }
.header p { font-family: 'Rubik', 'Inter', sans-serif; color: var(--muted); margin-top:4px; }
.grid { display:grid; gap:20px; }
.cards { grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); margin-bottom:32px; }
.card { background: var(--card-bg); border-radius: var(--radius); padding:20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); text-align:center; }
.card h3 { font-size:.95rem; font-weight:600; color:var(--muted); }
.card .big { font-size:1.8rem; font-weight:800; margin-top:6px; }
.chart-wrap { background: var(--card-bg); border-radius: var(--radius); padding:20px; }
.chart-grid { grid-template-columns: 1fr 1fr; }
table { width:100%; border-collapse: collapse; }
th,td { padding:10px 12px; border-bottom:1px solid #e5e7eb; }
th { text-align:left; background:#f1f3f7; font-size:.85rem; font-weight:600; }
td { font-size:.85rem; }
.table-wrap { background: var(--card-bg); border-radius: var(--radius); padding:20px; overflow:auto; }
.tag { background:var(--bg); border:1px solid #e5e7eb; padding:2px 6px; border-radius:6px; font-size:.75rem; color:var(--muted); }
/* Responsive table for mobile */
.mobile-table { display: none; }
.desktop-table { display: block; }
@media(max-width:768px){ 
    .chart-grid{grid-template-columns:1fr;} 
    .desktop-table { display: none; }
    .mobile-table { display: block; }
    .mobile-comment-card {
        background: var(--card-bg);
        border: 1px solid #e5e7eb;
        border-radius: var(--radius);
        padding: 16px;
        margin-bottom: 12px;
        box-shadow: 0 1px 3px rgba(0,0,0,.05);
    }
    .mobile-comment-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .mobile-comment-name {
        font-weight: 600;
        color: var(--primary);
    }
    .mobile-comment-gerai {
        font-size: 0.8rem;
        background: #dc2626;
        color: white;
        padding: 2px 8px;
        border-radius: 12px;
    }
    .mobile-comment-score {
        font-size: 1.1rem;
        font-weight: 700;
        color: white;
        text-align: center;
        background: #dc2626;
        padding: 4px 8px;
        border-radius: 8px;
        min-width: 50px;
    }
    .mobile-comment-ratings {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 12px;
        font-size: 0.85rem;
    }
    .mobile-rating-item {
        display: flex;
        justify-content: space-between;
        padding: 4px 8px;
        background: var(--bg);
        border-radius: 6px;
    }
    .mobile-rating-label {
        color: var(--muted);
        font-weight: 500;
    }
    .mobile-comment-text {
        background: #f8fafc;
        padding: 12px;
        border-radius: 8px;
        font-size: 0.9rem;
        line-height: 1.4;
        color: var(--text);
        border-left: 3px solid #dc2626;
    }
    .mobile-comment-address {
        font-size: 0.8rem;
        color: var(--muted);
        margin-top: 8px;
    }
}
    /* Toolbar */
.toolbar {display:flex;gap:12px;flex-wrap:wrap;margin-bottom:12px;}
.toolbar select,.toolbar input{padding:8px 10px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;font-size:.85rem;}
.toolbar label{font-size:.8rem;color:var(--muted);margin-right:4px;}
.muted { color: var(--muted); }
/* Tooltip for customer names */
.customer-name {
    position: relative;
    cursor: pointer;
    color: var(--primary);
    font-weight: 500;
    transition: color 0.2s ease;
}
.customer-name:hover {
    color: #4f46e5;
}
.customer-name .tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}
.customer-name .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0,0,0,0.9);
}
.customer-name:hover .tooltip {
    visibility: visible;
    opacity: 1;
}
/* Easter Egg Styles */
.easter-egg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ff0000 0%, #ff9900 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    z-index: 9999;
    opacity: 0;
    scale: 0.5;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: white;
}
.easter-egg.show {
    opacity: 1;
    scale: 1;
}
.easter-egg img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}
.easter-egg h3 {
    font-family: 'Rubik', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.easter-egg p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 20px;
}
.easter-egg button {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}
.easter-egg button:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}
.logo-click {
    cursor: pointer;
    transition: transform 0.1s ease;
}
.logo-click:active {
    transform: scale(0.95);
}
@media(max-width:480px){
    h1{font-size:1.5rem}
    .card .big{font-size:1.4rem}
    th,td{padding:8px}
    .container { padding: 16px; }
    /* Footer responsive */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        text-align: center;
    }
    .footer-grid > div:first-child {
        justify-content: center;
    }
    .mobile-comment-ratings {
        grid-template-columns: 1fr !important;
    }
    .easter-egg {
        margin: 20px;
        padding: 20px;
        width: calc(100% - 40px);
        max-width: 300px;
    }
    .easter-egg img {
        width: 80px;
        height: 80px;
    }
}

