/* --- Wrapper (Matches Stopwatch Theme) --- */
#bs-wrapper {
    font-family: 'Press Start 2P', monospace;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background-color: #111827; /* Gray 900 */
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border: 2px solid #374151; /* Gray 700 */
    color: white;
    gap: 20px;
}

/* --- Display Area --- */
.bs-display-container {
    background-color: #000;
    border: 4px solid #333;
    border-radius: 8px;
    padding: 20px;
    width: 100%;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Glass reflection effect */
.bs-display-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.05), transparent);
    pointer-events: none;
}

.bs-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px dashed #374151;
}

.bs-label-sm {
    font-size: 0.6rem;
    color: #9ca3af;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.bs-val {
    font-family: 'Press Start 2P', monospace, sans-serif;
    font-weight: bold;
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.bs-val.text-green { color: #10b981; }
.bs-val.text-blue { color: #3b82f6; }

.bs-result-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #6b7280;
}

.bs-footer-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bs-footer-item .text-white {
    color: #d1d5db;
    font-family: 'Press Start 2P', monospace, sans-serif;
    font-size: 1rem;
}

/* --- Controls Section --- */
.bs-controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bs-input-group {
    background-color: #1f2937;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #374151;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bs-input-group label {
    font-size: 0.7rem;
    color: #fbbf24; /* Amber */
    text-transform: uppercase;
}

/* --- Money Input --- */
.bs-money-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.bs-currency-symbol {
    position: absolute;
    left: 15px;
    color: #10b981;
    font-size: 1.2rem;
    font-family: 'Press Start 2P', monospace, sans-serif;
    font-weight: bold;
}

.bs-input {
    background-color: #111827;
    border: 2px solid #4b5563;
    color: white;
    font-family: 'Press Start 2P', monospace, sans-serif;
    font-size: 1.5rem;
    padding: 10px 10px 10px 35px; /* Space for $ */
    border-radius: 4px;
    width: 100%;
    outline: none;
    transition: all 0.2s;
    text-align: right;
}

.bs-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

/* --- Tip Grid --- */
.bs-tip-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.bs-tip-btn {
    background-color: #111827;
    border: 1px solid #374151;
    color: #9ca3af;
    padding: 10px 0;
    font-family: inherit;
    font-size: 0.6rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.bs-tip-btn:hover {
    background-color: #374151;
    color: white;
}

.bs-tip-btn.active {
    background-color: #3b82f6;
    color: white;
    border-color: #2563eb;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.bs-tip-input {
    background-color: #111827;
    border: 1px solid #374151;
    color: white;
    font-family: 'Press Start 2P', monospace, sans-serif;
    font-size: 0.8rem;
    text-align: center;
    border-radius: 4px;
    outline: none;
    padding: 0;
}

.bs-tip-input:focus {
    border-color: #3b82f6;
}

/* --- People Controller --- */
.bs-people-ctrl {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #111827;
    border: 2px solid #4b5563;
    border-radius: 4px;
    padding: 5px;
}

.bs-people-btn {
    width: 40px;
    height: 40px;
    background-color: #374151;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s;
}

.bs-people-btn:hover {
    background-color: #4b5563;
}

.bs-people-btn:active {
    transform: scale(0.95);
}

.bs-people-display {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: 'Press Start 2P', monospace, sans-serif;
    font-size: 1.5rem;
    color: white;
}

.bs-people-icon {
    font-size: 1rem;
    opacity: 0.5;
}

/* --- Reset Button --- */
.bs-btn-reset {
    width: 100%;
    background-color: #ef4444;
    color: #7f1d1d;
    border: none;
    border-bottom: 4px solid #b91c1c;
    border-radius: 4px;
    padding: 15px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.1s;
}

.bs-btn-reset:active {
    transform: translateY(4px);
    border-bottom: none;
    margin-bottom: 4px;
}

/* --- Responsive --- */
@media (max-width: 500px) {
    .bs-tip-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .bs-val {
        font-size: 1.4rem;
    }
}