/**
 * Pickup Games - Admin Styles
 */

.pickup-admin {
    font-family: 'Heebo', sans-serif;
    direction: rtl;
    text-align: right;
}

.pickup-admin * {
    direction: rtl;
    text-align: right;
}

.pickup-admin table {
    direction: rtl;
}

.pickup-admin table th,
.pickup-admin table td {
    text-align: right;
}

.pickup-admin .form-table th {
    text-align: right;
}

.pickup-admin input[type="text"],
.pickup-admin input[type="email"],
.pickup-admin input[type="date"],
.pickup-admin input[type="time"],
.pickup-admin input[type="number"],
.pickup-admin input[type="url"],
.pickup-admin select,
.pickup-admin textarea {
    direction: rtl;
    text-align: right;
}

/* ========== Checkbox → Toggle (pill + neon yellow when on) ========== */
.pickup-admin label:has(> input[type="checkbox"]) {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    min-height: 24px;
}
.pickup-admin label:has(> input[type="checkbox"])::before {
    content: '';
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: #4b5056;
    transition: background 0.2s ease;
    flex-shrink: 0;
}
.pickup-admin label:has(> input[type="checkbox"]:checked)::before {
    background: #ccff00;
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.4);
}
.pickup-admin label:has(> input[type="checkbox"])::after {
    content: '';
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: right 0.2s ease;
    pointer-events: none;
    flex-shrink: 0;
}
.pickup-admin label:has(> input[type="checkbox"]:checked)::after {
    right: 2px;
}
.pickup-admin label:has(> input[type="checkbox"]) input[type="checkbox"] {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 24px;
    margin: 0;
    opacity: 0;
    z-index: 2;
    cursor: pointer;
}

/* Edit player form: same toggle as rest of admin – yellow-green (#ccff00) when checked, glow */
.pickup-edit-player-form .pg-edit-player-group-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    min-height: 24px;
}
.pickup-edit-player-form .pg-edit-player-group-toggle::before {
    content: '';
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: #4b5056;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}
.pickup-edit-player-form .pg-edit-player-group-toggle:has(input:checked)::before {
    background: #ccff00 !important;
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.4), 0 0 16px rgba(204, 255, 0, 0.25) !important;
}
.pickup-edit-player-form .pg-edit-player-group-toggle::after {
    content: '';
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: right 0.2s ease;
    pointer-events: none;
    flex-shrink: 0;
}
.pickup-edit-player-form .pg-edit-player-group-toggle:has(input:checked)::after {
    right: 2px;
}
.pickup-edit-player-form .pg-edit-player-group-toggle input[type="checkbox"] {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 24px;
    margin: 0;
    opacity: 0;
    z-index: 2;
    cursor: pointer;
}

/* שיוך לקבוצות: תיבות סימון ברורות (מרובעות), אפשר כמה */
.pickup-edit-player-form .pg-edit-player-groups-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pickup-edit-player-form .pg-edit-player-group-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
    padding: 6px 0;
}
.pickup-edit-player-form .pg-edit-player-group-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #ccff00;
}
.pickup-edit-player-form .pg-edit-player-group-checkbox .pg-edit-player-group-label {
    flex: 1;
}

/* מודל עריכת שחקן – אותן תיבות סימון ברורות */
#pg-edit-player-modal .pg-edit-player-groups-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#pg-edit-player-modal .pg-edit-player-group-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
    padding: 6px 0;
}
#pg-edit-player-modal .pg-edit-player-group-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #ccff00;
}
#pg-edit-player-modal .pg-edit-player-group-checkbox .pg-edit-player-group-label {
    flex: 1;
}

.pg-admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    direction: rtl;
}

.pg-admin-tab {
    padding: 10px 20px;
    text-decoration: none;
    color: #666;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
}

.pg-admin-tab:hover {
    color: #000;
}

.pg-admin-tab.active {
    background: #2271b1;
    color: white;
}

.pg-admin-section {
    background: white;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    direction: rtl;
    text-align: right;
}

.pg-admin-section h2 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    text-align: right;
}

/* Groups table – copy URL button: neon yellow, black text */
#groups .pg-copy-url-btn {
    background: #ccff00 !important;
    color: #000 !important;
    border-color: #b8e600 !important;
    box-shadow: 0 0 8px rgba(204, 255, 0, 0.6);
}
#groups .pg-copy-url-btn:hover {
    background: #d4ff33 !important;
    color: #000 !important;
    box-shadow: 0 0 12px rgba(204, 255, 0, 0.8);
}

.pg-admin-section h3 {
    text-align: right;
}

.pg-admin-section p,
.pg-admin-section label,
.pg-admin-section th,
.pg-admin-section td {
    text-align: right;
}

.stars-column {
    min-width: 100px;
}

/* Pills - מנהל, בוטל - vertically centered in row */
.pg-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 8px;
    vertical-align: middle;
}

.pg-pill-admin {
    background: #CCFF00;
    color: #000;
}

.pg-pill-cancelled {
    background: #f44336;
    color: #fff;
}

.pg-pill-subscription {
    background: #e3f2fd;
    color: #1565c0;
}

.pg-pill-single-game {
    background: #f3e5f5;
    color: #6a1b9a;
}

.pg-member-name {
    vertical-align: middle;
}

.pg-admin-section table td {
    vertical-align: middle;
}

/* Modal – dark theme, 800px, plus icon as close */
.pg-edit-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    direction: rtl;
    overflow-y: auto;
    padding: 24px 16px;
    box-sizing: border-box;
}

.pg-edit-modal-content {
    background: #1e2128;
    margin: 0 auto 40px;
    padding: 0;
    border: 1px solid #2c3038;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    direction: rtl;
    text-align: right;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.pg-edit-modal-content h2 {
    margin: 0;
    padding: 20px 56px 20px 24px;
    font-size: 20px;
    font-weight: 600;
    color: #e4e6eb;
    border-bottom: 1px solid #2c3038;
}

.pg-edit-modal-content .form-table {
    margin: 0;
    border: none;
}

.pg-edit-modal-content .form-table th,
.pg-edit-modal-content .form-table td {
    padding: 12px 24px;
    border-bottom: 1px solid #2c3038;
    vertical-align: middle;
    color: #e4e6eb;
}

.pg-edit-modal-content .form-table th {
    width: 160px;
    color: #9ca3af;
    font-weight: 500;
}

.pg-edit-modal-content .form-table tr:last-child th,
.pg-edit-modal-content .form-table tr:last-child td {
    border-bottom: none;
}

.pg-edit-modal-content input[type="text"],
.pg-edit-modal-content input[type="email"],
.pg-edit-modal-content input[type="date"],
.pg-edit-modal-content input[type="time"],
.pg-edit-modal-content input[type="number"],
.pg-edit-modal-content input[type="url"],
.pg-edit-modal-content input[type="tel"],
.pg-edit-modal-content select,
.pg-edit-modal-content textarea {
    background: #252830;
    border: 1px solid #2c3038;
    color: #e4e6eb;
    border-radius: 6px;
    padding: 8px 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.pg-edit-modal-content input:focus,
.pg-edit-modal-content select:focus,
.pg-edit-modal-content textarea:focus {
    border-color: #ccff00;
    outline: none;
    box-shadow: 0 0 0 2px rgba(204, 255, 0, 0.2);
}

/* Time inputs: neon yellow icon (clock) */
.pg-edit-modal-content input[type="time"] {
    accent-color: #ccff00;
}
/* WebKit: color the clock icon neon yellow */
.pg-edit-modal-content input[type="time"]::-webkit-calendar-picker-indicator {
    opacity: 0.9;
    filter: invert(0.85) sepia(1) saturate(10) hue-rotate(70deg);
}

.pg-edit-modal-content .description {
    color: #9ca3af;
    font-size: 13px;
    margin-top: 4px;
}

.pg-edit-modal-content .widefat {
    background: #252830;
    border-color: #2c3038;
    color: #e4e6eb;
}

.pg-edit-modal-content .widefat th,
.pg-edit-modal-content .widefat td {
    border-color: #2c3038;
    color: #e4e6eb;
}

/* Override list and form – dark like tables */
.pg-edit-modal-content .pg-overrides-list-wrap,
.pg-edit-modal-content .pg-override-form-wrap {
    background: #252830;
    border: 1px solid #2c3038;
    color: #e4e6eb;
}

.pg-edit-modal-content .pg-overrides-list-wrap .widefat {
    background: #1e2128;
}

/* RTL: titles and text right-aligned */
.pg-edit-modal-content h2,
.pg-edit-modal-content .form-table th,
.pg-edit-modal-content .form-table td,
.pg-edit-modal-content label,
.pg-edit-modal-content p,
.pg-edit-modal-content .description {
    text-align: right;
}

/* Section titles inside modal – separator line */
.pg-edit-modal-content .form-table tr[style*="border-top"] th {
    padding-top: 20px;
    border-top: 1px solid #2c3038 !important;
    color: #e4e6eb;
    font-weight: 600;
}

.pg-edit-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: #252830;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    float: none;
    font-size: inherit;
    font-weight: normal;
}

.pg-edit-modal-close:hover {
    background: #2c3038;
    color: #ccff00;
}

.pg-edit-modal-close .pg-modal-close-icon {
    width: 22px;
    height: 22px;
    transform: rotate(45deg);
    flex-shrink: 0;
}

.pg-edit-modal-content .button,
.pg-edit-modal-content .button-primary {
    margin-left: 8px;
}

.pg-edit-modal-content > form > p,
.pg-edit-modal-content > p {
    padding: 16px 24px;
    border-top: 1px solid #2c3038;
    margin: 0;
}

.pg-edit-modal-content label {
    color: #e4e6eb;
}

/* ========== Dashboard (dark sidebar + cards) ========== */
.pickup-dashboard {
    display: flex;
    gap: 0;
    margin: 0 0 0 -15px;
    min-height: calc(100vh - 32px);
    background: #1e2128;
}
.pickup-dashboard-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #1a1d24;
    border-left: 1px solid #2c3038;
    padding: 24px 0;
    position: sticky;
    top: 0;
    align-self: flex-start;
    min-height: calc(100vh - 32px);
    max-height: 100vh;
    overflow-y: auto;
}
.pickup-sidebar-brand {
    padding: 0 20px 20px;
    font-size: 18px;
    font-weight: 700;
    color: #e4e6eb;
    border-bottom: 1px solid #2c3038;
    margin-bottom: 16px;
}
.pickup-sidebar-brand .pickup-sidebar-logo {
    max-height: 40px;
    object-fit: contain;
    display: block;
}
.pickup-sidebar-nav {
    display: flex;
    flex-direction: column;
}
.pickup-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}
.pickup-nav-item i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.pickup-nav-item:hover {
    background: #252830;
    color: #e4e6eb;
}
.pickup-nav-item.active {
    background: rgba(191, 255, 0, 0.15);
    color: #bfff00;
}
.pickup-nav-item {
    position: relative;
}
.pickup-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 8px;
    height: 17px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #dc3545;
    border-radius: 50%;
    margin-right: auto;
    line-height: 1;
}
.pickup-tab-with-badge {
    position: relative;
}
.pickup-tab-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 8px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #dc3545;
    border-radius: 50%;
    line-height: 1;
}
.pickup-dashboard-main {
    flex: 1;
    padding: 24px 32px 32px;
    background: #1e2128;
    overflow: auto;
}
.pickup-dashboard-main .notice {
    margin: 0 0 20px;
}
/* Unified notification styles (dashboard) */
.pickup-dashboard-main .pickup-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    margin: 0 0 20px;
    direction: rtl;
    text-align: right;
}
.pickup-dashboard-main .pickup-notice-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.pickup-dashboard-main .pickup-notice-content {
    flex: 1;
}
.pickup-dashboard-main .pickup-notice-title {
    display: block;
    font-weight: 600;
    font-size: 15px;
}
.pickup-dashboard-main .pickup-notice-detail {
    display: block;
    font-size: 13px;
    opacity: 0.9;
    margin-top: 4px;
}
.pickup-dashboard-main .pickup-notice-success {
    background: #D4EDDA;
    color: #155724;
}
.pickup-dashboard-main .pickup-notice-success .pickup-notice-icon {
    background: #28a745;
}
.pickup-dashboard-main .pickup-notice-warning {
    background: #FFF3CD;
    color: #856404;
}
.pickup-dashboard-main .pickup-notice-warning .pickup-notice-icon {
    background: #ffc107;
}
.pickup-dashboard-main .pickup-notice-info {
    background: #D1ECF1;
    color: #0C5460;
}
.pickup-dashboard-main .pickup-notice-info .pickup-notice-icon {
    background: #17a2b8;
}
.pickup-dashboard-main .pickup-notice-error {
    background: #F8D7DA;
    color: #721C24;
}
.pickup-dashboard-main .pickup-notice-error .pickup-notice-icon {
    background: #dc3545;
}
/* Floating notifications (JS) */
.pickup-notifications-container {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}
@media (min-width: 600px) {
    .pickup-notifications-container {
        left: auto;
        width: 400px;
        max-width: calc(100% - 40px);
    }
}
.pickup-notification {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    pointer-events: auto;
    direction: rtl;
    text-align: right;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s, transform 0.3s;
}
.pickup-notification-visible {
    opacity: 1;
    transform: translateX(0);
}
.pickup-notification-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.pickup-notification-content { flex: 1; min-width: 0; }
.pickup-notification-title { display: block; font-weight: 600; font-size: 15px; }
.pickup-notification-detail { display: block; font-size: 13px; opacity: 0.9; margin-top: 4px; }
.pickup-notification-close {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    opacity: 0.7;
}
.pickup-notification-close:hover { opacity: 1; }
.pickup-notification-success { background: #D4EDDA; color: #155724; }
.pickup-notification-success .pickup-notification-icon { background: #28a745; }
.pickup-notification-success .pickup-notification-close { color: #155724; }
.pickup-notification-warning { background: #FFF3CD; color: #856404; }
.pickup-notification-warning .pickup-notification-icon { background: #ffc107; }
.pickup-notification-warning .pickup-notification-close { color: #856404; }
.pickup-notification-info { background: #D1ECF1; color: #0C5460; }
.pickup-notification-info .pickup-notification-icon { background: #17a2b8; }
.pickup-notification-info .pickup-notification-close { color: #0C5460; }
.pickup-notification-error { background: #F8D7DA; color: #721C24; }
.pickup-notification-error .pickup-notification-icon { background: #dc3545; }
.pickup-notification-error .pickup-notification-close { color: #721C24; }
.pickup-overview-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin-bottom: 24px;
    box-sizing: border-box;
}
.pickup-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.pickup-overview-header {
    text-align: right;
}
.pickup-dashboard-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: #e4e6eb;
}
.pickup-overview-subtitle {
    margin: 0;
    font-size: 14px;
    color: #9ca3af;
}
.pickup-quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #bfff00;
    color: #1a1d24;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.pickup-quick-action-btn:hover {
    background: #d4ff33;
    color: #1a1d24;
    transform: translateY(-1px);
}
.pickup-quick-action-btn i {
    width: 18px;
    height: 18px;
}
.pickup-btn-add {
    background: #bfff00;
    color: #1a1d24;
}
.pickup-btn-add:hover {
    background: #d4ff33;
    color: #1a1d24;
}
.pickup-btn-secondary,
.pickup-quick-action-secondary {
    background: #363b45;
    color: #e4e6eb;
}
.pickup-btn-secondary:hover,
.pickup-quick-action-secondary:hover {
    background: #4a505a;
    color: #fff;
}
.pickup-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    flex: 0 0 auto;
}
.pickup-section-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #e4e6eb;
}
.pickup-overview-section {
    margin-bottom: 28px;
}
.pickup-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.pickup-section-link {
    font-size: 13px;
    color: #bfff00;
    text-decoration: none;
}
.pickup-section-link:hover {
    text-decoration: underline;
    color: #d4ff33;
}
.pickup-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 900px) {
    .pickup-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .pickup-stats-grid { grid-template-columns: 1fr; }
}
.pickup-stat-card {
    background: #2c3038;
    border: 1px solid #363b45;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.pickup-stat-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, background 0.2s;
}
.pickup-stat-card-link:hover {
    border-color: #bfff00;
    background: #333840;
}
.pickup-stat-icon {
    width: 28px;
    height: 28px;
    color: #bfff00;
    margin-bottom: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.pickup-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #e4e6eb;
    text-align: center;
}
.pickup-stat-label {
    font-size: 13px;
    color: #9ca3af;
}
.pickup-overview-games {
    background: #2c3038;
    border: 1px solid #363b45;
    border-radius: 12px;
    padding: 16px;
}
.pickup-card-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pickup-card-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #363b45;
    color: #e4e6eb;
    gap: 16px;
}
.pickup-card-item:last-child { border-bottom: 0; }
.pickup-card-item-cancelled { opacity: 0.7; }
.pickup-card-item-group .pickup-card-item-body { flex-direction: row; align-items: center; gap: 12px; }
.pickup-card-group-logo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.pickup-card-item-actions { display: flex; gap: 8px; }
.pickup-overview-empty {
    text-align: center;
    padding: 32px 16px;
    color: #9ca3af;
}
.pickup-overview-empty i {
    width: 48px;
    height: 48px;
    display: block;
    margin: 0 auto 12px;
    color: #6b7280;
}
.pickup-overview-empty p { margin: 0 0 16px; }
.pickup-card-item-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pickup-card-item-body strong { font-size: 15px; }
.pickup-card-meta { font-size: 12px; color: #9ca3af; }
.pickup-empty-text { margin: 0; color: #9ca3af; }
.pickup-dashboard-main .pg-admin-section {
    background: #2c3038;
    border: 1px solid #363b45;
    border-radius: 12px;
    color: #e4e6eb;
}
.pickup-dashboard-main .pg-admin-section h2,
.pickup-dashboard-main .pg-admin-section h3 {
    color: #e4e6eb;
    border-color: #363b45;
}
.pickup-dashboard-main .pg-admin-section p,
.pickup-dashboard-main .pg-admin-section label,
.pickup-dashboard-main .pg-admin-section th,
.pickup-dashboard-main .pg-admin-section td {
    color: #d1d5db;
}
.pickup-dashboard-main .widefat {
    background: #1e2128;
    border-color: #363b45;
    color: #e4e6eb;
}
.pickup-dashboard-main .widefat thead th {
    background: #1a1d24;
    color: #9ca3af;
    border-color: #363b45;
}
.pickup-dashboard-main .widefat tbody tr {
    background: #252830;
}
.pickup-dashboard-main .widefat.striped tbody tr:nth-child(odd) {
    background: #1e2128;
}
.pickup-dashboard-main .widefat.striped tbody tr:nth-child(even) {
    background: #252830;
}
.pickup-dashboard-main .widefat td,
.pickup-dashboard-main .widefat th {
    border-color: #363b45;
}
/* טור פעולות צמוד לשמאל – כפתורי ערוך ומחק באותו גובה */
.pickup-dashboard-main .widefat th.pickup-col-actions,
.pickup-dashboard-main .widefat td.pickup-col-actions {
    text-align: left;
}
.pickup-dashboard-main .widefat td.pickup-col-actions,
.pickup-dashboard-main .widefat td.pickup-actions-cell {
    vertical-align: middle;
}
.pickup-dashboard-main .widefat td.pickup-col-actions .button,
.pickup-dashboard-main .widefat td.pickup-col-actions a.button,
.pickup-dashboard-main .widefat td.pickup-actions-cell .button,
.pickup-dashboard-main .widefat td.pickup-actions-cell a.button {
    vertical-align: middle;
    margin-bottom: 0;
}
.pickup-dashboard-main .widefat td.pickup-col-actions form,
.pickup-dashboard-main .widefat td.pickup-actions-cell form {
    display: inline;
    vertical-align: middle;
}
.pickup-dashboard-main .widefat .pg-toggle-btn,
.pickup-facility-toggle.pg-toggle-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ccff00;
    background: #3e4044;
    border: none;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    vertical-align: middle;
    box-shadow: 0 0 0 1px rgba(204, 255, 0, 0.1);
}
.pickup-dashboard-main .widefat .pg-toggle-btn:hover,
.pickup-facility-toggle.pg-toggle-btn:hover {
    background: #4b5056;
}
.pickup-dashboard-main .widefat .pg-toggle-btn .pg-toggle-icon,
.pickup-facility-toggle.pg-toggle-btn .pg-toggle-icon {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.pickup-dashboard-main .widefat .pg-toggle-btn.pg-toggle-expanded .pg-toggle-icon,
.pickup-facility-toggle.pg-toggle-btn.pg-toggle-expanded .pg-toggle-icon {
    transform: rotate(45deg);
}

.pg-group-logo-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.pg-group-logo-display.pg-logo-clickable {
    cursor: pointer;
}
.pg-group-logo-display {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #252830;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pg-player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    vertical-align: middle;
}
.pg-player-initial {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1a1d25;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    line-height: 1;
    text-transform: uppercase;
    vertical-align: middle;
}
.pg-name-with-avatar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    vertical-align: middle;
}
.pickup-admin .widefat td {
    vertical-align: middle;
    padding-top: 8px;
    padding-bottom: 8px;
}
.pickup-admin .widefat td .pg-pill {
    vertical-align: middle;
}
.pg-group-logo-display.pg-no-img .pg-group-logo-admin,
.pg-group-logo-display .pg-group-logo-admin { display: block; }
.pg-group-logo-display.pg-no-img .pg-group-logo-admin { display: none; }
.pg-group-logo-placeholder {
    font-size: 12px;
    color: #666;
}
.pg-group-logo-admin {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pg-group-logo-edit { margin-right: 4px; }
.pg-members-expanded { padding: 16px 24px !important; }
.pg-members-expanded .pg-members-table {
    background: #1e2128;
    border-color: #363b45;
    color: #e4e6eb;
}
.pg-members-expanded .pg-members-table th,
.pg-members-expanded .pg-members-table td {
    border-color: #363b45;
    color: #e4e6eb;
}
.pg-members-expanded .pg-members-table th { background: #1a1d24; color: #9ca3af; }
.pg-members-expanded .pg-members-table .pg-member-name { text-align: right; }
.pg-members-expanded .pg-members-table .pg-member-phone { text-align: left; }
.pickup-dashboard-main .button-primary {
    background: #bfff00;
    border-color: #bfff00;
    color: #1a1d24;
}
.pickup-dashboard-main .button-primary:hover {
    background: #bfff00;
    border-color: #bfff00;
    color: #1a1d24;
}
.pickup-dashboard-main .button:not(.button-primary) {
    background: #363b45;
    border-color: #4b5563;
    color: #e4e6eb;
}
.pickup-dashboard-main .button:hover:not(.button-primary) {
    background: #4b5563;
}
.pickup-dashboard-main input[type="text"],
.pickup-dashboard-main input[type="email"],
.pickup-dashboard-main input[type="date"],
.pickup-dashboard-main input[type="time"],
.pickup-dashboard-main input[type="number"],
.pickup-dashboard-main input[type="url"],
.pickup-dashboard-main select,
.pickup-dashboard-main textarea {
    background: #252830;
    border-color: #363b45;
    color: #e4e6eb;
}
.pickup-dashboard-main .description,
.pickup-dashboard-main .form-table .description {
    color: #9ca3af;
}

/* Settings page - collapsible sections */
.pickup-settings-section {
    margin-bottom: 24px;
    border: 1px solid #363b45;
    border-radius: 12px;
    overflow: hidden;
}
.pickup-settings-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 14px 18px;
    background: #252830;
    cursor: pointer;
    font-size: 16px;
    color: #e4e6eb;
    border: none;
    width: 100%;
    text-align: right;
}
.pickup-settings-section-title:hover {
    background: #2c3038;
}
.pickup-settings-toggle {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3e4044;
    border: none;
    border-radius: 8px;
    color: #ccff00;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(204, 255, 0, 0.1);
}
.pickup-settings-toggle:hover {
    background: #4b5056;
}
.pickup-settings-section-content {
    padding: 20px 24px;
    background: #1e2128;
    border-top: 1px solid #363b45;
    max-height: 9999px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}
/* Groups – create group form: inputs full width */
#groups .pickup-settings-section-content .form-table input[type="text"],
#groups .pickup-settings-section-content .form-table input[type="url"],
#groups .pickup-settings-section-content .form-table input[type="email"],
#groups .pickup-settings-section-content .form-table input[type="number"],
#groups .pickup-settings-section-content .form-table select,
#groups .pickup-settings-section-content .form-table textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.pickup-settings-section.collapsed .pickup-settings-section-content {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}
.pickup-settings-section.collapsed .pickup-settings-toggle .pg-toggle-icon {
    transform: rotate(0deg);
}
.pickup-settings-section:not(.collapsed) .pickup-settings-toggle .pg-toggle-icon {
    transform: rotate(45deg);
}
.pickup-settings-toggle .pg-toggle-icon {
    width: 18px;
    height: 18px;
    display: block;
    transition: transform 0.3s ease;
}

/* ניהול מנהלים – תיבות כהה כמו שאר ההגדרות */
.pickup-admin-input-dark,
input.pickup-admin-input-dark,
#pickup-admin-groups-list.pickup-admin-input-dark {
    background: #1e2128 !important;
    border-color: #363b45 !important;
    color: #e4e6eb !important;
}
.pickup-admin-input-dark::placeholder {
    color: #9ca3af;
}
#pickup-admin-groups-list.pickup-admin-input-dark label {
    color: #e4e6eb;
}

/* Dashboard Overview (REST-driven) */
.pickup-dashboard-overview-wrap {
    min-height: 300px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}
.pickup-overview.pickup-overview-new {
    width: 100%;
    box-sizing: border-box;
}
.pickup-dashboard-overview-wrap.pickup-overview-loading::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26,29,36,0.85);
    border-radius: 12px;
    z-index: 9;
}
.pickup-dashboard-overview-wrap.pickup-overview-loading::after {
    content: 'טוען...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #bfff00;
    font-size: 16px;
    z-index: 10;
}
.pickup-dashboard-overview-wrap.pickup-overview-loading .pickup-overview-skeleton {
    display: block;
}
.pickup-overview-error {
    padding: 24px;
    background: rgba(220,53,69,0.15);
    border: 1px solid rgba(220,53,69,0.4);
    border-radius: 12px;
    color: #f8d7da;
}
.pickup-overview-error p { margin: 0 0 8px; }
.pickup-overview-error-detail {
    font-size: 13px;
    font-family: ui-monospace, monospace;
    opacity: 0.95;
    margin: 12px 0 16px !important;
    word-break: break-word;
    white-space: pre-wrap;
}
.pickup-overview-retry { margin-top: 8px; }
.pickup-overview-skeleton {
    display: none;
}
.pickup-overview-skeleton .pickup-skeleton-header {
    height: 40px;
    background: linear-gradient(90deg, transparent, rgba(191,255,0,0.1), transparent);
    background-size: 200% 100%;
    animation: pickup-skeleton-shimmer 1.5s infinite;
    border-radius: 8px;
    margin-bottom: 24px;
    max-width: 300px;
}
.pickup-overview-skeleton .pickup-skeleton-kpi {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.pickup-overview-skeleton .pickup-skeleton-kpi span {
    flex: 1;
    min-width: 140px;
    height: 80px;
    background: linear-gradient(90deg, transparent, rgba(191,255,0,0.08), transparent);
    background-size: 200% 100%;
    animation: pickup-skeleton-shimmer 1.5s infinite;
    border-radius: 12px;
}
@keyframes pickup-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.pickup-overview-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 24px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    border: 1px solid #363b45;
}
.pickup-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pickup-filter-group label {
    font-size: 13px;
    color: #9ca3af;
}
.pickup-filter-group:not(.pickup-filter-demo) { flex: 1; min-width: 140px; }
.pickup-filter-group select {
    width: 100%;
    min-width: 140px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #252830;
    border: 1px solid #363b45;
    color: #e4e6eb;
}
.pickup-filter-demo label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #e4e6eb;
}
.pickup-chart-wrap { width: 100%; max-width: 100%; margin-bottom: 16px; }
.pickup-overview-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 900px) {
    .pickup-overview-row { grid-template-columns: 1fr; }
}
.pickup-by-day-list,
.pickup-by-sport-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pickup-by-day-list li,
.pickup-by-sport-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #363b45;
}
.pickup-by-day-date {
    min-width: 90px;
    font-size: 14px;
}
.pickup-by-day-bar {
    flex: 1;
    max-width: 120px;
    height: 8px;
    background: #bfff00;
    border-radius: 4px;
    opacity: 0.7;
}
.pickup-by-day-count,
.pickup-by-sport-count {
    font-weight: 600;
    color: #bfff00;
}
.pickup-by-sport-name { flex: 1; }
.pickup-overview-empty-msg {
    color: #9ca3af;
    padding: 24px;
    margin: 0;
}
.pickup-kpi-grid .pickup-stat-card {
    transition: transform 0.2s, box-shadow 0.2s;
}
.pickup-kpi-grid .pickup-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.pickup-stat-stagger {
    opacity: 0;
    animation: pickup-stat-fade-in 0.4s ease forwards;
}
@media (prefers-reduced-motion: reduce) {
    .pickup-kpi-grid .pickup-stat-card:hover {
        transform: none;
    }
    .pickup-stat-stagger {
        animation: none;
        opacity: 1;
    }
}
@keyframes pickup-stat-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Settings accordion inside expanded rows */
.pg-settings-accordion {
    border: 1px solid var(--pg-border, #333);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
}
.pg-settings-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #e4e6eb;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.pg-settings-toggle:hover {
    background: rgba(255,255,255,0.04);
}
.pg-settings-toggle i[data-lucide="settings"] {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}
.pg-settings-chevron {
    width: 16px;
    height: 16px;
    margin-right: auto;
    opacity: 0.5;
    transition: transform 0.2s;
}
.pg-settings-accordion.open .pg-settings-chevron {
    transform: rotate(180deg);
}
.pg-settings-body {
    padding: 0 16px 16px;
}

/* Q&A answer cell: toolbar + textarea (WYSIWYG-like, 3 rows) */
.pg-qa-a-cell {
    vertical-align: top;
}
.pg-qa-a-toolbar {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.pg-qa-a-toolbar .button {
    min-width: 28px;
    padding: 2px 8px;
    font-weight: bold;
    font-size: 12px;
}
.pg-qa-a-cell textarea.pg-qa-a {
    min-height: 4.5em;
    resize: vertical;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.pickup-admin .pg-qa-a-cell textarea.pg-qa-a {
    direction: rtl;
    text-align: right;
}
.pg-sortable-placeholder {
    height: 42px;
    background: rgba(33, 150, 243, 0.15) !important;
    border: 2px dashed rgba(33, 150, 243, 0.5);
}
.pg-drag-handle:hover {
    color: #2196f3 !important;
}
.pg-waitlist-sortable tr.ui-sortable-helper {
    background: #1e1e1e;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.pg-waitlist-save-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
