/**
 * FILE NAME: kms-bc-style.css
 * PURPOSE: Premium high-vibrancy full-screen native mobile application design specification sheet.
 * VERSION: 1.4.0
 */

/* Force Ultimate Structural Application Canvas Reset overrides */
.kmsbc-app-shell {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #0f172a !important; /* Premium Midnight Dark Mode */
    color: #f8fafc !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 999999 !important;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Roboto, Helvetica, Arial, sans-serif;
    padding: env(safe-area-inset-top, 20px) 16px env(safe-area-inset-bottom, 20px) 16px;
}

.kmsbc-app-shell *, .kmsbc-app-shell *::before, .kmsbc-app-shell *::after {
    box-sizing: inherit;
}

/* Hide web scrollbars */
.kmsbc-app-shell::-webkit-scrollbar {
    display: none;
}

.kmsbc-screen-canvas {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    padding-bottom: 40px;
}

.kmsbc-app-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

.kmsbc-stadium-arena-card {
    background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
    border: 2px solid #10b981;
}

.kmsbc-app-header-nav-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.kmsbc-app-live-session-date-tag {
    background: #3b82f6;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 30px;
}

.kmsbc-active-recall-notification-banner {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.kmsbc-app-branding {
    text-align: center;
    margin-bottom: 24px;
}

.kmsbc-app-branding-logo {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3b82f6;
}

.kmsbc-app-title {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(to right, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.kmsbc-setup-selection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}

.kmsbc-checkbox-custom-label {
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kmsbc-interactive-checkbox-tile {
    display: flex;
    align-items: center;
    padding: 16px 14px;
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: 12px;
    cursor: pointer;
}

.kmsbc-interactive-checkbox-tile.tile-is-checked {
    background: rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

.kmsbc-stadium-court-slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.kmsbc-court-position-slot {
    height: 85px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 12px;
    text-align: center;
}

.position-slot-empty {
    border: 2px dashed rgba(16, 185, 129, 0.4);
}

.position-slot-occupied {
    background: #10b981;
    color: #ffffff;
    font-weight: 800;
}

.kmsbc-app-shuttle-stepper-panel-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    background: rgba(0, 0, 0, 0.25);
    padding: 14px 16px;
    border-radius: 12px;
}

.kmsbc-native-stepper-input-block {
    display: flex;
    align-items: center;
    background: #1e293b;
    border-radius: 10px;
    overflow: hidden;
}

.kmsbc-stepper-btn-node {
    background: #334155;
    border: none;
    width: 46px;
    height: 42px;
    color: #ffffff;
    font-size: 22px;
}

.kmsbc-btn-action {
    display: block;
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    font-weight: 800;
    text-align: center;
    border: none;
    cursor: pointer;
}

.kmsbc-btn-action-primary { background: #3b82f6; color: #ffffff; }
.kmsbc-btn-action-success { background: #10b981; color: #ffffff; }
.kmsbc-btn-action-danger { background: #ef4444; color: #ffffff; }
.kmsbc-btn-action-whatsapp { background: #25d366; color: #ffffff; }
.kmsbc-btn-action-primary-outline {
    background: transparent;
    border: 2px solid #3b82f6;
    color: #3b82f6;
}

/* Master Roster Management Styles */
.kmsbc-card-section-title {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.kmsbc-roster-add-inline-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.kmsbc-app-input {
    flex: 1;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 12px 14px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
}

.kmsbc-app-input:focus {
    border-color: #3b82f6;
}

.kmsbc-btn-action-success-small {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 0 16px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

#master-roster-edit-container {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
}

#master-roster-edit-container::-webkit-scrollbar {
    width: 4px;
}

#master-roster-edit-container::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.kmsbc-roster-edit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.kmsbc-roster-edit-row span {
    font-weight: 600;
    font-size: 15px;
    color: #ffffff;
}

.kmsbc-btn-mini-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.kmsbc-btn-mini-delete:hover {
    background: #ef4444;
    color: #ffffff;
}

.kmsbc-btn-nav-text {
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.kmsbc-btn-nav-text:hover {
    border-color: #475569;
    color: #cbd5e1;
}

.kmsbc-status-badge-indicator {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 22px;
}

.kmsbc-active-bench-selection-matrix-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.kmsbc-bench-interactive-pill-node {
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: 10px;
    padding: 14px 6px;
    text-align: center;
    color: #ffffff;
    font-weight: 700;
}

.pill-node-is-active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #60a5fa;
}

.kmsbc-loader-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.kmsbc-app-spinner {
    width: 50px; height: 50px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.kmsbc-modal-mask-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.kmsbc-modal-body-card {
    background: #1e293b;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.kmsbc-modal-selection-pill {
    background: #0f172a;
    border: 1px solid #334155;
    color: #cbd5e1;
    border-radius: 8px;
    padding: 10px 4px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s;
}

.kmsbc-modal-selection-pill:hover {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

.kmsbc-modal-selection-pill:active {
    transform: scale(0.95);
}

#latecomer-roster-grid::-webkit-scrollbar {
    width: 4px;
}

#latecomer-roster-grid::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}
