/* Qsource Brand Colors */
:root {
    --qsource-blue: #00529B;
    --qsource-blue-dark: #003d75;
    --qsource-blue-light: #e6f0fa;
    --success-green: #28a745;
    --success-green-dark: #1e7e34;
    --danger-red: #dc3545;
    --danger-red-dark: #bd2130;
}

html {
    font-size: 16px;
    height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 18px;
    }
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--qsource-blue-light);
}

/* Kiosk Layout */
.kiosk-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.kiosk-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

/* Welcome Screen */
.welcome-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.welcome-title {
    color: var(--qsource-blue);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 400px;
}

@media (min-width: 600px) {
    .action-buttons {
        flex-direction: row;
        max-width: 600px;
    }
}

.action-btn {
    flex: 1;
    padding: 2.5rem 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.action-btn:active {
    transform: translateY(0);
}

.btn-checkin {
    background: linear-gradient(135deg, var(--success-green) 0%, var(--success-green-dark) 100%);
    color: white;
}

.btn-checkout {
    background: linear-gradient(135deg, var(--danger-red) 0%, var(--danger-red-dark) 100%);
    color: white;
}

.btn-icon {
    font-size: 3rem;
}

/* Member List */
.member-list-container {
    padding: 1rem;
}

.page-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.page-title {
    color: var(--qsource-blue);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-instruction {
    color: #666;
    font-size: 1.1rem;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .member-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

.member-card {
    background: white;
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 3px solid transparent;
}

.member-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--qsource-blue);
}

.member-card:active {
    transform: scale(0.98);
}

.member-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
    border: 3px solid var(--qsource-blue-light);
}

.member-name {
    font-weight: 600;
    color: var(--qsource-blue);
    font-size: 1rem;
    margin: 0;
}

.member-title {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.25rem;
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--qsource-blue);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.back-btn:hover {
    background: var(--qsource-blue-dark);
    color: white;
    text-decoration: none;
}

/* Confirmation Screen */
.confirmation-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.confirmation-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.confirmation-icon.success {
    color: var(--success-green);
}

.confirmation-icon.checkout {
    color: var(--qsource-blue);
}

.confirmation-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--qsource-blue);
    margin-bottom: 0.5rem;
}

.confirmation-message {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 2rem;
}

.badge-reminder {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 15px;
    padding: 1.5rem;
    max-width: 400px;
    margin-bottom: 2rem;
}

.badge-reminder-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.badge-reminder-text {
    font-size: 1.1rem;
    color: #856404;
    font-weight: 500;
    margin: 0;
}

.auto-redirect {
    color: #888;
    font-size: 0.9rem;
}

.home-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--qsource-blue);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.home-btn:hover {
    background: var(--qsource-blue-dark);
    color: white;
    text-decoration: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #888;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state-text {
    font-size: 1.2rem;
}

/* Form hidden submit */
.member-form {
    display: contents;
}