/* POS Enhanced Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    overflow: hidden;
}

#app {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Enhanced POS Shell */
.pos-shell {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Enhanced Top Bar */
.pos-topbar {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pos-topbar .pos-area {
    flex: 1;
    font-weight: 700;
    font-size: 18px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.pos-topbar .pos-section {
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    margin: 0 10px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Enhanced User Info */
.pos-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.pos-user-info .user-name {
    color: #fff;
    font-weight: 600;
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 4px;
}

.logout-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Enhanced Actions Row */
.pos-actions {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.tile {
    flex: 1;
    padding: 25px 15px;
    border: none;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.tile-blue {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
}

.tile-green {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: #fff;
}

.tile-bright {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: #fff;
}

.tile-teal {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    color: #fff;
}

/* Enhanced Main Area */
.pos-main {
    flex: 1;
    display: flex;
    align-items: stretch;
    padding: 20px;
    background: rgba(255,255,255,0.1);
}

.pos-canvas {
    flex: 1;
    background: linear-gradient(135deg, #ece9e6 0%, #ffffff 100%);
    margin: 0;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    overflow: hidden;
}

.canvas-center {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.welcome-message {
    text-align: center;
    color: #2c3e50;
}

.welcome-message h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-message p {
    font-size: 1.2em;
    color: #7f8c8d;
    margin-bottom: 20px;
}

/* Enhanced Mouse Indicator */
.mouse-indicator {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
    animation: pulse 2s infinite;
}

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

/* Enhanced Bottom Bar */
.pos-bottombar {
    display: flex;
    gap: 12px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.bottom-btn {
    flex: 1;
    padding: 20px 12px;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.bottom-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.bottom-btn.red {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.bottom-btn.blue {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.bottom-btn.green {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.bottom-btn.cyan {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
}

/* Enhanced Keypad Overlay */
.pin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 999;
    transition: all 0.3s ease;
}

.pin-overlay.hidden {
    display: none;
}

.pin-modal {
    width: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
}

.pin-display {
    height: 70px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.3);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 15px;
    font-size: 32px;
    color: white;
    letter-spacing: 5px;
    backdrop-filter: blur(10px);
}

.pin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 12px;
}

.pin-key {
    padding: 20px 10px;
    font-size: 22px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.pin-key:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.clear-key {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.clear-key:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

.sign-key {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.sign-key:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
}

/* Enhanced Floating Sign In Button */
.floating-pin-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    border-radius: 8px;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: #fff;
    border: none;
    z-index: 900;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
    transition: all 0.3s ease;
}

.floating-pin-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.6);
}

/* Status Indicators */
.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-online {
    background: #27ae60;
    box-shadow: 0 0 10px #27ae60;
}

.status-offline {
    background: #e74c3c;
    box-shadow: 0 0 10px #e74c3c;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pos-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .pos-topbar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .pos-user-info {
        margin-left: 0;
        justify-content: center;
    }
    
    .pos-bottombar {
        flex-wrap: wrap;
    }
    
    .bottom-btn {
        flex: 1 1 45%;
        min-width: 120px;
    }
    
    .pin-modal {
        width: 90%;
        margin: 20px;
    }
}

/* Loading Animation */
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}

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

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.notification.success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.notification.error {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}