:root {
    /* --- Easy-to-edit variables --- */
    --font-main: 'Poppins', sans-serif;
    --font-artistic: 'Great Vibes', cursive;
    --hall-max-width: 1250px;
    --stage-height: 240px;
    --table-size: 120px;
    --table-outline-thickness: 2px;
    --walkway-gap: 50px; 
    --default-gap: 20px;
    
    /* --- Modern Color Palette --- */
    --color-available: #27ae60;
    --color-pending: #f39c12;
    --color-sold: #576574;
    --color-reserved: #576574;
    --color-outline: #4a6382;
    --color-text: #ffffff;
    --color-background: #1c2a3a;
    --color-stage: #52708f;
    --color-hall-bg: #2c3e50;
    --color-red-carpet: #a41e22;

    /* --- Tier Outline Colors --- */
    --tier-prestige-color: #7b21db;
    --tier-diamond-color: #fa1f94;
    --tier-platinum-color: #eb2424;
    --tier-gold-color: #f3c315; /* This matches performer names */
    --tier-silver-color: #2f2cda;
    --tier-bronze-color: #f06808;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-background);
    color: white;
    padding: 20px;
    margin: 0;
    box-sizing: border-box;
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.header {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto; 
    align-items: center; 
    gap: 5px; 
    padding: 20px;
    box-sizing: border-box;
    min-height: 300px; 
}

.header-image {
    height: 280px; 
    width: 280px;  
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--tier-gold-color);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}
.header-image.left {
    justify-self: start;
}
.header-image.right {
    justify-self: end;
}

.header-text-content {
    text-align: center;
    line-height: 1.2;
    flex-grow: 1;
    padding: 0 5px; 
}

.header h1 {
    font-family: var(--font-main);
    font-size: 3.9rem;
    font-weight: 700;
    color: var(--tier-gold-color);
    margin-bottom: 0.2em;
    white-space: nowrap;
}
.header h2 {
    font-size: 1.8rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 0;
    margin-bottom: 1.5em;
    padding-top: 20px;
}
.header p {
    font-style: normal;
    margin: 0.2em 0;
}
.event-date {
    font-size: 2.4rem;
    opacity: 0.9;
    font-weight: 600;
}
.event-venue {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 1.5em; 
}

.performer-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
    white-space: nowrap;
}

.performer-name {
    font-family: var(--font-artistic);
    font-size: 3.9rem; 
    font-weight: normal;
    color: var(--tier-gold-color); 
}

#countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px auto 30px auto;
}
.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.2);
    padding: 10px 20px;
    border-radius: 8px;
    min-width: 70px;
}
.time-block span {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f1c40f;
}
.time-block small {
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.8;
}
.event-live {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-available);
    padding: 20px;
}

.content-card {
    max-width: var(--hall-max-width);
    width: 100%;
    margin-top: 40px;
    background-color: var(--color-hall-bg);
    border: 1px solid var(--color-outline);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    box-sizing: border-box;
}

#event-hall {
    position: relative;
    padding: 40px;
}

#event-hall::after {
    content: '';
    position: absolute;
    background-color: var(--color-red-carpet);
    width: 57px;
    top: 365px; 
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
    z-index: 0;
}

.stage {
    background-color: var(--color-stage);
    color: white;
    margin: 0 auto 25px auto;
    font-weight: 600;
    border-radius: 8px;
    letter-spacing: 1px;
    height: var(--stage-height); 
    font-size: 1.5rem;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
}

.vip-table {
    background-color: var(--color-red-carpet);
    border-color: white;
    border-width: 4.5px;
    margin: 0 auto 25px auto;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
}

.table-grid-container {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: var(--default-gap);
    justify-items: center;
}

.table, .vip-table {
    width: var(--table-size);
    height: var(--table-size);
    border-radius: 50%;
    border-style: solid;
    color: var(--color-text);
    box-sizing: border-box;
    overflow-wrap: break-word;
    text-align: center;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.3);
    transition: transform 0.2s ease-in-out, z-index 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    position: relative;
    z-index: 1;
}

.table.is-interactive {
    cursor: pointer;
}

.table:nth-child(8n+4) {
    margin-right: var(--walkway-gap);
}

.table b {
    font-size: 1rem;
    font-weight: 600;
}
.status-text {
    font-weight: 600;
    text-transform: uppercase;
}

.available { background-color: var(--color-available); }
.pending { background-color: var(--color-pending); }
.sold { background-color: var(--color-sold); }
.reserved { background-color: var(--color-reserved); }


/* Tier-specific Outline Styles */
.table.prestige { border-color: var(--tier-prestige-color); border-width: 4.5px; }
.table.diamond { border-color: var(--tier-diamond-color); border-width: 4.5px; }
.table.platinum { border-color: var(--tier-platinum-color); border-width: 4.5px; }
.table.gold { border-color: var(--tier-gold-color); border-width: 4.5px; }
.table.silver { border-color: var(--tier-silver-color); border-width: 4.5px; }
.table.bronze { border-color: var(--tier-bronze-color); border-width: 4.5px; }

.table.default-outline {
    border-color: var(--color-outline);
    border-width: var(--table-outline-thickness);
}

.default-view {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
}

.default-view > *,
.hover-view > * {
    margin: 0;
    line-height: 1.1;
}

.hover-view {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px; 
    text-align: center;
}

.tier-text { font-weight: bold; text-transform: uppercase; }
.tier-text.prestige { color: var(--tier-prestige-color); }
.tier-text.diamond { color: var(--tier-diamond-color); }
.tier-text.platinum { color: var(--tier-platinum-color); }
.tier-text.gold { color: var(--tier-gold-color); }
.tier-text.silver { color: var(--tier-silver-color); }
.tier-text.bronze { color: var(--tier-bronze-color); }

.table:hover, .vip-table:hover { transform: scale(1.3); z-index: 5; }
.table.is-interactive.is-active { transform: scale(1.3); z-index: 10; }
.table.is-interactive.is-active .default-view { display: none; }
.table.is-interactive.is-active .hover-view { display: flex; }
@media (hover: hover) and (pointer: fine) {
    .table.is-interactive:hover .default-view { display: none; }
    .table.is-interactive:hover .hover-view { display: flex; }
}

/* MODIFIED: Reduced client name size */
.hover-view .client-name { 
    font-weight: 600; 
    font-size: 0.8rem; /* Reduced from 0.9rem */
}
.hover-view .seller-name { 
    font-style: italic; 
    opacity: 0.8; 
    font-size: 0.8rem; /* Match client name or adjust as needed */
}
/* NEW: Style for the 'orang' info */
.hover-view .orang-name {
    font-style: normal;
    font-size: 0.75rem; /* Make it slightly smaller */
    opacity: 0.9;
    color: #f1c40f; /* Example: Use a distinct color */
}

.legend-container, .charts-container {
    padding: 20px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.legend-section { text-align: left; }
.legend-section h3 { margin-top: 0; border-bottom: 1px solid var(--color-outline); padding-bottom: 10px; margin-bottom: 15px; }
.legend-item { display: flex; align-items: center; margin-bottom: 10px; }
.legend-circle { width: 25px; height: 25px; border-radius: 50%; margin-right: 15px; box-sizing: border-box; }
.legend-circle.status-available { background-color: var(--color-available); }
.legend-circle.status-pending { background-color: var(--color-pending); }
.legend-circle.status-sold { background-color: var(--color-sold); }
.legend-circle.tier-prestige { border: 4.5px solid var(--tier-prestige-color); }
.legend-circle.tier-diamond { border: 4.5px solid var(--tier-diamond-color); }
.legend-circle.tier-platinum { border: 4.5px solid var(--tier-platinum-color); }
.legend-circle.tier-gold { border: 4.5px solid var(--tier-gold-color); }
.legend-circle.tier-silver { border: 4.5px solid var(--tier-silver-color); }
.legend-circle.tier-bronze { border: 4.5px solid var(--tier-bronze-color); }

.chart-wrapper { width: 45%; min-width: 300px; text-align: center; }
.chart-wrapper h3 { margin-top: 0; margin-bottom: 20px; }

footer {
    width: 100%;
    max-width: var(--hall-max-width);
    margin: 60px auto 0 auto;
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #ffffff;
    opacity: 0.7;
    border-top: 1px solid var(--color-outline);
}
footer p { margin: 5px 0; }
footer a { color: #ffffff; font-weight: 600; text-decoration: none; transition: opacity 0.2s; }
footer a:hover { text-decoration: underline; opacity: 1; }