.pbm-summary-card.pbm-card-orange {
    background: linear-gradient(135deg, #ff9800, #ffc107);
    color: #fff3e0;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.2);
}

/* Pickle Ball Manager Frontend Styles */
.pbm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Improve overall text readability */
.pbm-container * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Force proper font inheritance */
.pbm-container select,
.pbm-container option,
.pbm-container input,
.pbm-container button {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Tab Navigation */
.pbm-tab-nav {
    display: flex;
    border-bottom: 2px solid #e1e5e9;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.pbm-tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 160px;
}

.pbm-tab-btn:hover {
    color: #46b450;
    background-color: #f8f9fa;
}

.pbm-tab-btn.active {
    color: #46b450;
    border-bottom-color: #46b450;
    background-color: #f8fff9;
}

/* Tab Content */
.pbm-tab-content {
    min-height: 400px;
}

.pbm-tab-pane {
    display: none;
}

.pbm-tab-pane.active {
    display: block;
}

/* Forms */
.pbm-form {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pbm-form-group {
    margin-bottom: 20px;
}

.pbm-form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
    color: #2c3e50;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pbm-form-group select,
.pbm-form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ced4da;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    background-color: #fff;
    color: #333;
    min-height: 50px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.pbm-form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 15px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 50px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-family: inherit !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.pbm-form-group input {
    font-family: inherit;
}

.pbm-form-group select option {
    padding: 12px 15px;
    font-size: 16px;
    font-weight: 500;
    color: #333 !important;
    background-color: #fff !important;
    line-height: 1.5;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: visible;
    font-family: inherit;
}

.pbm-form-group select option:hover,
.pbm-form-group select option:focus {
    background-color: #46b450;
    color: #fff;
}

.pbm-form-group select option:disabled {
    color: #999;
    background-color: #f5f5f5;
}

/* Placeholder styling */
.pbm-form-group select:invalid,
.pbm-form-group select.placeholder-active {
    color: #999 !important;
    font-style: italic;
}

.pbm-form-group select option:first-child {
    color: #999 !important;
    font-style: italic;
}

.pbm-form-group select:valid:not(.placeholder-active) {
    color: #333 !important;
    font-style: normal;
}

/* Fix for dropdown text display */
.pbm-form-group select {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 50px !important;
    text-indent: 0 !important;
    text-align: left !important;
}

/* Ensure dropdown opens properly */
.pbm-form-group select:focus {
    z-index: 1000;
}

/* Fix for browsers that hide select text */
.pbm-form-group select {
    text-align-last: left;
    direction: ltr;
}

/* Specific fixes for different browsers */
@-moz-document url-prefix() {
    .pbm-form-group select {
        text-indent: 0.01px;
        text-overflow: '';
    }
}

/* Webkit specific fixes */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    .pbm-form-group select {
        background-position: right 15px center, right 15px center;
    }
}

/* Additional dropdown styling */
.pbm-form-group select optgroup {
    font-weight: bold;
    color: #333;
}

.pbm-form-group select::-ms-expand {
    display: none;
}

/* Complete reset for select elements */
.pbm-form-group select {
    background-color: #fff !important;
    color: #333 !important;
    border: 2px solid #ced4da !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: normal !important;
    vertical-align: baseline !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    font-variant: normal !important;
    text-transform: none !important;
}

/* Ensure text is visible in all browsers */
.pbm-form-group select,
.pbm-form-group select * {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.pbm-form-group select option {
    display: block !important;
    visibility: visible !important;
    color: #333 !important;
    background-color: #fff !important;
    padding: 8px 12px !important;
}

.pbm-form-group select:focus,
.pbm-form-group input:focus {
    outline: none;
    border-color: #46b450;
    box-shadow: 0 0 0 4px rgba(70, 180, 80, 0.15);
    background-color: #f8fff9;
    transform: translateY(-1px);
}

.pbm-form-group select:hover,
.pbm-form-group input:hover {
    border-color: #46b450;
    background-color: #fafafa;
}

/* Teams Container */
.pbm-teams-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
    margin: 30px 0;
}

.pbm-team {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px 20px;
    transition: all 0.3s ease;
    min-height: 200px;
}

.pbm-team:hover {
    border-color: #46b450;
    box-shadow: 0 4px 12px rgba(70, 180, 80, 0.1);
}

.pbm-team h4 {
    text-align: center;
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    border-bottom: 2px solid #46b450;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.pbm-vs {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    transform: scale(1);
    transition: all 0.3s ease;
}

.pbm-vs:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Buttons */
.pbm-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 140px;
    min-height: 50px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pbm-btn-primary {
    background: linear-gradient(135deg, #46b450, #5cbf60);
    color: white;
}

.pbm-btn-primary:hover {
    background: linear-gradient(135deg, #3ea347, #46b450);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(70, 180, 80, 0.3);
}

.pbm-btn-secondary {
    background: linear-gradient(135deg, #6c757d, #868e96);
    color: white;
}

.pbm-btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #6c757d);
    transform: translateY(-2px);
}

.pbm-btn-success {
    background: linear-gradient(135deg, #28a745, #34ce57);
    color: white;
}

.pbm-btn-success:hover {
    background: linear-gradient(135deg, #218838, #28a745);
    transform: translateY(-2px);
}

.pbm-btn-danger {
    background: linear-gradient(135deg, #dc3545, #e4606d);
    color: white;
}

.pbm-btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    transform: translateY(-2px);
}

/* Stats section button styling */
.pbm-stats-section .pbm-form-group:last-of-type {
    margin-top: 20px;
    text-align: center;
}

.pbm-stats-section .pbm-form-group button {
    margin-top: 10px;
}

.pbm-form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

/* Match List */
#matches-list-container {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
}

#matches-list-container h4 {
    margin-bottom: 20px;
    color: #495057;
}

.pbm-match-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.pbm-match-item:hover {
    border-color: #46b450;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pbm-match-teams {
    flex: 1;
}

.pbm-match-team {
    display: inline-block;
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    margin: 0 10px;
    border: 1px solid #dee2e6;
    font-weight: 500;
}

.pbm-match-actions {
    display: flex;
    gap: 10px;
}

.pbm-match-result {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    color: white;
}

.pbm-match-result.team-a-win {
    background: linear-gradient(135deg, #46b450, #5cbf60);
}

.pbm-match-result.team-b-win {
    background: linear-gradient(135deg, #007bff, #339aff);
}

/* Winner team styling */
.pbm-match-team.winner-team {
    border: 3px solid #28a745;
    border-radius: 12px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    font-weight: 700;
    position: relative;
    animation: winnerGlow 1.5s ease-in-out infinite alternate;
}

.winner-icon {
    font-size: 18px;
    margin-left: 8px;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes winnerGlow {
    0% {
        box-shadow: 0 0 5px rgba(40, 167, 69, 0.3);
    }

    100% {
        box-shadow: 0 0 20px rgba(40, 167, 69, 0.6);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-3px);
    }

    60% {
        transform: translateY(-2px);
    }
}

/* Statistics */
.pbm-stats-section {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.pbm-stats-section h4 {
    margin-bottom: 20px;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.pbm-date-range {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 20px;
    align-items: end;
}

.pbm-button-group {
    margin-bottom: 0;
}

.pbm-button-group label {
    visibility: hidden;
    margin-bottom: 12px;
}

.pbm-stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.pbm-stats-table th,
.pbm-stats-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.pbm-stats-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.pbm-stats-table tr:hover {
    background: #f8f9fa;
}

.pbm-money-amount {
    font-weight: bold;
    color: #dc3545;
}

/* Hall of Fame */
.pbm-hall-of-fame {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
}

.pbm-hall-of-fame h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.pbm-podium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.pbm-podium-place {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pbm-podium-place::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.pbm-podium-place:hover::before {
    transform: translateX(100%);
}

.pbm-podium-place:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.pbm-place-1 {
    order: 2;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    transform: scale(1.05);
}

.pbm-place-2 {
    order: 1;
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #333;
}

.pbm-place-3 {
    order: 3;
    background: linear-gradient(135deg, #cd7f32, #daa520);
    color: white;
}

.pbm-rank {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.pbm-player-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.pbm-player-stats {
    font-size: 14px;
    opacity: 0.9;
}

.pbm-player-stats div {
    margin-bottom: 5px;
}

/* Monthly Summary */
.pbm-monthly-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.pbm-summary-card {
    background: linear-gradient(135deg, #46b450, #5cbf60);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(70, 180, 80, 0.3);
    transition: all 0.3s ease;
}

.pbm-summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(70, 180, 80, 0.4);
}

.pbm-summary-card.pbm-balance-card {
    background: linear-gradient(135deg, #28a745, #34ce57);
    border: 3px solid #20c997;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    position: relative;
    overflow: hidden;
}

.pbm-summary-card.pbm-balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%);
    }

    100% {
        transform: translateX(100%) translateY(100%);
    }
}

.pbm-summary-card h4 {
    margin-bottom: 15px;
    font-size: 16px;
    opacity: 0.9;
}

.pbm-summary-value {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

.pbm-summary-label {
    font-size: 12px;
    opacity: 0.8;
}

/* Frontend expenses */
.pbm-expense-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 10px;
}

.pbm-expense-main {
    flex: 1;
}

.pbm-expense-title {
    color: #2c3e50;
    margin-bottom: 4px;
}

.pbm-expense-date {
    color: #6c757d;
    font-size: 12px;
}

.pbm-expense-amount {
    color: #d63384;
    font-weight: 700;
    min-width: 120px;
    text-align: right;
}

.pbm-fin-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e9ecef;
}

.pbm-fin-row span {
    color: #495057;
}

.pbm-fin-row strong {
    color: #212529;
}

.pbm-fin-total {
    border-bottom: 2px solid #46b450;
    font-weight: 700;
}

/* Loading */
.pbm-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
}

.pbm-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #46b450;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Messages */
.pbm-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.pbm-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
}

.pbm-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pbm-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* No Data */
.pbm-no-data {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px 20px;
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pbm-container {
        padding: 15px;
    }

    .pbm-tab-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pbm-tab-btn {
        flex: 1;
        text-align: center;
        padding: 15px 10px;
        font-size: 14px;
        min-width: 100px;
        white-space: nowrap;
    }

    .pbm-form-group select,
    .pbm-form-group input {
        font-size: 18px;
        padding: 18px 25px;
        min-height: 60px;
        background-size: 24px;
        padding-right: 60px;
    }

    .pbm-form-group select option {
        font-size: 18px;
        padding: 15px 20px;
    }

    .pbm-form-group label {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .pbm-team h4 {
        font-size: 24px;
    }

    .pbm-vs {
        font-size: 28px;
        width: 70px;
        height: 70px;
    }

    .pbm-btn {
        padding: 18px 35px;
        font-size: 18px;
        min-width: 160px;
        min-height: 60px;
    }

    .pbm-teams-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pbm-vs {
        order: 2;
        font-size: 20px;
    }

    .pbm-team:first-child {
        order: 1;
    }

    .pbm-team:last-child {
        order: 3;
    }

    .pbm-form-actions {
        flex-direction: column;
    }

    .pbm-date-range {
        grid-template-columns: 1fr;
        gap: 15px;
        align-items: stretch;
    }

    .pbm-button-group {
        margin-top: 0;
    }

    .pbm-button-group label {
        display: none;
    }

    .pbm-match-item {
        flex-direction: column;
        gap: 15px;
    }

    .pbm-match-actions {
        width: 100%;
        justify-content: center;
    }

    .pbm-podium {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .pbm-podium-place {
        order: unset !important;
        transform: none !important;
    }

    .pbm-monthly-summary {
        grid-template-columns: 1fr;
    }

    .pbm-stats-table {
        font-size: 14px;
    }

    .pbm-stats-table th,
    .pbm-stats-table td {
        padding: 8px 10px;
    }
}

/* Print Styles */
@media print {

    .pbm-tab-nav,
    .pbm-form,
    .pbm-btn,
    .pbm-loading {
        display: none !important;
    }

    .pbm-tab-pane {
        display: block !important;
    }
}

/* Mobile Responsive Fixes */
@media (max-width: 600px) {
    .pbm-container {
        padding: 8px;
        max-width: 100vw;
        min-width: 0;
    }

    .pbm-tab-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0;
    }

    .pbm-tab-btn {
        flex: 1;
        min-width: 90px;
        font-size: 12px;
        padding: 12px 5px;
        white-space: nowrap;
    }

    .pbm-form {
        padding: 10px;
        box-shadow: none;
        border-radius: 4px;
    }

    .pbm-monthly-summary {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .pbm-podium {
        grid-template-columns: 1fr;
        gap: 10px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .pbm-podium-place {
        margin-bottom: 10px;
        min-width: 0;
    }

    .pbm-stats-table {
        font-size: 13px;
        overflow-x: auto;
        display: block;
        width: 100%;
    }

    .pbm-stats-table th,
    .pbm-stats-table td {
        padding: 6px 6px;
        white-space: nowrap;
    }

    .pbm-teams-container {
        flex-direction: column;
        gap: 10px;
    }

    .pbm-team {
        min-width: 0;
        width: 100%;
    }

    .pbm-form-group select,
    .pbm-form-group input {
        min-height: 40px;
        font-size: 15px;
        padding: 10px 12px;
    }

    /* Stats section button styling */
    .pbm-stats-section .pbm-form-group:last-of-type {
        margin-top: 15px;
        text-align: center;
    }

    .pbm-summary-card {
        min-width: 0;
        width: 100%;
        margin-bottom: 10px;
    }

    .pbm-admin-card {
        padding: 10px !important;
    }

    .pbm-settings-info {
        padding: 8px !important;
        font-size: 13px !important;
    }
}

/* Attendance Section Styles */
.pbm-attendance-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.pbm-attendance-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.pbm-btn-small {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #007cba;
    background: #007cba;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 100px;
}

.pbm-btn-small:hover {
    background: #005a87;
    border-color: #005a87;
}

.pbm-attendance-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding: 8px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.pbm-attendance-item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    min-height: 36px;
}

.pbm-attendance-item:hover {
    background: #e9ecef;
    border-color: #007cba;
}

.pbm-attendance-item input[type="checkbox"] {
    margin-right: 6px;
    transform: scale(0.9);
}

.pbm-attendance-name {
    display: flex;
    align-items: center;
    flex: 1;
    font-weight: 500;
    font-size: 12px;
    line-height: 1.3;
}

.pbm-attendance-rating {
    margin-left: 4px;
    color: #6c757d;
    font-size: 10px;
    font-weight: normal;
}

/* Responsive adjustments for attendance */
@media (max-width: 768px) {
    .pbm-attendance-container {
        padding: 12px;
    }
    
    .pbm-attendance-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 6px;
        max-height: 180px;
        padding: 6px;
    }
    
    .pbm-attendance-item {
        padding: 5px 6px;
        font-size: 12px;
        min-height: 32px;
    }
    
    .pbm-attendance-name {
        font-size: 11px;
    }
    
    .pbm-attendance-rating {
        font-size: 9px;
    }
    
    .pbm-attendance-controls {
        justify-content: center;
        gap: 6px;
    }
    
    .pbm-btn-small {
        padding: 5px 10px;
        font-size: 12px;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .pbm-attendance-list {
        grid-template-columns: 1fr;
        max-height: 150px;
    }
    
    .pbm-attendance-item {
        padding: 4px 6px;
        min-height: 28px;
    }
    
    .pbm-attendance-name {
        font-size: 10px;
    }
    
    .pbm-attendance-rating {
        font-size: 8px;
    }
}