/* Poker Tournament Manager Frontend Styles */
.ptm-table-container {
    margin: 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    overflow-y: hidden;
	padding-bottom: 18px;
}

.ptm-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ptm-table th,
.ptm-table td {
    padding: 12px 8px;
    text-align: left;
	white-space: nowrap;
	box-sizing: border-box;
}

.ptm-table th {
    background-color: #2c3e50;
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ptm-table td {
    border-bottom: 1px solid #ddd;
}

.ptm-table thead tr {
    border-left: 4px solid #2c3e50;
}

.ptm-table tbody tr {
    transition: background-color 0.2s ease;
    border-left: 4px solid transparent;
}

.ptm-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Today's games highlighting */
.ptm-table tbody tr.ptm-today {
    background-color: #e8f5e8;
    border-left-color: #28a745;
}

.ptm-table tbody tr.ptm-today:hover {
    background-color: #d4edda;
}

/* Tomorrow's games highlighting */
.ptm-table tbody tr.ptm-tomorrow {
    background-color: #fff3cd;
    border-left-color: #ffc107;
}

.ptm-table tbody tr.ptm-tomorrow:hover {
    background-color: #ffeaa7;
}

/* Column specific styling */
.ptm-table .ptm-type-icon,
.ptm-table .ptm-time,
.ptm-table .ptm-late-reg,
.ptm-table .ptm-game-type,
.ptm-table .ptm-chips,
.ptm-table .ptm-buy-in,
.ptm-table .ptm-fee,
.ptm-table .ptm-bounty,
.ptm-table .ptm-total,
.ptm-table .ptm-rebuys,
.ptm-table .ptm-addons,
.ptm-table .ptm-blinds,
.ptm-table .ptm-min-buy-in,
.ptm-table .ptm-max-buy-in,
.ptm-table .ptm-available-tables {
	text-align: center;
}

.ptm-table .ptm-type-icon {
	padding-right: 0;
}

.ptm-game-name {
    min-width: 120px;
    max-width: 220px;
}

.ptm-date {
    min-width: 90px;
}

.ptm-time {
    min-width: 80px;
	font-weight: 500;
    color: #d35400;
}

.ptm-venue {
	min-width: 110px;
    color: #34495e;
}

.ptm-location {
	min-width: 90px;
    color: #34495e;
}

.ptm-game-type {
	min-width: 100px;
}

.ptm-buy-in {
	min-width: 70px;
}

.ptm-total {
	font-weight: 500;
    color: #d35400;
}

/* Tooltip */
.ptm-tooltip-trigger {
    position: relative;
    display: inline-block;
}

.ptm-tooltip-content {
	visibility: hidden;
	opacity: 0;
	background-color: #333;
	color: #fff;
	text-align: center;
	border-radius: 100px;
	padding: 5px 10px;
	position: absolute;
	z-index: 1;
	top: 115%;
	left: 0;
	transition: opacity 0.3s;
	font-size: 12px;
	white-space: nowrap;
}

.ptm-tooltip-trigger:hover .ptm-tooltip-content {
    visibility: visible;
    opacity: 1;
}

/* Legend */
.ptm-legend {
    display: flex;
    gap: 20px;
    margin-top: 0px;
    padding: 10px 0;
}

.ptm-legend-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}
.ptm-legend-item [class^="fa"] {
	color: #000;
}

.ptm-legend-color {
    width: 20px;
    height: 12px;
    margin-right: 8px;
    border-radius: 2px;
}

.ptm-today-color {
    background-color: #28a745;
}

.ptm-tomorrow-color {
    background-color: #ffc107;
}

.button-link-delete {
    color: #dc3232;
    border-color: #dc3232;
}
.button-link-delete:hover {
    background: #dc3232;
    color: white;
}

.ptm-table-overflow {
	position: relative;
}

.ptm-filter-form {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.ptm-filter-form.expanded {
	max-height: 200px;
}

/* Responsive design */
@media (max-width: 768px) {    
    .ptm-table th,
    .ptm-table td {
        padding: 6px 12px;
    }
    
    .ptm-table-container {
        margin: 0;
    }
    
    .ptm-legend {
		flex-wrap: wrap;
        gap: 10px;
		width: fit-content;
		border-top: 0;
    }
	.ptm-legend-item {
		flex: 0 0 calc(50% - 10px);
	}
	.ptm-legend-item:nth-child(1) { order: 1; }
	.ptm-legend-item:nth-child(2) { order: 3; }
	.ptm-legend-item:nth-child(3) { order: 2; }
	.ptm-legend-item:nth-child(4) { order: 4; }
}

.ptm-table-container {
}

@supports (-webkit-touch-callout: none) {
    .ptm-table-container {
        -webkit-overflow-scrolling: auto;
        overscroll-behavior: none;
    }
}