.ttrs-list-view {
    max-width: 1200px !important;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
}

.ttrs-list-header {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.ttrs-list-header h2 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.ttrs-date-selector {
    margin-bottom: 15px;
}

/* Fix date picker appearing behind player pills */
#ui-datepicker-div {
    z-index: 100000 !important;
}

/* Disabled days in datepicker */
.ui-datepicker-unselectable.ttrs-date-closed span {
    background: #f8d7da !important;
    color: #721c24 !important;
    text-decoration: line-through;
}

.ui-datepicker-unselectable.ttrs-date-blackout span {
    background: #fff3cd !important;
    color: #856404 !important;
}

.ttrs-date-form {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.ttrs-date-form label {
    font-weight: 600;
}

.ttrs-date-form input[type="date"] {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.ttrs-login-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 10px;
    margin-top: 15px;
}

.ttrs-tee-sheet-list {
    margin: 20px 0;
}

.ttrs-list-container {
    overflow-x: auto;
}

.ttrs-list-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ttrs-list-table th {
    background: #f5f5f5;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
}

.ttrs-list-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.ttrs-players-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ttrs-player-pill {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 50px;
    padding: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ttrs-player-pill:hover {
    background: #e3f2fd;
    border-color: #2196f3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ttrs-player-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
}

.ttrs-player-name {
    margin-right: 8px;
    font-size: 14px;
    color: #495057;
}

.ttrs-remove-player {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 18px;
    padding: 0 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.ttrs-remove-player:hover {
    opacity: 1;
}

.ttrs-separator {
    color: #ced4da;
    margin: 0 1px;
    font-size: 12px;
}

.time-cell {
    width: 100px;
    font-weight: 500;
    color: #495057;
}

.players-cell {
    min-width: 300px;
}

.actions-cell {
    width: 150px;
    text-align: right;
    vertical-align: middle;
}

tr.blocked .actions-cell {
    text-align: center !important;
}

tr.full {
    background-color: #fff9f9;
}

tr.empty {
    background-color: #f8f9fa;
}

tr.partial {
    background-color: #fff;
}

tr.blocked {
    background-color: #fff5f5 !important;
    border-left: 4px solid #dc3545 !important;
}

tr.blocked td {
    color: #721c24 !important;
}

.ttrs-blocked-indicator {
    display: inline-block !important;
    background: #dc3545 !important;
    color: white !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-size: 10px !important;
    font-weight: bold !important;
    margin-left: 8px !important;
    text-transform: uppercase !important;
}

.ttrs-blocked-message {
    padding: 15px !important;
    background: #fff5f5 !important;
    border: 1px solid #f5c6cb !important;
    border-radius: 6px !important;
    color: #721c24 !important;
}

.ttrs-blocked-reason {
    font-weight: 600 !important;
    margin-bottom: 5px !important;
}

.ttrs-blocked-type {
    font-size: 12px !important;
    opacity: 0.8 !important;
}

.ttrs-blocked-actions {
    text-align: center !important;
    padding: 10px !important;
}

.ttrs-blocked-notice {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    margin-bottom: 5px !important;
}

.ttrs-blocked-icon {
    font-size: 16px !important;
}

.ttrs-blocked-text {
    font-weight: 600 !important;
    color: #dc3545 !important;
}

.ttrs-blocked-info {
    color: #6c757d !important;
    font-size: 11px !important;
}

.ttrs-block-reason-info {
    font-size: 11px !important;
    color: #6c757d !important;
    margin-top: 4px !important;
    font-style: italic !important;
    width: 100% !important;
    max-width: 140px !important;
    line-height: 1.2 !important;
    word-wrap: break-word !important;
    text-align: center !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.status-full {
    color: #e17055;
    font-weight: 600;
}

.available-spots {
    color: #00b894;
    font-weight: 600;
    font-size: 12px;
}

.login-required {
    color: #636e72;
    font-style: italic;
    font-size: 12px;
}

/* Button styles */
.ttrs-btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    font-size: 14px;
}

.ttrs-btn-primary {
    background: #3498db;
    color: white;
}

.ttrs-btn-primary:hover {
    background: #2980b9;
}

.ttrs-btn-secondary {
    background: #95a5a6;
    color: white;
}

.ttrs-btn-secondary:hover {
    background: #7f8c8d;
}

.ttrs-btn-success {
    background: #00b894;
    color: white;
}

.ttrs-btn-success:hover {
    background: #00a885;
}

.ttrs-btn-small {
    padding: 4px 8px;
    font-size: 12px;
}

/* Modal Styles */
.ttrs-modal-dialog {
    padding: 0 !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    max-width: 700px !important;
    width: 90% !important;
    background: #fff !important;
}

.ttrs-modal-dialog .ui-dialog-titlebar {
    display: none !important;
}

.ttrs-modal-dialog .ui-dialog-content {
    padding: 0 !important;
    overflow: visible !important;
}

.ttrs-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.ttrs-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #2c3e50;
}

.ttrs-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    color: #6c757d;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.ttrs-modal-close:hover {
    opacity: 1;
}

.ttrs-modal-body {
    padding: 0;
}

.ttrs-modal-body .form-group {
    margin-bottom: 1rem;
}

.ttrs-modal-body label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.ttrs-modal-body select,
.ttrs-modal-body input,
.ttrs-modal-body textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out;
}

.ttrs-modal-body select:focus,
.ttrs-modal-body input:focus,
.ttrs-modal-body textarea:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.ttrs-modal-body .booking-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.ttrs-modal-body .booking-summary h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.ttrs-modal-body .booking-summary p {
    margin: 5px 0;
    color: #495057;
}

.ui-widget-overlay {
    background: rgba(0, 0, 0, 0.5) !important;
    opacity: 1 !important;
    position: fixed !important;
}

/* Booking modal specific styles */
.booking-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.booking-summary h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.booking-summary p {
    margin: 5px 0;
}

.player-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.player-section h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.player-section .form-group {
    margin-bottom: 15px;
}

.player-section .form-group:last-child {
    margin-bottom: 0;
}

.player-section select,
.player-section input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out;
}

.player-section select:focus,
.player-section input:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.guest-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.guest-contact-row {
    display: flex;
    gap: 15px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.guest-contact-field {
    flex: 1;
    min-width: 200px;
    max-width: calc(50% - 8px);
}

.guest-contact-field label {
    display: block;
    margin-bottom: 5px;
    white-space: nowrap;
}

.guest-contact-field input {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 576px) {
    .guest-contact-field {
        min-width: 100%;
        max-width: 100%;
    }
}

.member-type-indicator {
    font-size: 12px;
    font-weight: normal;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 10px;
}

.member-type-indicator.member-indicator {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.member-type-indicator.guest-indicator {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Autocomplete styling */
.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 99999;
}

.ui-autocomplete .ui-menu-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.ui-autocomplete .ui-menu-item:last-child {
    border-bottom: none;
}

.ui-autocomplete .ui-menu-item:hover,
.ui-autocomplete .ui-menu-item.ui-state-focus {
    background: #f8f9fa;
}

.ui-helper-hidden-accessible {
    display: none;
}

.member-search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.member-search:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Responsive design */
@media (max-width: 768px) {
    .ttrs-list-table {
        font-size: 12px;
    }
    
    .ttrs-date-form {
        flex-direction: column;
        gap: 8px;
    }
    
    .ttrs-modal-content {
        width: 95%;
        margin: 10px;
    }
}

.ttrs-loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.ttrs-loading-overlay::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ttrs-notice {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10001;
    max-width: 400px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ttrs-notice.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ttrs-notice.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ttrs-book-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: inline-block;
}

.ttrs-book-icon:hover {
    transform: scale(1.1);
}

.ttrs-book-icon svg {
    width: 100%;
    height: 100%;
    fill: #999;
}

.ttrs-book-icon.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ttrs-tee-sheet-list {
    margin: 20px 0;
}

.ttrs-list-container {
    overflow-x: auto;
}

.ttrs-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.ttrs-list-table th,
.ttrs-list-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.ttrs-list-table th {
    background-color: #f5f5f5;
}

.status-full {
    color: #e74c3c;
    font-weight: bold;
    margin-right: 10px;
}

.waitlist-status {
    display: inline-block;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 5px 10px;
    margin: 5px 0;
    color: #495057;
    font-size: 0.9em;
}

.waitlist-btn {
    margin-left: 10px;
}

.ttrs-book-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.ttrs-book-icon:hover {
    transform: scale(1.1);
}

.ttrs-book-icon svg {
    width: 100%;
    height: 100%;
    fill: #999;
}

.actions-cell {
    white-space: nowrap;
}

.ttrs-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    text-decoration: none;
    margin-right: 8px;
    line-height: 1;
}

.ttrs-action-button:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.ttrs-action-button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

.ttrs-action-button.primary {
    background-color: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.ttrs-action-button.primary:hover {
    background-color: #135e96;
    border-color: #135e96;
}

.ttrs-action-button.secondary {
    background-color: #f0f0f1;
    border-color: #c3c4c7;
    color: #2c3338;
}

.ttrs-action-button.secondary:hover {
    background-color: #e0e0e1;
    border-color: #a7aaad;
}

.ttrs-waitlist-modal .ttrs-modal-content {
    max-width: 500px;
}

.ttrs-waitlist-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ttrs-waitlist-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.ttrs-waitlist-item:last-child {
    border-bottom: none;
}

.ttrs-waitlist-position {
    font-weight: bold;
    margin-right: 16px;
    color: #2271b1;
}

.ttrs-waitlist-info {
    flex-grow: 1;
}

.ttrs-waitlist-name {
    font-weight: 500;
}

.ttrs-waitlist-date {
    font-size: 12px;
    color: #666;
}

/* Waitlist Modals */
#join-waitlist-modal .ttrs-modal-content,
#view-waitlist-modal .ttrs-modal-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* View Waitlist Modal Specific Styling - Professional Design */
#view-waitlist-modal .ttrs-modal-dialog {
    max-width: 650px !important;
    width: 90% !important;
    margin: 0 auto !important;
}

#view-waitlist-modal .ttrs-modal-body {
    padding: 24px;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

#view-waitlist-modal .booking-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#view-waitlist-modal .booking-summary h4 {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 12px;
}

#view-waitlist-modal .booking-summary p {
    margin: 8px 0;
    color: #495057;
    font-size: 15px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

#view-waitlist-modal .booking-summary strong {
    color: #2c3e50;
    font-weight: 700;
    min-width: 60px;
    text-align: right;
}

/* Waitlist Display Styles - Professional Layout */
.waitlist-entries-list {
    margin-top: 0;
    text-align: center;
}

.waitlist-entries-list h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    padding: 16px 0;
    border-bottom: 2px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px 8px 0 0;
    position: relative;
}

.waitlist-entries-list h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #2271b1;
}

.waitlist-entry {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow-x: auto;
}

.waitlist-entry::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    border-radius: 12px 0 0 12px;
}

.waitlist-entry:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: #2271b1;
    transform: translateY(-2px);
}

.waitlist-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 16px;
}

.waitlist-position {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.3);
    letter-spacing: 0.5px;
}

.waitlist-user {
    font-weight: 700;
    color: #2c3e50;
    font-size: 16px;
    flex: 1;
    text-align: center;
    letter-spacing: 0.3px;
}

.waitlist-date {
    font-size: 13px;
    color: #6c757d;
    flex-shrink: 0;
    text-align: right;
    min-width: 160px;
    font-weight: 500;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.waitlist-entry-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    color: #495057;
    margin-top: 12px;
    flex-wrap: wrap;
}

.waitlist-holes,
.waitlist-preference {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.waitlist-holes {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.waitlist-preference {
    background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
}

.waitlist-notes {
    font-style: italic;
    color: #6c757d;
    font-size: 13px;
    margin-top: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2271b1;
    text-align: center;
}

/* Empty Waitlist State - Professional */
.waitlist-empty {
    text-align: center;
    padding: 60px 40px;
    color: #6c757d;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 16px;
    margin-top: 24px;
}

.waitlist-empty-icon {
    font-size: 64px;
    margin-bottom: 24px;
    opacity: 0.6;
    color: #2271b1;
}

.waitlist-empty h4 {
    margin: 0 0 16px 0;
    color: #495057;
    font-size: 20px;
    font-weight: 700;
}

.waitlist-empty p {
    margin: 0 0 12px 0;
    font-size: 15px;
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.waitlist-empty-subtitle {
    font-size: 13px !important;
    opacity: 0.8;
    font-weight: 500;
}

/* Loading State - Professional */
.ttrs-loading {
    text-align: center;
    padding: 60px 40px;
    color: #6c757d;
    font-size: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 16px;
    margin-top: 24px;
    font-weight: 500;
}

/* Responsive adjustments for waitlist modal */
@media (max-width: 768px) {
    #view-waitlist-modal .ttrs-modal-content {
        max-width: 95%;
        margin: 10px;
    }
    
    #view-waitlist-modal .ttrs-modal-body {
        padding: 20px;
    }
    
    .waitlist-entry-header {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        text-align: center;
    }
    
    .waitlist-date {
        text-align: center;
        min-width: auto;
    }
    
    .waitlist-entry-details {
        justify-content: center;
    }
    
    .waitlist-empty {
        padding: 40px 20px;
    }
    
    .waitlist-empty-icon {
        font-size: 48px;
    }
}

/* Professional Modal Header */
#view-waitlist-modal .ttrs-modal-header {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: white;
    border-bottom: none;
    padding: 24px;
    text-align: center;
}

#view-waitlist-modal .ttrs-modal-header h3 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

#view-waitlist-modal .ttrs-modal-close {
    color: white;
    font-size: 28px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#view-waitlist-modal .ttrs-modal-close:hover {
    opacity: 1;
    color: #fff;
}

/* Waitlist Entry Styles */
.waitlist-entry {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.waitlist-entry.current-user {
    background: #f0f7ff;
    border-color: #90caf9;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.entry-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.position-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

.current-user .position-badge {
    background: #1976d2;
    color: white;
}

.waitlist-info {
    margin-top: 1rem;
}

.waitlist-info p {
    margin: 0.5rem 0;
    color: #555;
}

.waitlist-info strong {
    color: #333;
    min-width: 100px;
    display: inline-block;
}

.waitlist-date {
    margin-top: 1rem !important;
    color: #666;
    font-size: 0.9rem;
}

.remove-from-waitlist {
    background: #ef5350;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.remove-from-waitlist:hover {
    background: #d32f2f;
}

.no-entries-message {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
    background: #f5f5f5;
    border-radius: 8px;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    margin: 1rem 0;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Form Styling */
#join-waitlist-form .form-group {
    margin-bottom: 15px;
}

#join-waitlist-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#join-waitlist-form select,
#join-waitlist-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#join-waitlist-form textarea {
    resize: vertical;
    min-height: 80px;
}

.booking-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.booking-summary h4 {
    margin: 0 0 10px 0;
}

.booking-summary p {
    margin: 5px 0;
}

.ttrs-modal-dialog {
    padding: 0;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ttrs-modal-dialog .ui-dialog-titlebar {
    background: #f8f9fa;
    border: none;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
    padding: 15px 20px;
}

.ttrs-modal-dialog .ui-dialog-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
}

.ttrs-modal-dialog .ui-dialog-titlebar-close {
    border: none;
    background: transparent;
    color: #6c757d;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.ttrs-modal-dialog .ui-dialog-titlebar-close:hover {
    opacity: 1;
}

.ttrs-modal-dialog .ui-dialog-content {
    padding: 20px;
    background: #fff;
}

.ttrs-modal-dialog .ui-dialog-buttonpane {
    margin-top: 0;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 8px 8px;
}

.ttrs-modal-dialog .ui-dialog-buttonset {
    float: right;
}

.ttrs-modal-dialog .ui-button {
    margin-left: 10px;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s;
}

.ttrs-modal-dialog .ui-button-primary {
    background: #007bff;
    border: 1px solid #0056b3;
    color: #fff;
}

.ttrs-modal-dialog .ui-button-primary:hover {
    background: #0056b3;
}

.ttrs-modal-dialog .ui-button-secondary {
    background: #6c757d;
    border: 1px solid #545b62;
    color: #fff;
}

.ttrs-modal-dialog .ui-button-secondary:hover {
    background: #545b62;
}

.ui-widget-overlay {
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

/* Form Styles */
.ttrs-modal-dialog form {
    margin: 0;
}

.ttrs-modal-dialog .form-group {
    margin-bottom: 1rem;
}

.ttrs-modal-dialog label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #212529;
}

.ttrs-modal-dialog select,
.ttrs-modal-dialog input,
.ttrs-modal-dialog textarea {
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.ttrs-modal-dialog select:focus,
.ttrs-modal-dialog input:focus,
.ttrs-modal-dialog textarea:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.booking-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.booking-summary h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #212529;
}

.booking-summary p {
    margin: 0.5rem 0;
    color: #495057;
}

.booking-summary strong {
    color: #212529;
}

.player-section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 1rem;
}

.player-section h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

/* Modal Dialog Styles */
.ui-dialog {
    padding: 0;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #fff;
    max-height: 90vh !important;
    position: fixed !important;
    top: 5vh !important;
}

.ui-dialog .ui-dialog-titlebar {
    display: none;
}

.ui-dialog .ui-dialog-content {
    padding: 0;
    max-height: none !important;
    height: auto !important;
}

.ttrs-modal {
    display: block !important;
}

.ttrs-modal-content {
    padding: 0;
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow-y: auto !important;
}

.ttrs-modal-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

.ttrs-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #2c3e50;
}

.ttrs-modal-close {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6c757d;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 1;
}

.ttrs-modal-close:hover {
    color: #343a40;
}

.ttrs-modal-body {
    padding: 0;
}

.ttrs-modal-body .form-group {
    margin-bottom: 1rem;
}

.ttrs-modal-body label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.ttrs-modal-body select,
.ttrs-modal-body input,
.ttrs-modal-body textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.ttrs-modal-body .booking-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.ttrs-modal-body .booking-summary h4 {
    margin: 0 0 10px 0;
    color: #495057;
}

.ttrs-modal-body .booking-summary p {
    margin: 5px 0;
    color: #6c757d;
}

.ui-widget-overlay {
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

/* Form Styles */
.ttrs-textarea {
    width: 100%;
    min-height: 80px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out;
    resize: vertical;
}

.ttrs-textarea:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Player Section Styles */
.player-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.player-section h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.player-section .form-group {
    margin-bottom: 15px;
}

.player-section .form-group:last-child {
    margin-bottom: 0;
}

.player-section select,
.player-section input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out;
}

.player-section select:focus,
.player-section input:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.guest-fields {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    margin-top: 10px;
}

/* Modal Dialog Styles */
.ui-dialog {
    padding: 0;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.ui-dialog .ui-dialog-titlebar {
    display: none;
}

.ui-dialog .ui-dialog-content {
    padding: 0;
}

.ttrs-modal {
    display: block !important;
}

.ttrs-modal-content {
    padding: 0;
    position: relative;
    background: #fff;
    border-radius: 8px;
}

.ttrs-modal-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ttrs-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #2c3e50;
}

.ttrs-modal-close {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6c757d;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 1;
}

.ttrs-modal-close:hover {
    color: #343a40;
}

.ttrs-modal-body {
    padding: 0;
}

.ttrs-modal-body .form-group {
    margin-bottom: 1rem;
}

.ttrs-modal-body label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.ttrs-modal-body select,
.ttrs-modal-body input,
.ttrs-modal-body textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.ttrs-modal-body .booking-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.ttrs-modal-body .booking-summary h4 {
    margin: 0 0 10px 0;
    color: #495057;
}

.ttrs-modal-body .booking-summary p {
    margin: 5px 0;
    color: #6c757d;
}

.ui-widget-overlay {
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

/* Modal Scrolling */
.ttrs-scrollable {
    max-height: calc(90vh - 120px) !important;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
}

/* Radio Button Styling */
.player-type-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-type-group label {
    margin-bottom: 0;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin: 0;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

.radio-label input[type="radio"] {
    margin: 0;
    width: auto;
}

/* Guest Fields Styling */
.guest-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.guest-contact-row {
    display: flex;
    gap: 15px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.guest-contact-field {
    flex: 1;
    min-width: 200px;
    max-width: calc(50% - 8px);
}

.guest-contact-field label {
    display: block;
    margin-bottom: 5px;
    white-space: nowrap;
}

.guest-contact-field input {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 576px) {
    .guest-contact-field {
        min-width: 100%;
        max-width: 100%;
    }
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.ttrs-btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.ttrs-btn-primary,
.ttrs-cancel-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ttrs-btn-primary {
    background-color: #3498db;
    color: white;
}

.ttrs-btn-primary:hover {
    background-color: #2980b9;
}

.ttrs-cancel-btn {
    background-color: #dc3545;
    color: white;
}

.ttrs-cancel-btn:hover {
    background-color: #c82333;
}

/* Overlay Styles */
.ui-widget-overlay {
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

/* Player preference icons */
.ttrs-player-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ttrs-player-preference {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    gap: 4px;
}

.ttrs-player-preference img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.ttrs-player-holes {
    font-size: 12px;
    font-weight: 600;
    color: #495057;
}

#join-waitlist-modal .ttrs-modal-body {
	padding: 20px;
}
#join-waitlist-modal .booking-summary {
	margin-bottom: 16px;
}
#join-waitlist-modal .form-group {
	margin-bottom: 12px;
}
#join-waitlist-modal label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	color: #2c3e50;
}
#join-waitlist-modal select,
#join-waitlist-modal textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #ced4da;
	border-radius: 6px;
	background: #fff;
}
#join-waitlist-modal .ttrs-modal-header {
	padding: 14px 16px;
}
#join-waitlist-modal .ttrs-modal-footer,
#join-waitlist-modal .form-actions {
	padding: 12px 16px;
	border-top: 1px solid #e9ecef;
}
#join-waitlist-modal .ttrs-btn-primary {
	background: #28a745;
	border-color: #28a745;
}
#join-waitlist-modal .ttrs-btn-primary:hover {
	background: #218838;
}

/* Force visibility for waitlist modal form elements */
#join-waitlist-modal select,
#join-waitlist-modal input[type="text"],
#join-waitlist-modal input[type="email"],
#join-waitlist-modal input[type="tel"],
#join-waitlist-modal input[type="hidden"],
#join-waitlist-modal textarea {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    background-color: #fff !important;
    border: 1px solid #ced4da !important;
    color: #495057 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    padding: 10px 12px !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* Specific styling for select dropdowns */
#join-waitlist-modal select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 30px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Ensure labels are visible */
#join-waitlist-modal label {
    display: block !important;
    margin-bottom: 6px !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Professional Notification System */
.ttrs-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    min-width: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #ddd;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ttrs-notification-show {
    transform: translateX(0);
    opacity: 1;
}

.ttrs-notification-content {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
}

.ttrs-notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: white;
}

.ttrs-notification-success {
    border-left-color: #28a745;
}

.ttrs-notification-success .ttrs-notification-icon {
    background: #28a745;
}

.ttrs-notification-error {
    border-left-color: #dc3545;
}

.ttrs-notification-error .ttrs-notification-icon {
    background: #dc3545;
}

.ttrs-notification-info {
    border-left-color: #17a2b8;
}

.ttrs-notification-info .ttrs-notification-icon {
    background: #17a2b8;
}

.ttrs-notification-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #2c3e50;
    margin: 0;
    padding-right: 8px;
}

.ttrs-notification-close {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 18px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.ttrs-notification-close:hover {
    background: #f8f9fa;
    color: #495057;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .ttrs-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
}
/* Waitlist Display Styles */
.waitlist-entries-list {
    margin-top: 20px;
}

.waitlist-entries-list h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.waitlist-entry {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    }
    
    .waitlist-entry-header {
    display: flex;
        align-items: center;
        gap: 12px;
    margin-top: 8px;
}

.waitlist-position {
    background: #007cba;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 30px;
        text-align: center;
    }

.waitlist-user {
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
    }
    
    .waitlist-date {
    font-size: 12px;
    color: #6c757d;
    }
    
    .waitlist-entry-details {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #495057;
}

.waitlist-holes,
.waitlist-preference {
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.waitlist-holes {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    border-color: rgba(40, 167, 69, 0.3);
}

.waitlist-holes:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.waitlist-preference {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
    border-color: rgba(111, 66, 193, 0.3);
}

.waitlist-preference:hover {
    background: linear-gradient(135deg, #5a32a3 0%, #4c2a85 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(111, 66, 193, 0.3);
}

.waitlist-notes {
    font-style: italic;
    color: #6c757d;
}

/* Empty Waitlist State */
    .waitlist-empty {
    text-align: center;
        padding: 40px 20px;
    color: #6c757d;
    }
    
    .waitlist-empty-icon {
        font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.waitlist-empty h4 {
    margin: 0 0 12px 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.waitlist-empty p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.waitlist-empty-subtitle {
    font-size: 12px !important;
    opacity: 0.7;
}

/* Loading State */
.ttrs-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 14px;
}

/* Player Pill Hover Tooltip */
.ttrs-player-pill {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ttrs-player-pill:hover {
    background: #e3f2fd;
    border-color: #2196f3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ttrs-player-tooltip {
    position: fixed;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #2c3e50;
    padding: 16px;
    border-radius: 12px;
    font-size: 13px;
    white-space: nowrap;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid #e9ecef;
    min-width: 220px;
    text-align: left;
    margin-top: 8px;
}

.ttrs-player-tooltip::after {
    content: '';
    position: fixed;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #fff;
}

.ttrs-player-tooltip::before {
    content: '';
    position: fixed;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 9px solid transparent;
    border-top-color: #e9ecef;
    margin-top: 1px;
}

.ttrs-player-pill:hover .ttrs-player-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(8px);
}

.ttrs-tooltip-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #2c3e50;
    font-size: 14px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 8px;
}

.ttrs-tooltip-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.ttrs-tooltip-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ttrs-tooltip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.ttrs-tooltip-label {
    color: #6c757d;
    font-weight: 500;
    min-width: 60px;
}

.ttrs-tooltip-value {
    color: #2c3e50;
    font-weight: 600;
    text-align: right;
    flex: 1;
}

.ttrs-tooltip-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
}

.ttrs-tooltip-action {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ttrs-tooltip-action:hover {
    background: #e9ecef;
    color: #495057;
}

/* Current user waitlist entry styling */
.waitlist-entry.current-user {
    background: #f0f7ff;
    border-color: #90caf9;
    border-left: 4px solid #2196f3;
    position: relative; /* Add relative positioning for absolute positioned button */
}

/* Remove the old actions section */
.waitlist-entry-actions {
    display: none;
}

/* New compact remove button in top-right corner */
.remove-from-waitlist-btn {
    position: fixed;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.remove-from-waitlist-btn:hover {
    background: #c82333;
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(220, 53, 69, 0.4);
}

.remove-from-waitlist-btn:active {
    transform: scale(0.95);
}

.remove-from-waitlist-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
}

/* Remove the ::after pseudo-element since we're using just the X */
.remove-from-waitlist-btn::after {
    display: none;
}

/* Add some padding to the right of current user entries to make room for the X button */
.waitlist-entry.current-user .waitlist-entry-header {
    padding-right: 40px;
}


/* Essential tooltip fixes - minimal impact on table design */
.ttrs-player-tooltip {
    position: fixed !important;
    z-index: 999999 !important;
    pointer-events: none !important;
}

.ttrs-player-tooltip * {
    pointer-events: auto !important;
}

/* Only allow tooltip overflow on the specific elements that need it */
.ttrs-list-table td {
    overflow: visible !important;
}

.ttrs-players-list {
    overflow: visible !important;
}


/* Player pill z-index layering */
.ttrs-player-pill {
    position: relative !important;
    z-index: 10 !important;
}

.ttrs-player-pill:hover {
    z-index: 20 !important;
}

/* Ensure tooltip appears above everything including player pills */
.ttrs-player-tooltip {
    z-index: 999999 !important;
}

/* Ensure player tooltip does not swallow clicks so edit button works */
.ttrs-player-tooltip { pointer-events: none; }

