/* TAP Waitline Public Styles - Enhanced Design */

:root {
    --tap-primary: #2c3e50;
    --tap-secondary: #3498db;
    --tap-success: #27ae60;
    --tap-danger: #e74c3c;
    --tap-warning: #f39c12;
    --tap-info: #3498db;
    --tap-light: #ecf0f1;
    --tap-border: #bdc3c7;
    --tap-shadow: rgba(0,0,0,0.1);
}

/* Join Form Styles */
.tap-waitline-join {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
}

.tap-join-container {
    background: white;
    border: none;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px var(--tap-shadow);
}

.tap-join-container h2 {
    margin-top: 0;
    color: var(--tap-primary);
    font-size: 28px;
    text-align: center;
}

.tap-join-container p {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.tap-form {
    margin-top: 20px;
}

.tap-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.tap-form-group {
    margin-bottom: 20px;
}

.tap-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--tap-primary);
    font-size: 14px;
}

.tap-form-group input {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--tap-border);
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.tap-form-group input:focus {
    outline: none;
    border-color: var(--tap-secondary);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.tap-form-message {
    margin: 15px 0;
    padding: 14px;
    border-radius: 8px;
    display: none;
    font-weight: 500;
}

.tap-form-message.tap-error {
    display: block;
    background: #fadbd8;
    border: 2px solid var(--tap-danger);
    color: var(--tap-danger);
}

.tap-form-message.tap-success {
    display: block;
    background: #d4edda;
    border: 2px solid var(--tap-success);
    color: var(--tap-success);
}

.tap-button {
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.tap-button-primary {
    background: linear-gradient(135deg, var(--tap-secondary) 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.tap-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.tap-button-primary:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.tap-button-secondary {
    background: white;
    color: #7f8c8d;
    border: 2px solid var(--tap-border);
}

.tap-button-secondary:hover {
    background: var(--tap-light);
    border-color: #95a5a6;
}

.tap-button-danger {
    background: linear-gradient(135deg, var(--tap-danger) 0%, #c0392b 100%);
    color: white;
}

.tap-button-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

.tap-button-large {
    padding: 20px 40px;
    font-size: 18px;
}

/* Status View Styles */
.tap-waitline-status {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

.tap-status-header {
    text-align: center;
    margin-bottom: 40px;
}

.tap-status-header h1 {
    color: var(--tap-primary);
    margin: 0;
    font-size: 36px;
}

.tap-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.tap-status-card {
    background: white;
    border: none;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 20px var(--tap-shadow);
}

.tap-status-card h2 {
    margin-top: 0;
    color: var(--tap-primary);
    border-bottom: 3px solid var(--tap-light);
    padding-bottom: 15px;
    font-size: 22px;
}

.tap-your-info {
    text-align: center;
}

.tap-position-display {
    margin: 40px 0;
}

.tap-position-number {
    font-size: 80px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--tap-secondary) 0%, #2980b9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 20px 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.tap-position-label {
    font-size: 18px;
    color: #7f8c8d;
    margin: 10px 0;
    font-weight: 500;
}

.tap-position-total {
    font-size: 16px;
    color: #95a5a6;
}

.tap-position-text {
    font-size: 18px;
    color: #7f8c8d;
    margin: 20px 0;
}

.tap-status-badge {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 24px;
    font-weight: bold;
    margin: 25px 0;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tap-status-badge.tap-active {
    background: linear-gradient(135deg, #d5f4e6 0%, #80ddb7 100%);
    color: var(--tap-success);
    border: 3px solid var(--tap-success);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(39, 174, 96, 0.5); }
    50% { box-shadow: 0 0 30px rgba(39, 174, 96, 0.8); }
}

.tap-status-badge.tap-next {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe8a1 100%);
    color: #c87d00;
    border: 3px solid var(--tap-warning);
}

.tap-customer-details {
    margin: 25px 0;
    padding: 20px;
    background: var(--tap-light);
    border-radius: 8px;
}

.tap-customer-details p {
    margin: 8px 0;
}

.tap-small-text {
    font-size: 14px;
    color: #7f8c8d;
}

.tap-upcoming-list {
    max-height: 450px;
    overflow-y: auto;
}

.tap-upcoming-list::-webkit-scrollbar {
    width: 8px;
}

.tap-upcoming-list::-webkit-scrollbar-track {
    background: var(--tap-light);
    border-radius: 4px;
}

.tap-upcoming-list::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 4px;
}

.tap-upcoming-list::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}

.tap-queue-item {
    padding: 14px;
    border-bottom: 1px solid var(--tap-light);
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.tap-queue-item:hover {
    background: #f8f9fa;
}

.tap-queue-item-current {
    background: linear-gradient(90deg, #e3f2fd 0%, #bbdefb 100%);
    font-weight: bold;
    border-left: 4px solid var(--tap-secondary);
}

.tap-queue-empty {
    text-align: center;
    padding: 60px 20px;
    color: #95a5a6;
}

.tap-status-footer {
    text-align: center;
    margin-top: 30px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--tap-shadow);
}

.tap-loading {
    text-align: center;
    padding: 60px;
    color: #95a5a6;
}

.tap-status-completed,
.tap-status-cancelled,
.tap-status-noshow {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--tap-shadow);
    margin: 40px auto;
    max-width: 600px;
}

.tap-status-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.tap-status-completed h2 {
    color: var(--tap-success);
}

.tap-status-cancelled h2,
.tap-status-noshow h2 {
    color: var(--tap-danger);
}

/* Counter Interface Styles */
.tap-counter-interface {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.tap-counter-header {
    text-align: center;
    margin-bottom: 40px;
}

.tap-counter-header h1 {
    color: var(--tap-primary);
    margin: 0;
    font-size: 36px;
}

.tap-counter-main {
    background: white;
    border: none;
    border-radius: 12px;
    padding: 50px;
    margin-bottom: 30px;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--tap-shadow);
}

.tap-active-customer {
    text-align: center;
    width: 100%;
}

.tap-active-customer h2 {
    font-size: 36px;
    margin: 25px 0;
    color: var(--tap-primary);
}

.tap-customer-email {
    font-size: 20px;
    color: #7f8c8d;
    margin: 15px 0;
}

.tap-timer {
    font-size: 18px;
    color: #95a5a6;
    margin: 20px 0;
}

.tap-ready-next,
.tap-empty-queue {
    text-align: center;
    width: 100%;
}

.tap-ready-next h2,
.tap-empty-queue h2 {
    font-size: 32px;
    color: var(--tap-primary);
}

.tap-last-customer {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid var(--tap-light);
    text-align: center;
}

.tap-counter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.tap-counter-queue-info {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--tap-shadow);
    font-size: 18px;
}

/* Notifications */
.tap-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 18px 30px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.tap-notification-show {
    opacity: 1;
    transform: translateX(0);
}

.tap-notification-success {
    background: var(--tap-success);
    color: white;
}

.tap-notification-error {
    background: var(--tap-danger);
    color: white;
}

.tap-notification-info {
    background: var(--tap-info);
    color: white;
}

/* Error Messages */
.tap-waitline-error {
    max-width: 600px;
    margin: 60px auto;
    padding: 40px;
    background: #fadbd8;
    border: 2px solid var(--tap-danger);
    border-radius: 12px;
    text-align: center;
    color: var(--tap-danger);
    box-shadow: 0 4px 20px var(--tap-shadow);
}

/* Responsive */
@media (max-width: 768px) {
    .tap-form-row {
        grid-template-columns: 1fr;
    }
    
    .tap-status-grid {
        grid-template-columns: 1fr;
    }
    
    .tap-position-number {
        font-size: 64px;
    }
    
    .tap-counter-actions {
        grid-template-columns: 1fr;
    }
    
    .tap-active-customer h2 {
        font-size: 28px;
    }
    
    .tap-status-header h1,
    .tap-counter-header h1 {
        font-size: 28px;
    }
    
    .tap-join-container,
    .tap-status-card,
    .tap-counter-main {
        padding: 25px;
    }
}
