/* 
 * Premium Glassmorphism & Modern UI for Table Data SGP
 * Togel Data Manager - Frontend Styling 
 */

/* Wrapper for responsiveness */
.tdm-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Base table stylings (Targeting default user table "data" & our shortcode table) */
table.data, .tdm-sgp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 600px;
    background: #ffffff;
    border: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border-radius: 12px;
    overflow: hidden;
}

/* Header Rows */
table.data tr.date th, table.data tr.date td,
.tdm-sgp-table thead th {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    padding: 15px 10px;
    text-align: center;
    border: none;
    letter-spacing: 1px;
}

/* Data Cells */
table.data td, .tdm-sgp-table td {
    padding: 12px 10px;
    text-align: center;
    color: #334155;
    font-size: 16px;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #f1f5f9;
    font-weight: 600;
    transition: all 0.2s ease;
}

table.data td:last-child, .tdm-sgp-table td:last-child {
    border-right: none;
}

/* Bold numbers for better readability */
table.data tr:not(.date) td, .tdm-sgp-table tbody td {
    font-weight: 700;
    letter-spacing: 2px;
}

/* Zebra Striping */
table.data tr:nth-child(even), .tdm-sgp-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

/* Hover Effect */
table.data tr:hover:not(.date) td, .tdm-sgp-table tbody tr:hover td {
    background-color: #eff6ff;
    color: #1d4ed8;
    transform: scale(1.02);
    box-shadow: inset 0 0 10px rgba(59, 130, 246, 0.1);
}

/* Special styling for empty data (-) */
table.data td:contains("-"), .tdm-sgp-table td.empty {
    color: #cbd5e1;
    font-weight: normal;
}

/* Today's Highlight */
.tdm-sgp-table td.today-highlight {
    background-color: #fef08a !important;
    color: #b45309 !important;
    animation: flash 1.5s infinite alternate;
}

@keyframes flash {
    from { background-color: #fef08a; }
    to { background-color: #fde047; }
}

/* Typography Enhancements for SEO content */
h2, h3 {
    color: #1e293b;
    margin-top: 2em;
    font-weight: 700;
}

ul {
    padding-left: 20px;
    color: #475569;
    line-height: 1.6;
}

/* --- Mobile Responsiveness (No Scroll Guarantee) --- */
@media screen and (max-width: 600px) {
    .tdm-table-wrapper {
        margin: 15px 0;
        border-radius: 8px;
        overflow-x: hidden !important; 
        width: 100% !important;
    }
    table.data, .tdm-sgp-table {
        min-width: 0 !important; 
        width: 100% !important;
        table-layout: fixed !important; 
    }
    table.data tr.date th, table.data tr.date td,
    .tdm-sgp-table thead th {
        font-size: 10px !important;
        padding: 5px 0px !important;
        letter-spacing: 0px !important;
        word-wrap: break-word !important;
    }
    table.data td, .tdm-sgp-table td {
        font-size: 12px !important;
        padding: 5px 0px !important;
        letter-spacing: 0px !important;
        word-wrap: break-word !important;
    }
}

/* Rahasia CSS Lama Anda untuk Layar Sangat Sempit */
@media screen and (max-width: 380px) {
    .entry-content th, .entry-content td, 
    table.data th, table.data td, 
    .tdm-sgp-table th, .tdm-sgp-table td {
        padding: 0px !important;
        font-size: 11px !important;
    }
}
