/* Branch Games Manager - Public Styles */

/* General Styles */
.bgm-public {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* QR Code Display */
.bgm-qr-code-section {
    text-align: center;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
}

.bgm-qr-code-image {
    display: inline-block;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bgm-qr-code-image img {
    max-width: 300px;
    height: auto;
}


/* Attendance Calendar */
.bgm-attendance-calendar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.bgm-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.bgm-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.bgm-calendar-day {
    padding: 15px;
    text-align: center;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    position: relative;
}

.bgm-calendar-day.attended {
    background: #d4edda;
    border-color: #c3e6cb;
}

.bgm-calendar-day.missed {
    background: #f8d7da;
    border-color: #f5c6cb;
}

.bgm-calendar-day.today {
    font-weight: bold;
    border-width: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .bgm-calendar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Branch Games Manager - New Order Modal */
.bgm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    /* Hidden by default */
    display: none;
    justify-content: center;
    align-items: center;
}

.bgm-modal-overlay.active {
    display: flex;
}

.bgm-modal {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.bgm-modal h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3em;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.bgm-modal label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.bgm-modal select, 
.bgm-modal input[type="text"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.bgm-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Status Badge in Table */
.bgm-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

/* Branch Manager Table Scroll */
.bgm-table-scroll {
    overflow-x: auto;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 20px;
}

.bgm-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.bgm-table th, 
.bgm-table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.bgm-table th {
    background: #f9f9f9;
    font-weight: bold;
    color: #555;
}

.bgm-table tr:last-child td {
    border-bottom: none;
}

.bgm-no-data {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #777;
    margin-bottom: 20px;
}
