/**
 * 4DPanda Plugin Frontend Styles
 * Updated for HTML table structure from sample
 */

/* ==================== LOADING ANIMATION STYLES ==================== */

.loading-animation {
    text-align: center;
    padding: 20px;
    font-size: 18px;
    color: #666;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 10px 0;
}

.loading-animation .dot {
    display: inline-block;
    animation: blink 1s infinite;
    font-size: 24px;
    font-weight: bold;
    color: #007cba;
}

.loading-animation .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-animation .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* ==================== MAIN CONTAINER STYLES ==================== */

/* Result container - matches HTML sample structure */
.outerbox table {
	border-spacing: 0;
	border-collapse: collapse;
}
.outerbox .resultView2 > tbody > tr > td:not(.plus-sign):not(.logo-footer) {
	vertical-align: top;
}
.outerbox .resultView2 td.logo-footer {
	vertical-align: middle;
    font-weight: bold;
    font-size: 18px;
}
.outerbox .plus-sign {
	vertical-align: middle !important;
    font-size: 18px !important;
}
.outerbox {
	width: 100%;
	text-align: center;
	padding: 10px;
    box-sizing: border-box;
}

.outerbox * {
    box-sizing: border-box;
    line-height: 1.2;
}

.outerbox strong {
    font-weight: bold;
}

.table-logo-title {
    width: 100%;
}

.header-logo {
    width: 20%;
}

.header-logo img {
    display: inline-block;
}

.outerbox .separator {
    border-right: 1px solid var(--4dpanda-table-border-color);
}

.resultTable {
    width: 100%;
    margin: auto 0;
    padding: 0;
    cellspacing: 0;
}

.resultView2 {
    width: 100%;
    margin: 1px 0;
    padding: 0;
    background-color: #fff;
}

.resultView2.headname {
    background: transparent;
}

.resultTableborder {
    border-color: #aaa;
    border-width: 1px;
    border-style: solid;
}

.resultdrawdate {
    text-align: left;
    padding: 5px 0;
    vertical-align: middle;
}


.resultprizelable {
	text-align: center;
	font-weight: bold;
	background-color: #fff;
	min-height: 21px;
	vertical-align: middle;
	border-color: #333;
	border-style: solid;
	border-width: 0px;
	text-transform: uppercase;
}

.result5dprizelable {
    text-align: center;
    font-size: 16px;
    color: #000;
    width: 12%;
    vertical-align: middle;
    padding: 5px 0;
    border-color: #aaa;
    border-width: 0;
    border-style: solid;
    min-height: 25px;
}

.resultviewtop {
    font-size: 28px;
    color: #000;
    font-weight: 700;
    text-align: center;
    border-color: #ccc;
    border-style: solid;
    border-width: 0;
    padding: 2px 0;
    height: 40px;
}

.resultviewbottom,
.nine-lotto-6d .plus-sign {
	text-align: center;
	width: 20%;
	border-color: #ccc;
	border-style: solid;
	border-width: 0px;
	padding: 3px 0;
	height: 25px;
	font-weight: bold;
}

.resultviewbottomwhite {
    background-color: #fff;
    text-align: center;
    color: #fff;
    width: 25%;
    border-color: #ccc;
    border-style: solid;
    border-width: 0;
    height: 36px;
}

.resultviewbottomgrey {
    background-color: #333;
    text-align: center;
    color: #fff;
    width: 25%;
    border-color: #333;
    border-style: solid;
    border-width: 0;
    height: 36px;
}

.resultviewbottomtoto {
    text-align: center;
    width: 16.5%;
    border-color: #ccc;
    border-style: solid;
    border-width: 0;
    height: 25px;
}
.outerbox td.resultprizelable,
.outerbox td.result5dprizelable {
    padding: 5px 0;
}
.outerbox td.resultviewbottom {
    padding: 3px 0;
}
.outerbox td.resultviewtop,
.outerbox td.resultviewbottomtoto2 {
    padding: 2px 0;
}
.resultviewbottomtoto2,
.sportstoto-5d-6d .plus-sign,
.sabah-lotto-5 .plus-sign,
.sabah-lotto-645 .plus-sign {
    text-align: center;
    width: 12.5%;
    border-color: #aaa;
    border-style: solid;
    border-width: 0;
    padding: 2px 0;
    height: 25px;
}

.resultviewbottomtotojpval {
    color: #e00a15;
    font-size: 16px;
    text-align: center;
    font-weight: 700;
    border-color: #ccc;
    border-style: solid;
    border-width: 0;
    height: 25px;
}

.resultviewbottomtotojp {
    font-size: 16px;
    text-align: center;
    background-color: #ccc;
    vertical-align: middle;
    border-color: #ccc;
    border-style: solid;
    border-width: 0;
    height: 25px;
}

.resultm4dlable,
.resultdamacailable,
.resultsabahlable,
.resulttotolable,
.resultstc4dlable,
.resultsteclable,
.resultsg4dlable,
.resultsgplable,
.resultgdlottolable,
.result9lottolable,
.resultnewwinlable,
.resulthariharilable,
.resultlmclable,
.resultmthlable,
.resultperdanalable,
.resultgranddragonlable,
.resultcashsweeplable,
.resultluckyhariharilable,
.resultnineltolable,
.resultlotterymacaolable,
.resultmataharilable {
	font-weight: 600;
	font-size: 18px;
	text-align: center;
	vertical-align: middle;
	height: 26px;
}

.resultdamacailable {
  	font-weight: bold;
}

.resultviewbottomm4d,
.magnum-4d-jackpot-gold .plus-sign {
    text-align: center;
    font-size: 18px;
    color: #000;
    width: 9%;
    border-color: #555;
    border-style: solid;
    border-width: 0;
    height: 25px;
}

.resultviewbottomm4doff {
    text-align: center;
    font-size: 18px;
    background-color: #aaa;
    width: 9%;
    border-color: #555;
    border-style: solid;
    border-width: 0;
    height: 25px;
}

.resultor {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    height: 25px;
}

p.infocontent {
    text-align: left;
    font-size: 12px;
    font-family: Arial;
    color: #888;
    line-height: 150%;
    padding: 0 15px;
}

.pstable {
    text-align: left;
    font-size: 12px;
    font-family: Arial;
    color: #fff;
    width: 100%;
    padding: 10px 35px;
}

.pstdtitle {
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    background-color: #333;
    color: #fff;
    vertical-align: middle;
    padding: 10px 6px;
}

.pstddetails {
    font-size: 16px;
    color: #fff;
    text-align: left;
    border-color: #c5c5c5;
    border-style: solid;
    border-width: 0;
    padding: 5px;
}

p.infocontenttitle {
    text-align: center;
    font-size: 18px;
    font-family: Arial;
    font-weight: 700;
    background-color: #cc0028;
    color: #fff;
    line-height: 1.5;
    padding: 0 15px;
}

.topmenu a {
    text-decoration: none;
    color: #fff;
    display: inline-block;
}

.topmenu a:hover {
    text-decoration: none;
    color: #fff;
    display: inline-block;
}

.topmenu {
    display: inline;
    text-align: center;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px 5px 5px 5px;
    border-radius: 5px 5px 5px 5px;
    vertical-align: top;
    text-decoration: none;
    font-size: 15px;
    border: 0 solid #36C;
    background-color: #3B5998;
    padding: 3px 2px;
}

.topmenu:hover {
    color: #000;
    background-color: #9CF;
}

.tableplus {
    padding-right: 5px;
    width: 100%;
    margin: 0;
}

.loader {
    display: none;
    width: 150px;
    height: 100px;
    border-radius: 5px;
    background-color: #000;
    color: #fff;
    padding: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    position: fixed;
    top: 41%;
    left: 50%;
    opacity: 0.9;
}

.estjpamtlable {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    background-color: #004080;
    color: #fff;
    min-height: 25px;
    vertical-align: middle;
    padding: 5px 0;
    border-color: #004080;
    border-style: solid;
    border-width: 0;
}

.resultsh3{
	font-size:1.3em;
	color:#FFF;
	padding:10px;
	padding-left:15px;
	background:#333;
	position:relative;
	margin-top:20px;
	margin-bottom:5px;
}

.resulth2 {
    padding: 5px 15px;
    width: 100%;
    background-color: #333;
    border-bottom: 1px solid #333;
    border-top: 1px solid #eeeeee;
    color: #fff;
    top: 0;
    transition: top 300ms ease-in;
}

.section-header {
    font-size: 14px;
    font-weight: 700;
    margin-top: 3px;
    margin-bottom: 3px;
    text-align: center;
    background-color: #333;
    color: #fff;
    min-height: 25px;
    vertical-align: middle;
    padding: 5px 0;
    border-color: #333;
    border-style: solid;
    text-transform: capitalize;
}

.blink {
    animation: blinker 1s linear infinite;
    color: red;
    font-size: 14px;
    font-weight: bold;
    padding-left: 5px;
}

@keyframes blinker {
    70% { 
        opacity: 0; 
    }
}

.categories h3 {
    font-size: 1.1em;
    color: #fff;
    padding: 10px 0 10px 15px;
    background: #333;
    position: relative;
    margin-bottom: 5px;
}

.categories li {
    display: block;
    font-size: 15px;
    padding: 10px 15px;
    color: #555;
    background: url(../images/drop_arrow.png) no-repeat 0;
    border-bottom: 1px solid #d6d6d6;
}

.categories li:last-child a {
    border: none;
}

.categories li a:hover {
    color: #e44f2b;
}

.categories {
    margin-bottom: 2em;
    background-color: #fff;
}

.categories ul {
    padding-left: 15px;
}

.footer {
    background-color: #000;
    padding-bottom: 0.4em;
    color: #fff;
}

/*
* Posts CSS
*/

.product-articles,
.seo-container {
    font-size: 18px;
}

.product-articles p,
.seo-container p {
    color: #333;
    padding: 5px 0;
    line-height: 1.6;
}

.product-articles p span,
.seo-container p span {
    color: #23272a;
    font-weight: bold;
}

.product-articles p span {
    font-size: 18px;
}

.product-articles p a,
.seo-container p a {
    color: #e44f2b;
}

.product-articles p a:hover,
.seo-container p a:hover {
    text-decoration: underline;
    color: #23272a;
}

.product-articles li,
.seo-container li {
    border-top: 0 solid #dfdfdf;
    padding-bottom: 10px;
}

.product-articles li:first-child,
.seo-container li:first-child {
    border-top: none !important;
    padding-top: 0;
}

.product-articles h1,
.seo-container h1 {
    font-size: 16px;
}

.product-articles h2,
.seo-container h2 {
    font-size: 24px;
}

.product-articles h3,
.seo-container h3 {
    font-size: 20px;
}

/* end Posts */

.rpad {
    padding: 0 10px 0 0;
}

.lpad {
    padding: 0 0 0 10px;
}

.btn-refresh {
    display: block;
    z-index: 99;
    opacity: 1;
    font-size: 12px;
}

a.anchor {
    display: block;
    position: relative;
    top: -100px;
    visibility: hidden;
}

.datepicker-container {
    position: relative;
    width: 250px;
}

.datepicker-container input {
    padding-right: 40px; /* Space for the calendar icon */
}

.datepicker-container .calendar-icon {
    position: absolute;
    right: 10px;
    top: 65%;
    transform: translateY(-50%);
    cursor: pointer;
    color: red;
    font-size: 30px;
}

.cornered {
    border-top: 51px solid #000 !important;
    border-right: 80px solid #c1272d;
    width: 37%;
    height: 0 !important;
    z-index: 2;
    position: absolute;
    left: 0;
    top: 0;
    transition: .4s ease;
}

/* Board Selection */
#board-selection-menu {
    padding: 5px 15px;
    width: 100%;
    background-color: #c1272d;
    border-bottom: 1px solid #c1272d;
    border-top: 1px solid #eeeeee;
    color: #fff;
    top: 0px;
    transition: top 300ms ease-in;
}

#board-selection-menu.sticky {
    position: fixed;
    z-index: 9;
    top: 51px;
    max-width: 1070px;
}

#board-selection-menu .menu {
    display: flex;
    justify-content: center;
}

#board-selection-menu .menu a {
    border-radius: 25px;
    border: 4px solid transparent;
    display: block;
    margin: 0px 3px;
}

#board-selection-menu .menu a.disabled {
    opacity: .3;
    cursor: not-allowed;
}

#board-selection-menu .menu a:hover {
    border: 4px solid rgb(90, 90, 90);
}

#board-selection-menu .menu a > img {
    height: 35px;
}

#board-selection-menu .menu a.active {
    border: 4px solid rgb(208, 99, 72);
}

#board-selection-menu .center-header-1 {
    position: relative;
}

#board-selection-menu .center-header-1 .right-item {
    position: absolute;
    display: flex;
    align-items: center;
    right: 0px;
    top: 0px;
    height: 43px;
    line-height: 43px;
}

.menu-box .mobile-h-scroller-hint {
    display: block;
    position: absolute;
    width: 100%;
    bottom: -30px;
    text-align: center;
    opacity: 0;
    transition: opacity 300ms ease-in;
    z-index: 99;
}

.menu-box .mobile-h-scroller-hint.show {
    opacity: 1;
}

.menu-box .mobile-h-scroller-hint img {
    height: 30px;
}

#board-result-overlay {
    background: rgba(0, 0, 0, 0.5);
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99998;
}

.overlay-focus-element {
    position: relative;
    z-index: 99999;
}

@media (max-width: 767px) {
    #board-selection-menu .center-header-1 {
        display: flex;
    }

    #board-selection-menu .menu {
        display: -webkit-flex;
        justify-content: flex-start;
        overflow: auto;
        position: relative;
    }

    #board-selection-menu .container {
        padding-left: 0px;
        padding-right: 0px;
    }

    #board-selection-menu .center-header-1 .right-item {
        margin-left: 5px;
        position: relative;
        right: auto;
        top: auto;
    }

    #board-selection-menu .menu a {
        flex-shrink: 0;
    }

    #board-selection-menu .menu a > img {
        width: 35px;
        height: 35px;
    }

    .menu-box {
        position: relative;
        width: 100%;
    }

    .menu-box .menu-hider {
        content: '';
        width: 15px;
        height: 100%;
        position: absolute;
        top: 0px;
        right: 0px;
        background: linear-gradient(270deg, #154a5b 0%, transparent 30%);
        z-index: 1;
    }
}

@media (max-width: 1000px) {
    .navbar-inverse .navbar-collapse {
        background: #000;
    }
    .seo-container {
        margin: 10px;
    }
}

/* ========================
   Utilities
   ======================== */
.live-icon {
    background-color: red;
    border-radius: 5px;
    color: white;
    padding: 2px 6px;
    float: right;
    text-transform: uppercase;
    font-size: 14px;
    border: 1px solid #fff;
}

#scroll-top {
    position: fixed;
    display: none;
    bottom: 63px;
    right: 10px;
    text-align: center;
    text-decoration: none;
}

#scroll-top .caption {
    display: block;
    color: #000;
}

/* ==================== LIVE STATUS STYLES ==================== */

/* Live icon styles */
.live-icon {
    background: #ff0000;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    animation: pulse 2s infinite;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.live-icon i {
    font-size: 14px;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Countdown display styles */
.countdown-display {
    background: #ff9800;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.countdown-timer {
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

/* ==================== JACKPOT STYLES ==================== */

/* Blink animation for jackpot amounts */
.blink {
    animation: blink 1s infinite;
    font-weight: bold;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Apply config to specific elements */
.resultm4dlable,
.resultdamacailable,
.resultsabahlable,
.resulttotolable,
.resultstc4dlable,
.resultsteclable,
.resultsg4dlable,
.resultsgplable,
.resultgdlottolable,
.result9lottolable,
.resultnewwinlable,
.resulthariharilable,
.resultlmclable,
.resultmthlable,
.resultperdanalable,
.resultgranddragonlable,
.resultcashsweeplable,
.resultluckyhariharilable,
.resultnineltolable,
.resultlotterymacaolable,
.resultmataharilable {
    font-size: var(--4dpanda-result-label-font-size);
    color: var(--4dpanda-title-color);
    background-color: var(--4dpanda-table-bg-color);
}

.resultdrawdate {
    font-size: var(--4dpanda-date-draw-font-size);
    color: var(--4dpanda-date-draw-color);
}

.resultprizelable {
    font-size: var(--4dpanda-result-prize-font-size);
    color: var(--4dpanda-result-prize-color);
}

.result5dprizelable {
    font-size: var(--4dpanda-result-small-label-font-size);
    color: var(--4dpanda-result-small-label-color);
}

.resultviewtop {
    font-size: var(--4dpanda-result-number-top-font-size);
    color: var(--4dpanda-result-number-top-color);
}

.resultviewbottom,
.resultviewbottomtoto,
.resultviewbottomtoto2,
.resultviewbottomm4d,
.resultviewbottomgrey,
.resultviewbottomwhite {
    font-size: var(--4dpanda-result-number-bottom-font-size);
    color: var(--4dpanda-result-number-bottom-color);
}

.estjpamtlable {
    font-size: var(--4dpanda-result-estimated-font-size);
    color: var(--4dpanda-result-estimated-color);
}

