* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.container {
    text-align: center;
    padding: 20px;
    max-width: 350px;
    width: 100%;
}

.title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.nudge-btn {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, #ff6b6b, #ee5a5a);
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3), 
                inset 0 -5px 0 rgba(0,0,0,0.2);
    transition: all 0.15s ease;
    margin: 20px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.nudge-btn:active {
    transform: translateY(3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3), 
                inset 0 -2px 0 rgba(0,0,0,0.2);
}

.nudge-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.debug-btn {
    width: 250px;
    height: 50px;
    border-radius: 25px;
    border: none;
    background: linear-gradient(145deg, #6c5ce7, #5a4fcf);
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2), 
                inset 0 -2px 0 rgba(0,0,0,0.2);
    transition: all 0.15s ease;
    margin: 10px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.debug-btn:active {
    transform: translateY(2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 
                inset 0 -1px 0 rgba(0,0,0,0.2);
}

.debug-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.status {
    font-size: 14px;
    margin-top: 20px;
    opacity: 0.8;
}

.connection-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    background: #ff4444;
    transition: background 0.3s ease;
}

.connection-indicator.connected {
    background: #44ff44;
}

.nudge-queue {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 300px;
    z-index: 1000;
}

.nudge-notification {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 15px 20px;
    border-radius: 25px;
    margin-bottom: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease-out, pulse 0.6s infinite alternate;
    font-weight: bold;
    border: 3px solid #ff6b6b;
}

@keyframes slideIn {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

.vibrate {
    animation: vibrate 0.5s ease-in-out;
}

@keyframes vibrate {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}