/* Global styles for Meetpoint Coffee Loyalty App */

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: black;
    color: white;
    min-height: 100vh;
}

/* Base button styles */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.2s ease;
}

button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Input styles */
input {
    font-family: inherit;
    outline: none;
    border: 1px solid #7c5a2b;
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
}

input::placeholder {
    color: #aaa;
}

input:focus {
    border-color: #c2a36b;
    box-shadow: 0 0 0 2px rgba(194, 163, 107, 0.2);
}

/* Coffee shop color scheme */
:root {
    --coffee-brown: #7c5a2b;
    --coffee-light: #f5e6c8;
    --coffee-dark: #c2a36b;
    --coffee-gold: #d4af37;
    --background-black: #000000;
    --text-white: #ffffff;
    --text-muted: #aaaaaa;
}

/* Barista mode specific styles */
.barista-mode-banner {
    background-color: var(--coffee-brown);
    border-radius: 1rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-white);
    font-weight: bold;
}

.admin-label {
    background-color: var(--coffee-brown);
    color: var(--text-white);
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
}

/* Tab selector styles */
.tab-selector {
    display: flex;
    width: 100%;
    max-width: 500px;
    margin-bottom: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 0.5rem;
    overflow: hidden;
}

.tab-button {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: transparent;
    color: var(--text-white);
    font-weight: normal;
    transition: all 0.2s ease;
}

.tab-button.active {
    background: var(--coffee-brown);
    font-weight: bold;
}

.tab-button:hover {
    background: rgba(124, 90, 43, 0.3);
}

/* Search input styles */
.search-container {
    width: 100%;
    max-width: 500px;
    margin-bottom: 2rem;
}

.search-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--coffee-brown);
    background: rgba(255,255,255,0.1);
    color: var(--text-white);
}

.search-button {
    background-color: var(--coffee-brown);
    color: var(--text-white);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
}

/* QR Scanner styles */
.qr-scanner-container {
    width: 100%;
    max-width: 500px;
    margin-bottom: 2rem;
}

.qr-reader {
    width: 100%;
    background: #000;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
}

.qr-scanner-button {
    background-color: var(--coffee-brown);
    color: var(--text-white);
    border: none;
    border-radius: 1rem;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qr-scanner-info {
    text-align: center;
    color: var(--text-muted);
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 0.5rem;
}

/* Customer card styles */
.customer-card {
    background: var(--background-black);
    border-radius: 2rem;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.customer-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.customer-name {
    margin: 0;
    font-size: 1.2rem;
}

.customer-email {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Loyalty card grid */
.loyalty-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stamp-cell {
    aspect-ratio: 1;
    background-color: var(--coffee-light);
    border-radius: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.stamp-cell.filled {
    box-shadow: 0 0 0 2px var(--coffee-dark);
}

.stamp-number {
    font-size: 1.5rem;
    color: var(--coffee-brown);
}

.stamp-image {
    max-width: 48px;
    max-height: 48px;
    width: 100%;
    height: auto;
}

.bean-stamp {
    transform: rotate(20deg);
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.action-button {
    border-radius: 1rem;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    border: none;
}

.add-stamp-button {
    background-color: var(--coffee-brown);
    color: var(--text-white);
}

.redeem-button {
    background-color: var(--coffee-light);
    color: var(--coffee-brown);
}

/* Free drinks info */
.free-drinks-info {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Free drink banner */
.free-drink-banner {
    background-color: var(--coffee-brown);
    border-radius: 2rem;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 400px;
    margin-bottom: 1rem;
}

.free-drink-banner img {
    height: 32px;
    width: auto;
    margin-right: 0.5rem;
}

.free-drink-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-white);
}

/* Admin controls */
.admin-controls {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.manage-staff-button {
    background-color: var(--coffee-gold);
    color: var(--text-white);
    border: none;
    border-radius: 1rem;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    margin-right: 1rem;
}

/* Sign out button */
.signout-button {
    background-color: transparent;
    color: var(--coffee-light);
    border: 1px solid var(--coffee-light);
    border-radius: 1rem;
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

/* Error messages */
.error-message {
    color: #ff6b6b;
    margin-bottom: 1rem;
    text-align: center;
}

/* Loading and status */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem;
}

.last-updated {
    margin-top: 1rem;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Member since */
.member-since {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Logo container */
.logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.logo-image {
    max-width: 200px;
    height: auto;
}

/* Page container */
.page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    color: var(--text-white);
    padding: 1rem;
}

/* User info */
.user-info {
    text-align: center;
    margin-bottom: 1rem;
}

.user-name {
    margin: 0;
    font-size: 1.2rem;
}

.user-email {
    font-size: 0.9rem;
    opacity: 0.8;
}

.user-role {
    margin-top: 0.5rem;
}

.role-badge {
    background-color: var(--coffee-brown);
    color: var(--text-white);
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
}

/* QR Scanner mode indicator */
.qr-mode-indicator {
    width: 100%;
    max-width: 500px;
    margin-bottom: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 0.5rem;
    padding: 0.75rem;
    text-align: center;
    color: var(--text-white);
    font-weight: bold;
}

/* Close button for scanner */
.scanner-close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(0,0,0,0.7);
    color: var(--text-white);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive design */
@media (max-width: 640px) {
    .page-container {
        padding: 0.5rem;
    }
    
    .customer-card {
        padding: 1.5rem;
    }
    
    .loyalty-grid {
        gap: 0.75rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .action-button {
        width: 100%;
    }
}

