/**
 * Casino Tables — Main table structure styles.
 *
 * @package Casino_Manager
 */

/* -----------------------------------------------
   Table Wrapper
   ----------------------------------------------- */
.casino-table-wrapper {
    max-width: 1200px;
    margin: 0 auto 30px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* -----------------------------------------------
   Table Header — Green gradient bar
   ----------------------------------------------- */
.casino-table__header {
    display: -ms-grid;
    display: grid;
    grid-template-columns: 80px 150px 1fr 1fr 150px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background: -webkit-linear-gradient(315deg, #1a6b47 0%, #0d4a32 100%);
    background: linear-gradient(135deg, #1a6b47 0%, #0d4a32 100%);
    color: #ffffff;
    padding: 12px 15px;
    border-radius: 8px 8px 0 0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.casino-table__header-col {
    padding: 0 10px;
}

.casino-table__header-col--position {
    text-align: center;
}

.casino-table__header-col--cta {
    text-align: center;
}

/* -----------------------------------------------
   Table Body
   ----------------------------------------------- */
.casino-table__body {
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

/* When header is hidden, body gets full radius */
.casino-table__header + .casino-table__body {
    border-top: none;
}

.casino-table__body:first-child {
    border-top: 1px solid #e0e0e0;
    border-radius: 8px;
}

/* Empty state */
.casino-table--empty {
    text-align: center;
    padding: 40px 20px;
    color: #666666;
    background: #f5f5f5;
    border-radius: 8px;
}

.casino-table--empty p {
    margin: 0;
    font-size: 14px;
}

/* -----------------------------------------------
   Load More Button
   ----------------------------------------------- */
.casino-table__load-more-wrap {
    text-align: center;
    padding: 20px 0;
}

.casino-table__load-more-btn {
    display: inline-block;
    background: #ffffff;
    color: #1a6b47;
    border: 2px solid #1a6b47;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.3px;
    line-height: 1;
}

.casino-table__load-more-btn:hover {
    background: #1a6b47;
    color: #ffffff;
    -webkit-box-shadow: 0 4px 12px rgba(26, 107, 71, 0.3);
    box-shadow: 0 4px 12px rgba(26, 107, 71, 0.3);
}

.casino-table__load-more-btn:active {
    -webkit-transform: scale(0.98);
    transform: scale(0.98);
}

.casino-table__load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    -webkit-transform: none;
    transform: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.casino-table__load-more-count {
    font-weight: 400;
    font-size: 12px;
    opacity: 0.8;
    margin-left: 4px;
}

/* -----------------------------------------------
   Custom Scrollbar (for overflow containers)
   ----------------------------------------------- */
.casino-table-wrapper ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.casino-table-wrapper ::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.casino-table-wrapper ::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 3px;
}

.casino-table-wrapper ::-webkit-scrollbar-thumb:hover {
    background: #999999;
}

/* Firefox scrollbar */
.casino-table-wrapper {
    scrollbar-width: thin;
    scrollbar-color: #c0c0c0 #f5f5f5;
}
